eVC4 warning fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-11-06 20:44:43 +00:00
parent 792f83f038
commit 41e155b43e
4 changed files with 45 additions and 38 deletions

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// Name: wxchar.cpp
// Name: src/common/wxchar.cpp
// Purpose: wxChar implementation
// Author: Ove K<>ven
// Modified by: Ron Lee
@@ -1447,7 +1447,7 @@ double WXDLLEXPORT wxAtof(const wxChar *psz)
wxString str(psz);
if (str.ToDouble(& d))
return d;
else
return 0.0;
#else
return atof(wxConvLibc.cWX2MB(psz));

View File

@@ -1757,7 +1757,7 @@ bool wxDC::DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) con
static int maxWidth = -1;
int fit = 0;
SIZE sz = {0,0};
int stlen = text.Length();
int stlen = text.length();
if (maxLenText == -1)
{
@@ -2539,6 +2539,8 @@ static bool AlphaBlt(HDC hdcDst,
wxLogLastError(_T("AlphaBlend"));
}
#else
wxUnusedVar(hdcSrc);
#endif // defined(AC_SRC_OVER)
// AlphaBlend() unavailable of failed: use our own (probably much slower)

View File

@@ -1125,7 +1125,7 @@ bool wxCheckWindowWndProc(WXHWND hWnd,
str == wxMDIChildFrameClassNameNoRedraw ||
str == _T("wxTLWHiddenParent"))
return true; // Effectively means don't subclass
else
return false;
#else
WNDCLASS cls;

View File

@@ -1057,7 +1057,7 @@ bool wxRichTextCtrl::MoveDown(int noLines, int flags)
Refresh(false);
return true;
}
else
return false;
}
@@ -1618,13 +1618,19 @@ wxRichTextCtrl::HitTest(const wxPoint& pt,
((wxRichTextCtrl*)this)->PrepareDC(dc);
int hit = ((wxRichTextCtrl*)this)->GetBuffer().HitTest(dc, pt, *pos);
if (hit == wxRICHTEXT_HITTEST_BEFORE)
switch ( hit )
{
case wxRICHTEXT_HITTEST_BEFORE:
return wxTE_HT_BEFORE;
else if (hit == wxRICHTEXT_HITTEST_AFTER)
case wxRICHTEXT_HITTEST_AFTER:
return wxTE_HT_BEYOND;
else if (hit == wxRICHTEXT_HITTEST_ON)
case wxRICHTEXT_HITTEST_ON:
return wxTE_HT_ON_TEXT;
else
}
return wxTE_HT_UNKNOWN;
}
@@ -1695,7 +1701,7 @@ bool wxRichTextCtrl::WriteImage(const wxImage& image, int bitmapType)
wxImage image2 = image;
if (imageBlock.MakeImageBlock(image2, bitmapType))
return WriteImage(imageBlock);
else
return false;
}
@@ -1706,7 +1712,7 @@ bool wxRichTextCtrl::WriteImage(const wxString& filename, int bitmapType)
wxImage image;
if (imageBlock.MakeImageBlock(filename, bitmapType, image, false))
return WriteImage(imageBlock);
else
return false;
}
@@ -1724,9 +1730,8 @@ bool wxRichTextCtrl::WriteImage(const wxBitmap& bitmap, int bitmapType)
wxImage image = bitmap.ConvertToImage();
if (image.Ok() && imageBlock.MakeImageBlock(image, bitmapType))
return WriteImage(imageBlock);
else
return false;
}
return false;
}
@@ -2254,7 +2259,7 @@ bool wxRichTextCtrl::GetCaretPositionForIndex(long position, wxRect& rect)
rect = wxRect(pt, wxSize(wxRICHTEXT_DEFAULT_CARET_WIDTH, height));
return true;
}
else
return false;
}
@@ -2505,7 +2510,7 @@ bool wxRichTextCtrl::SetDefaultStyleToCursorStyle()
SetDefaultStyle(attr);
return true;
}
else
return false;
}