]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jun 2003 23:05:22 +0000 (23:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jun 2003 23:05:22 +0000 (23:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlcell.cpp

index c867b38366010622b3cfeb4a8adffce97d3276cb..b1370118957b6a1f1a86a8365f22ed3e03dff031 100644 (file)
@@ -815,12 +815,13 @@ wxHtmlCell *wxHtmlContainerCell::GetLastTerminal() const
 {
     if ( m_Cells )
     {
-        wxHtmlCell *c, *c2 = NULL;
         // most common case first:
-        c = m_LastCell->GetLastTerminal();
+        wxHtmlCell *c = m_LastCell->GetLastTerminal();
         if ( c )
             return c;
-        for (wxHtmlCell *c = m_Cells; c; c = c->GetNext())
+
+        wxHtmlCell *c2 = NULL;
+        for (c = m_Cells; c; c = c->GetNext())
             c2 = c->GetLastTerminal();
         return c2;
     }