CVirtualDirectory: Resolve -Wreorder warnings

This commit is contained in:
Lioncash 2020-06-12 16:09:20 -04:00
parent 1ae5462cd7
commit e8a20933de
2 changed files with 4 additions and 4 deletions

View File

@ -5,17 +5,17 @@
#include <algorithm> #include <algorithm>
CVirtualDirectory::CVirtualDirectory(CResourceStore *pStore) CVirtualDirectory::CVirtualDirectory(CResourceStore *pStore)
: mpParent(nullptr), mpStore(pStore) : mpStore(pStore)
{} {}
CVirtualDirectory::CVirtualDirectory(const TString& rkName, CResourceStore *pStore) CVirtualDirectory::CVirtualDirectory(const TString& rkName, CResourceStore *pStore)
: mpParent(nullptr), mName(rkName), mpStore(pStore) : mpStore(pStore), mName(rkName)
{ {
ASSERT(!mName.IsEmpty() && FileUtil::IsValidName(mName, true)); ASSERT(!mName.IsEmpty() && FileUtil::IsValidName(mName, true));
} }
CVirtualDirectory::CVirtualDirectory(CVirtualDirectory *pParent, const TString& rkName, CResourceStore *pStore) CVirtualDirectory::CVirtualDirectory(CVirtualDirectory *pParent, const TString& rkName, CResourceStore *pStore)
: mpParent(pParent), mName(rkName), mpStore(pStore) : mpParent(pParent), mpStore(pStore), mName(rkName)
{ {
ASSERT(!mName.IsEmpty() && FileUtil::IsValidName(mName, true)); ASSERT(!mName.IsEmpty() && FileUtil::IsValidName(mName, true));
} }

View File

@ -12,7 +12,7 @@ class CResourceStore;
class CVirtualDirectory class CVirtualDirectory
{ {
CVirtualDirectory *mpParent; CVirtualDirectory *mpParent = nullptr;
CResourceStore *mpStore; CResourceStore *mpStore;
TString mName; TString mName;
std::vector<CVirtualDirectory*> mSubdirectories; std::vector<CVirtualDirectory*> mSubdirectories;