summaryrefslogtreecommitdiff
path: root/src/archivefiletree.h
diff options
context:
space:
mode:
authorAl <26797547+Al12rs@users.noreply.github.com>2020-06-07 03:44:05 -0700
committerGitHub <noreply@github.com>2020-06-07 03:44:05 -0700
commitbf055e804879c0a74750c7b60dbeababeafd3a23 (patch)
tree75f47a25da8c8045dd195f42c8c218acb425d3db /src/archivefiletree.h
parent226b2b1843bbf41581757f44f8a2f4728f0a4b19 (diff)
parent0ad56591fd9581aa9195f854ac3fc1b40d5b1802 (diff)
Merge pull request #1101 from Holt59/archive-lib-modification
Archive lib refactoring
Diffstat (limited to 'src/archivefiletree.h')
-rw-r--r--src/archivefiletree.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/archivefiletree.h b/src/archivefiletree.h
index 0041acd6..e4a5cbdd 100644
--- a/src/archivefiletree.h
+++ b/src/archivefiletree.h
@@ -37,7 +37,7 @@ public:
*
* @return a file tree representing the given archive.
*/
- static std::shared_ptr<ArchiveFileTree> makeTree(Archive* archive);
+ static std::shared_ptr<ArchiveFileTree> makeTree(Archive const& archive);
/**
* @brief Update the given archive to reflect change in this tree.
@@ -48,7 +48,7 @@ public:
* @param archive The archive to update. Must be the one used to
* create the tree.
*/
- virtual void mapToArchive(Archive *archive) const = 0;
+ virtual void mapToArchive(Archive &archive) const = 0;
/**
* @brief Update the given archive to prepare for the extraction
@@ -61,7 +61,7 @@ public:
* @param entries List of entries to mark for extraction. All the entries must
* come from a tree created with the given archive.
*/
- static void mapToArchive(Archive* archive, std::vector<std::shared_ptr<const FileTreeEntry>> const& entries);
+ static void mapToArchive(Archive &archive, std::vector<std::shared_ptr<const FileTreeEntry>> const& entries);
protected: