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:
parent
119a78753d
commit
c2b2c10ed6
@ -65,7 +65,7 @@ ULONG lastTableID = 0;
|
||||
|
||||
void csstrncpyt(wxChar *target, const wxChar *source, int n)
|
||||
{
|
||||
while ( (*target++ = *source++) != '\0' && --n )
|
||||
while ( (*target++ = *source++) != '\0' && --n != 0 )
|
||||
;
|
||||
|
||||
*target = '\0';
|
||||
|
@ -7957,8 +7957,8 @@ void wxGrid::DrawTextRectangle(wxDC& dc,
|
||||
continue;
|
||||
}
|
||||
|
||||
long lineWidth,
|
||||
lineHeight;
|
||||
long lineWidth = 0,
|
||||
lineHeight = 0;
|
||||
dc.GetTextExtent(line, &lineWidth, &lineHeight);
|
||||
|
||||
switch ( horizAlign )
|
||||
|
Loading…
Reference in New Issue
Block a user