summaryrefslogtreecommitdiff
path: root/src/shared/fileentry.h
diff options
context:
space:
mode:
authorAL <26797547+Al12rs@users.noreply.github.com>2020-10-31 20:58:07 +0100
committerAL <26797547+Al12rs@users.noreply.github.com>2020-11-02 20:35:05 +0100
commitb7935aedec70dd4f0c40dbe948dba9a80a56a75a (patch)
tree358266669f9163a883dcc4fabf3fcc67f8b80fa0 /src/shared/fileentry.h
parent88475677d29a275fd9d25f452f58d3d745720124 (diff)
Change Alternatives vector to use a struct
Diffstat (limited to 'src/shared/fileentry.h')
-rw-r--r--src/shared/fileentry.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/fileentry.h b/src/shared/fileentry.h
index aceeec57..31655bb1 100644
--- a/src/shared/fileentry.h
+++ b/src/shared/fileentry.h
@@ -54,11 +54,11 @@ public:
OriginID getOrigin(bool &archive) const
{
- archive = (m_Archive.first.length() != 0);
+ archive = m_Archive.isValid();
return m_Origin;
}
- const std::pair<std::wstring, int> &getArchive() const
+ const DataArchiveOrigin &getArchive() const
{
return m_Archive;
}
@@ -107,7 +107,7 @@ private:
FileIndex m_Index;
std::wstring m_Name;
OriginID m_Origin;
- std::pair<std::wstring, int> m_Archive;
+ DataArchiveOrigin m_Archive;
AlternativesVector m_Alternatives;
DirectoryEntry *m_Parent;
mutable FILETIME m_FileTime;