]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed ambiguous call to wxMacCarbonEvent::SetParameter
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 4 Jun 2004 22:12:36 +0000 (22:12 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 4 Jun 2004 22:12:36 +0000 (22:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index e657e1025f32e10bfa1467d63718a96087ee5dff..3d084815612444d13763f17b7ceb54249256bce2 100644 (file)
@@ -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 ;