diff --git a/Source/Common/path.h b/Source/Common/path.h index 2c03aa6dc..b04a2abc9 100644 --- a/Source/Common/path.h +++ b/Source/Common/path.h @@ -2,15 +2,6 @@ #include #include "stdtypes.h" -class CPathException -{ -public: - uint32_t m_dwErrorCode; - -public: - CPathException(uint32_t code = 0) : m_dwErrorCode(code) {} -}; - class CPath { //Enums @@ -50,7 +41,7 @@ public: CPath(const CPath& rPath); CPath(const char * lpszPath); CPath(const char * lpszPath, const char * NameExten); - CPath(const char * lpszPath, const std::string & NameExten); + //CPath(const char * lpszPath, const std::string & NameExten); CPath(const std::string& strPath); CPath(const std::string& strPath, const char * NameExten); CPath(const std::string& strPath, const std::string& NameExten); @@ -62,10 +53,6 @@ public: #endif virtual ~CPath(); - //Setup & Cleanup - inline void Init(); - inline void Exit(); - //Operators CPath& operator = (const CPath& rPath); CPath& operator = (const char * lpszPath); @@ -159,6 +146,10 @@ public: #endif private: + //Setup & Cleanup + inline void Init(); + inline void Exit(); + bool AttributesMatch(uint32_t dwTargetAttributes, uint32_t dwFileAttributes); void cleanPathString(std::string& rDirectory) const; diff --git a/Source/Common/stdafx.h b/Source/Common/stdafx.h index 59d71db86..47b0edf79 100644 --- a/Source/Common/stdafx.h +++ b/Source/Common/stdafx.h @@ -5,6 +5,7 @@ #include #include "MemTest.h" +#include "Platform.h" #include "StdString.h" #include "CriticalSection.h" #include "FileClass.h"