]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stattextcmn.cpp
add safe wxStrlcpy() function and replaced all wxStrncpy() calls by it
[wxWidgets.git] / src / common / stattextcmn.cpp
index f7b6a787ddfac3f539310f5fafc7c7e731820923..b2ac7a044cb4281986b5b87a0c426fd37266528d 100644 (file)
@@ -323,7 +323,7 @@ wxString wxStaticTextBase::Ellipsize(const wxString& label) const
         return label;
     }
 
         return label;
     }
 
-    wxClientDC dc(wx_const_cast(wxStaticTextBase*, this));
+    wxClientDC dc(const_cast<wxStaticTextBase*>(this));
     dc.SetFont(GetFont());
 
     wxArrayInt charOffsets;
     dc.SetFont(GetFont());
 
     wxArrayInt charOffsets;