Cleanup accessor code
This commit is contained in:
@@ -50,10 +50,7 @@ public:
|
|||||||
{
|
{
|
||||||
wxASSERT(idx < size());
|
wxASSERT(idx < size());
|
||||||
|
|
||||||
CFTypeRef val = CFArrayGetValueAtIndex(this->m_ptr, idx);
|
return wxCFRefFromGet((E)CFArrayGetValueAtIndex(this->m_ptr, idx));
|
||||||
if (val)
|
|
||||||
::CFRetain(val);
|
|
||||||
return wxCFRefFromGet<E>(val);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wxCFRef<E> operator[](size_type idx) { return at(idx); }
|
wxCFRef<E> operator[](size_type idx) { return at(idx); }
|
||||||
|
Reference in New Issue
Block a user