]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/progdlgg.cpp
Source cleaning: -1/wxID_ANY/wxDefaultCoord, ::, TRUE/true. FALSE/false, tabs, whites...
[wxWidgets.git] / src / generic / progdlgg.cpp
index 53ec12dda5ad8dd9d7df949871928421ae15cb2c..0103124fac6c85a5642071f27ba4cc5e6b17808c 100644 (file)
@@ -130,8 +130,6 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
            sizeLabel = m_msg->GetSize();
     sizeDlg.y = 2*LAYOUT_MARGIN + sizeLabel.y;
 
-    wxWindow *lastWindow = m_msg;
-
     if ( maximum > 0 )
     {
         // note that we can't use wxGA_SMOOTH because it happens to
@@ -143,7 +141,6 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
 
         sizer->Add(m_gauge, 0, wxLEFT | wxRIGHT | wxTOP | wxEXPAND, 2*LAYOUT_MARGIN);
         m_gauge->SetValue(0);
-        lastWindow = m_gauge;
 
         wxSize sizeGauge = m_gauge->GetSize();
         sizeDlg.y += 2*LAYOUT_MARGIN + sizeGauge.y;
@@ -193,7 +190,7 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
 
     if ( hasAbortButton )
     {
-        m_btnAbort = new wxButton(this, wxID_CANCEL, _("Cancel"));
+        m_btnAbort = new wxButton(this, wxID_CANCEL);
 
         // Windows dialogs usually have buttons in the lower right corner
 #if defined(__WXMSW__) || defined(__WXPM__)