Fixes to warnings about assigning unused values.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-07-16 13:19:32 +00:00
parent 9b386ecadb
commit 5cb598ae20
13 changed files with 32 additions and 39 deletions

View File

@@ -463,10 +463,9 @@ void wxListCtrl::FreeAllInternalData()
if (m_AnyInternalData)
{
int n = GetItemCount();
int i = 0;
m_ignoreChangeMessages = TRUE;
for (i = 0; i < n; i++)
for (int i = 0; i < n; i++)
wxDeleteInternalData(this, i);
m_ignoreChangeMessages = FALSE;
@@ -2313,7 +2312,6 @@ void wxListCtrl::OnPaint(wxPaintEvent& event)
wxSize clientSize = GetClientSize();
wxRect itemRect;
int cy=0;
int itemCount = GetItemCount();
int i;
@@ -2324,7 +2322,7 @@ void wxListCtrl::OnPaint(wxPaintEvent& event)
{
if (GetItemRect(i, itemRect))
{
cy = itemRect.GetTop();
int cy = itemRect.GetTop();
if (i != 0) // Don't draw the first one
{
dc.DrawLine(0, cy, clientSize.x, cy);