Avoid warning about unused variable in wxiOS build.
Define variable only used if wxOSX_USE_COCOA_OR_CARBON inside the check for it. Closes #16435. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a8bd40d571
commit
9c74f1329e
@ -1607,8 +1607,6 @@ void wxWindowMac::MacPaintBorders( int WXUNUSED(leftOrigin) , int WXUNUSED(right
|
||||
if ( IsTopLevel() )
|
||||
return ;
|
||||
|
||||
bool hasFocus = GetPeer()->NeedsFocusRect() && HasFocus();
|
||||
|
||||
// back to the surrounding frame rectangle
|
||||
int tx,ty,tw,th;
|
||||
|
||||
@ -1616,8 +1614,9 @@ void wxWindowMac::MacPaintBorders( int WXUNUSED(leftOrigin) , int WXUNUSED(right
|
||||
GetPeer()->GetPosition( tx, ty );
|
||||
|
||||
#if wxOSX_USE_COCOA_OR_CARBON
|
||||
|
||||
{
|
||||
const bool hasFocus = GetPeer()->NeedsFocusRect() && HasFocus();
|
||||
|
||||
CGRect cgrect = CGRectMake( tx-1 , ty-1 , tw+2 ,
|
||||
th+2 ) ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user