]> git.saurik.com Git - wxWidgets.git/commitdiff
SetParam should be explicit
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 5 Jun 2004 16:16:23 +0000 (16:16 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 5 Jun 2004 16:16:23 +0000 (16:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index 3d084815612444d13763f17b7ceb54249256bce2..1770e2a08c319655d9f499e82d7590f0b8b434d0 100644 (file)
@@ -629,7 +629,7 @@ static pascal OSStatus wxMacTopLevelWindowEventHandler( EventHandlerCallRef hand
                     adjustR.SetHeight( toplevelWindow->GetMinHeight() ) ;
                 const Rect adjustedRect = { adjustR.y + top  , adjustR.x + left , adjustR.y + adjustR.height - bottom , adjustR.x + adjustR.width - right } ;
                 if ( !EqualRect( &newRect , &adjustedRect ) )
                     adjustR.SetHeight( toplevelWindow->GetMinHeight() ) ;
                 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<Rect>( kEventParamCurrentBounds , &adjustedRect ) ;
             }
 
             result = noErr ;
             }
 
             result = noErr ;