From 0a3dade905e4112b8ba2eb29b3781ee03b243ea6 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Tue, 12 May 2020 19:32:31 +0200 Subject: Update after const_cast removal in uibase. --- src/archivefiletree.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/archivefiletree.cpp') diff --git a/src/archivefiletree.cpp b/src/archivefiletree.cpp index 96b7e42b..6bd2b820 100644 --- a/src/archivefiletree.cpp +++ b/src/archivefiletree.cpp @@ -40,7 +40,7 @@ public: * @param index The index of the file in the archive. * @param time The modification time of this file. */ - ArchiveFileEntry(std::shared_ptr parent, QString name, int index, QDateTime time) : + ArchiveFileEntry(std::shared_ptr parent, QString name, int index, QDateTime time) : FileTreeEntry(parent, name, time), m_Index(index) { } @@ -51,7 +51,7 @@ public: * @param name The name of this directory. * @param index The index of the directory in the archive, or -1. */ - ArchiveFileEntry(std::shared_ptr parent, QString name, int index) : + ArchiveFileEntry(std::shared_ptr parent, QString name, int index) : FileTreeEntry(parent, name), m_Index(index) { } @@ -70,7 +70,7 @@ public: public: // Public for make_shared (but not accessible by other since not exposed in .h): - ArchiveFileTreeImpl(std::shared_ptr parent, QString name, int index, std::vector&& files) + ArchiveFileTreeImpl(std::shared_ptr parent, QString name, int index, std::vector&& files) : FileTreeEntry(parent, name), ArchiveFileEntry(parent, name, index), IFileTree(), m_Files(std::move(files)) { } public: // Override to avoid VS warnings: @@ -145,11 +145,11 @@ protected: * @override */ virtual std::shared_ptr makeDirectory( - std::shared_ptr parent, QString name) const override { + std::shared_ptr parent, QString name) const override { return std::make_shared(parent, name, -1, std::vector{}); } - virtual void doPopulate(std::shared_ptr parent, std::vector>& entries) const override { + virtual void doPopulate(std::shared_ptr parent, std::vector>& entries) const override { // Sort by name: std::sort(std::begin(m_Files), std::end(m_Files), -- cgit v1.3.1