Fixed possible usage of uninitialized variable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
242b7b46ad
commit
56fc3fa5b3
@ -913,7 +913,7 @@ wxString wxMacFSSpec2MacFilename( const FSSpec *spec )
|
|||||||
int i;
|
int i;
|
||||||
int j;
|
int j;
|
||||||
OSErr theErr;
|
OSErr theErr;
|
||||||
OSStatus theStatus;
|
OSStatus theStatus = noErr;
|
||||||
Boolean isDirectory = FALSE;
|
Boolean isDirectory = FALSE;
|
||||||
Str255 theParentPath = "\p";
|
Str255 theParentPath = "\p";
|
||||||
FSSpec theParentSpec;
|
FSSpec theParentSpec;
|
||||||
|
@ -116,7 +116,7 @@ void wxScrollBar::MacHandleControlClick( WXWidget control , wxInt16 controlpart
|
|||||||
int maxPos = GetControl32BitMaximum( (ControlHandle) m_macControl) ;
|
int maxPos = GetControl32BitMaximum( (ControlHandle) m_macControl) ;
|
||||||
|
|
||||||
wxEventType scrollEvent = wxEVT_NULL;
|
wxEventType scrollEvent = wxEVT_NULL;
|
||||||
int nScrollInc;
|
int nScrollInc = 0;
|
||||||
|
|
||||||
// all events have already been reported during mouse down, except for THUMBRELEASE
|
// all events have already been reported during mouse down, except for THUMBRELEASE
|
||||||
if ( !mouseStillDown && controlpart !=kControlIndicatorPart )
|
if ( !mouseStillDown && controlpart !=kControlIndicatorPart )
|
||||||
|
@ -116,7 +116,7 @@ void wxScrollBar::MacHandleControlClick( WXWidget control , wxInt16 controlpart
|
|||||||
int maxPos = GetControl32BitMaximum( (ControlHandle) m_macControl) ;
|
int maxPos = GetControl32BitMaximum( (ControlHandle) m_macControl) ;
|
||||||
|
|
||||||
wxEventType scrollEvent = wxEVT_NULL;
|
wxEventType scrollEvent = wxEVT_NULL;
|
||||||
int nScrollInc;
|
int nScrollInc = 0;
|
||||||
|
|
||||||
// all events have already been reported during mouse down, except for THUMBRELEASE
|
// all events have already been reported during mouse down, except for THUMBRELEASE
|
||||||
if ( !mouseStillDown && controlpart !=kControlIndicatorPart )
|
if ( !mouseStillDown && controlpart !=kControlIndicatorPart )
|
||||||
|
Loading…
Reference in New Issue
Block a user