]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ffile.cpp
Update compile support for OpenVMS
[wxWidgets.git] / src / common / ffile.cpp
index 7d669169a661237ec52c0298711320476df3ed7b..5957e34df2b055d598aca229f272a260e1692c87 100644 (file)
@@ -244,7 +244,7 @@ wxFileOffset wxFFile::Length() const
     wxCHECK_MSG( IsOpened(), wxInvalidOffset,
                  wxT("wxFFile::Length(): file is closed!") );
 
-    wxFFile& self = *(wxFFile *)this;   // const_cast
+    wxFFile& self = *const_cast<wxFFile *>(this);
 
     wxFileOffset posOld = Tell();
     if ( posOld != wxInvalidOffset )