From 0d81b1e75be62e6f7770cdbb823acba63b10c955 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 2 Jan 2015 20:30:57 -0500 Subject: archive: Fix initializer list order --- src/core/hle/service/fs/archive.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp index f19ca3a9f..9a91bcb8b 100644 --- a/src/core/hle/service/fs/archive.cpp +++ b/src/core/hle/service/fs/archive.cpp @@ -63,7 +63,7 @@ enum class DirectoryCommand : u32 { class Archive { public: Archive(std::unique_ptr&& 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(); } @@ -75,7 +75,7 @@ public: class File : public Kernel::Session { public: File(std::unique_ptr&& 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(); } @@ -160,7 +160,7 @@ public: class Directory : public Kernel::Session { public: Directory(std::unique_ptr&& 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(); } -- cgit v1.2.3 From bf23f945713f5e40ba4f96a2a279a6da2d516ba3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 2 Jan 2015 20:32:16 -0500 Subject: elf: Make DidRelocate const --- src/core/loader/elf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp index 354335014..3ca60c072 100644 --- a/src/core/loader/elf.cpp +++ b/src/core/loader/elf.cpp @@ -222,7 +222,7 @@ public: int GetSectionSize(SectionID section) const { return sections[section].sh_size; } SectionID GetSectionByName(const char *name, int firstSection = 0) const; //-1 for not found - bool DidRelocate() { + bool DidRelocate() const { return relocate; } }; -- cgit v1.2.3