X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/224d978ffb483f93864f8bf9a5cd61b1425a7fd5..27a5c702772a3a2617a1431d121f773747ecc9cc:/src/common/ffile.cpp diff --git a/src/common/ffile.cpp b/src/common/ffile.cpp index 7d669169a6..5957e34df2 100644 --- a/src/common/ffile.cpp +++ b/src/common/ffile.cpp @@ -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(this); wxFileOffset posOld = Tell(); if ( posOld != wxInvalidOffset )