From: Dimitri Schoolwerth Date: Fri, 4 Jun 2004 22:12:36 +0000 (+0000) Subject: fixed ambiguous call to wxMacCarbonEvent::SetParameter X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4a5f235122c50b1a5c64960b59bd9d6f90f243c9 fixed ambiguous call to wxMacCarbonEvent::SetParameter git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index e657e1025f..3d08481561 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -627,9 +627,9 @@ static pascal OSStatus wxMacTopLevelWindowEventHandler( EventHandlerCallRef hand adjustR.SetWidth( toplevelWindow->GetMinWidth() ) ; if ( toplevelWindow->GetMinHeight() != -1 && adjustR.GetHeight() < toplevelWindow->GetMinHeight() ) adjustR.SetHeight( toplevelWindow->GetMinHeight() ) ; - Rect adjustedRect = { adjustR.y + top , adjustR.x + left , adjustR.y + adjustR.height - bottom , adjustR.x + adjustR.width - right } ; + const Rect adjustedRect = { adjustR.y + top , adjustR.x + left , adjustR.y + adjustR.height - bottom , adjustR.x + adjustR.width - right } ; if ( !EqualRect( &newRect , &adjustedRect ) ) - cEvent.SetParameter( kEventParamCurrentBounds , &adjustedRect ) ; + cEvent.SetParameter( kEventParamCurrentBounds , adjustedRect ) ; } result = noErr ;