]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filesys.cpp
Implement undo and redo for the ie and gtk webkit backends. Extend the sample to...
[wxWidgets.git] / src / common / filesys.cpp
index 65fe27f61e25b606917aa113bc874998f10b7b79..bf6fbc2efe7a4ce836f09cdc50996a7ecdfb958a 100644 (file)
@@ -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('/');
     }