summaryrefslogtreecommitdiff
path: root/src/filetreeitem.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-19 23:00:18 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-02-04 03:33:19 -0500
commit2be531470d54fa56307e392ad5bdfbc02048a744 (patch)
tree4ab9e436d40b1650fdce9378bdef83b970cd2136 /src/filetreeitem.cpp
parent0a908c49625fe0e54bc45e29fe8c4908d20b0dbe (diff)
renamed ToLower() to avoid confusion with in-place vs copy
pre-hashed file lookup in DirectoryEntry
Diffstat (limited to 'src/filetreeitem.cpp')
-rw-r--r--src/filetreeitem.cpp26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/filetreeitem.cpp b/src/filetreeitem.cpp
index 0469dfcc..39cdd9c4 100644
--- a/src/filetreeitem.cpp
+++ b/src/filetreeitem.cpp
@@ -6,24 +6,22 @@
using namespace MOBase;
using namespace MOShared;
-FileTreeItem::FileTreeItem()
- : m_flags(NoFlags), m_loaded(false)
-{
-}
-
FileTreeItem::FileTreeItem(
FileTreeItem* parent, int originID,
std::wstring dataRelativeParentPath, std::wstring realPath, Flags flags,
std::wstring file, std::wstring mod) :
- m_parent(parent), m_originID(originID),
- m_virtualParentPath(QString::fromStdWString(dataRelativeParentPath)),
- m_realPath(QString::fromStdWString(realPath)),
- m_flags(flags),
- m_wsFile(file), m_wsLcFile(ToLower(file)),
- m_file(QString::fromStdWString(file)),
- m_mod(QString::fromStdWString(mod)),
- m_loaded(false),
- m_expanded(false)
+ m_parent(parent),
+ m_originID(originID),
+ m_virtualParentPath(QString::fromStdWString(dataRelativeParentPath)),
+ m_realPath(QString::fromStdWString(realPath)),
+ m_flags(flags),
+ m_wsFile(file),
+ m_wsLcFile(ToLowerCopy(file)),
+ m_key(m_wsLcFile),
+ m_file(QString::fromStdWString(file)),
+ m_mod(QString::fromStdWString(mod)),
+ m_loaded(false),
+ m_expanded(false)
{
}