Skip to content
Snippets Groups Projects
Commit 0d81b1e7 authored by Lioncash's avatar Lioncash
Browse files

archive: Fix initializer list order

parent 092a67ce
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ enum class DirectoryCommand : u32 { ...@@ -63,7 +63,7 @@ enum class DirectoryCommand : u32 {
class Archive { class Archive {
public: public:
Archive(std::unique_ptr<FileSys::ArchiveBackend>&& backend, ArchiveIdCode id_code) Archive(std::unique_ptr<FileSys::ArchiveBackend>&& backend, ArchiveIdCode id_code)
: backend(std::move(backend)), id_code(id_code) { : id_code(id_code), backend(std::move(backend)) {
} }
std::string GetName() const { return "Archive: " + backend->GetName(); } std::string GetName() const { return "Archive: " + backend->GetName(); }
...@@ -75,7 +75,7 @@ public: ...@@ -75,7 +75,7 @@ public:
class File : public Kernel::Session { class File : public Kernel::Session {
public: public:
File(std::unique_ptr<FileSys::FileBackend>&& backend, const FileSys::Path& path) File(std::unique_ptr<FileSys::FileBackend>&& backend, const FileSys::Path& path)
: backend(std::move(backend)), path(path) { : path(path), backend(std::move(backend)) {
} }
std::string GetName() const override { return "Path: " + path.DebugStr(); } std::string GetName() const override { return "Path: " + path.DebugStr(); }
...@@ -160,7 +160,7 @@ public: ...@@ -160,7 +160,7 @@ public:
class Directory : public Kernel::Session { class Directory : public Kernel::Session {
public: public:
Directory(std::unique_ptr<FileSys::DirectoryBackend>&& backend, const FileSys::Path& path) Directory(std::unique_ptr<FileSys::DirectoryBackend>&& backend, const FileSys::Path& path)
: backend(std::move(backend)), path(path) { : path(path), backend(std::move(backend)) {
} }
std::string GetName() const override { return "Directory: " + path.DebugStr(); } std::string GetName() const override { return "Directory: " + path.DebugStr(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment