From fb96947585c9b133775f58699a1f62cc664a23fe Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 20 Aug 2002 13:28:51 +0000 Subject: [PATCH] fixed m_relative initialization in wxFileName default ctor and Clear() (patch 597736) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/filename.h | 3 ++- src/common/filename.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wx/filename.h b/include/wx/filename.h index 4e5923d5d2..64a48aa5ed 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -96,7 +96,7 @@ public: // constructors and assignment // the usual stuff - wxFileName() { } + wxFileName() { Clear(); } wxFileName( const wxFileName &filepath ) { Assign(filepath); } // from a full filename: if it terminates with a '/', a directory path @@ -219,6 +219,7 @@ public: // looks up the appropriate type and creator from the registration and then sets bool MacSetDefaultTypeAndCreator() ; #endif + // various file/dir operations // retrieve the value of the current working directory diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 7ca4edd295..0e3653a6a3 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -434,6 +434,9 @@ void wxFileName::Clear() m_volume = m_name = m_ext = wxEmptyString; + + // we don't have any absolute path for now + m_relative = TRUE; } /* static */ -- 2.45.2