]> git.saurik.com Git - wxWidgets.git/commitdiff
fix some unused variables warnings reported by Borland
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 May 2008 14:48:59 +0000 (14:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 May 2008 14:48:59 +0000 (14:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/windowid.cpp
src/generic/progdlgg.cpp
src/html/winpars.cpp
src/msw/ole/automtn.cpp

index aace85973c18766bb63e2a93ee4d714125c900ab..10e57fa66c404bd4289d52d338b97141f059cc24 100644 (file)
@@ -118,7 +118,7 @@ void DecIdRefCount(wxWindowID id)
     // so it should never be reserved, but test anyway
     if(gs_autoIdsRefCount[id] == ID_RESERVED)
     {
-        wxASSERT_MSG(false, wxT("reserve id being decreased"));
+        wxFAIL_MSG(wxT("reserve id being decreased"));
         gs_autoIdsRefCount[id] = ID_FREE;
     }
     else
index 6f4fec1fe830278a6ea82043fe72ccfb1e8a40ea..25a42355ae779be7ce2db4b41e097af304ee5b7a 100644 (file)
@@ -182,9 +182,6 @@ wxProgressDialog::wxProgressDialog(const wxString& title,
     m_break = 0;
     m_ctdelay = 0;
 
-    // if we are going to have at least one label, remember it in this var
-    wxStaticText *label = NULL;
-
     // also count how many labels we really have
     size_t nTimeLabels = 0;
 
@@ -194,7 +191,6 @@ wxProgressDialog::wxProgressDialog(const wxString& title,
     {
         nTimeLabels++;
 
-        label =
         m_elapsed = CreateLabel(_("Elapsed time:"), sizerLabels);
     }
 
@@ -202,7 +198,6 @@ wxProgressDialog::wxProgressDialog(const wxString& title,
     {
         nTimeLabels++;
 
-        label =
         m_estimated = CreateLabel(_("Estimated time:"), sizerLabels);
     }
 
@@ -210,7 +205,6 @@ wxProgressDialog::wxProgressDialog(const wxString& title,
     {
         nTimeLabels++;
 
-        label =
         m_remaining = CreateLabel(_("Remaining time:"), sizerLabels);
     }
     sizerTop->Add(sizerLabels, 0, wxALIGN_CENTER_HORIZONTAL | wxTOP, LAYOUT_MARGIN);
index f21cf9e8fba4ea531c95d3553d3971e39e46aecf..ac32fb27bf03a7f0da2c153154624adaeee0d010 100644 (file)
@@ -477,7 +477,6 @@ void wxHtmlWinParser::AddPreBlock(const wxString& text)
 
         const wxString::const_iterator end = text.end();
         wxString::const_iterator copyFrom = text.begin();
-        size_t posFrom = 0;
         size_t pos = 0;
         int posColumn = m_posColumn;
         for ( wxString::const_iterator i = copyFrom; i != end; ++i, ++pos )
@@ -493,7 +492,6 @@ void wxHtmlWinParser::AddPreBlock(const wxString& text)
 
                 posColumn += expandTo;
                 copyFrom = i + 1;
-                posFrom = pos + 1;
             }
             else
             {
index c39b3b2e4c164b5e0cc51d859ba8e8ba65ab504b..3ca89f3231cc7576017cc6212396e637c6f64b4e 100644 (file)
@@ -674,6 +674,7 @@ WXDLLEXPORT bool wxConvertVariantToOle(const wxVariant& variant, VARIANTARG& ole
 WXDLLEXPORT bool
 wxConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant)
 {
+    bool ok = true;
     if ( oleVariant.vt & VT_ARRAY )
     {
         variant.ClearList();
@@ -689,7 +690,6 @@ wxConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant)
         if ( FAILED(hr) )
             return false;
 
-        bool ok = true;
         for ( int i = 0; i < cElements; i++ )
         {
             VARIANTARG& oleElement = pvdata[i];
@@ -802,7 +802,7 @@ wxConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant)
         }
     }
 
-    return true;
+    return ok;
 }
 
 /*