X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c707d82e82cb8c0d52284c5d48d941e891f91872..e4c903b2ea42fe104ef50d0ea6028f14d8309dfa:/src/common/filesys.cpp diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index 65fe27f61e..bf6fbc2efe 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -355,7 +355,7 @@ void wxFileSystem::ChangePathTo(const wxString& location, bool is_dir) if (is_dir) { - if (m_Path.length() > 0 && m_Path.Last() != wxT('/') && m_Path.Last() != wxT(':')) + if (!m_Path.empty() && m_Path.Last() != wxT('/') && m_Path.Last() != wxT(':')) m_Path << wxT('/'); }