Warning fixes for VC5.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell 2006-08-29 09:57:41 +00:00
parent 119a78753d
commit c2b2c10ed6
2 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ ULONG lastTableID = 0;
void csstrncpyt(wxChar *target, const wxChar *source, int n) void csstrncpyt(wxChar *target, const wxChar *source, int n)
{ {
while ( (*target++ = *source++) != '\0' && --n ) while ( (*target++ = *source++) != '\0' && --n != 0 )
; ;
*target = '\0'; *target = '\0';

View File

@ -7957,8 +7957,8 @@ void wxGrid::DrawTextRectangle(wxDC& dc,
continue; continue;
} }
long lineWidth, long lineWidth = 0,
lineHeight; lineHeight = 0;
dc.GetTextExtent(line, &lineWidth, &lineHeight); dc.GetTextExtent(line, &lineWidth, &lineHeight);
switch ( horizAlign ) switch ( horizAlign )