VC warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -219,8 +219,11 @@ int wxEntry(int& argc, wxChar **argv)
|
||||
{
|
||||
wxFatalExit();
|
||||
|
||||
// this code is unreachable but put it here to suppress warnings
|
||||
#ifndef __VISUALC__
|
||||
// this code is unreachable but put it here to suppress warnings in some compilers
|
||||
// and disable for others to supress warnings too
|
||||
return -1;
|
||||
#endif // !__VISUALC__
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -552,9 +552,9 @@ void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
|
||||
// if our parent had prepared a defer window handle for us, use it (unless
|
||||
// we are a top level window)
|
||||
wxWindowMSW *parent = GetParent();
|
||||
|
||||
#if USE_DEFERRED_SIZING
|
||||
wxWindowMSW *parent = GetParent();
|
||||
HDWP hdwp = parent && !IsTopLevel() ? (HDWP)parent->m_hDWP : NULL;
|
||||
#else
|
||||
HDWP hdwp = 0;
|
||||
|
@@ -394,7 +394,7 @@ bool wxSpinCtrl::Create(wxWindow *parent,
|
||||
// associate the text window with the spin button
|
||||
(void)::SendMessage(GetHwnd(), UDM_SETBUDDY, (WPARAM)m_hwndBuddy, 0);
|
||||
|
||||
if ( !value.IsEmpty() )
|
||||
if ( !value.empty() )
|
||||
{
|
||||
SetValue(value);
|
||||
}
|
||||
@@ -573,7 +573,6 @@ void wxSpinCtrl::DoMoveWindow(int x, int y, int width, int height)
|
||||
// if our parent had prepared a defer window handle for us, use it (unless
|
||||
// we are a top level window)
|
||||
wxWindowMSW *parent = GetParent();
|
||||
int originalX = x;
|
||||
|
||||
#if USE_DEFERRED_SIZING
|
||||
HDWP hdwp = parent && !IsTopLevel() ? (HDWP)parent->m_hDWP : NULL;
|
||||
|
Reference in New Issue
Block a user