]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
Readded wxPlotWindow as external lib.
[wxWidgets.git] / src / common / filename.cpp
index e0c45c36ff3b733648c2b6073eaeb87baa7c1d47..91318e43bf2bdfe9b481b5d58c8e8620f067be7d 100644 (file)
@@ -249,7 +249,7 @@ bool wxFileName::Normalize(wxPathNormalize flags,
             {
                 curDir.AssignDir(wxGetUserHome(dir.c_str() + 1));
 
-                dirs.Remove(0u);
+                dirs.RemoveAt(0u);
             }
         }
     }
@@ -432,6 +432,11 @@ void wxFileName::RemoveDir( int pos )
 // accessors
 // ----------------------------------------------------------------------------
 
+void wxFileName::SetFullName(const wxString& fullname)
+{
+    SplitPath(fullname, NULL /* no path */, &m_name, &m_ext);
+}
+
 wxString wxFileName::GetFullName() const
 {
     wxString fullname = m_name;