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:
Dimitri Schoolwerth 2003-11-28 22:46:27 +00:00
parent 242b7b46ad
commit 56fc3fa5b3
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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 )

View File

@ -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 )