From f325fc9634350f63faa7b04893805ada8d3f8816 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 14 Mar 2014 21:27:28 -0400 Subject: Clean up FileHandlerARC.cpp/.h - Removed parentheses from the returns. - Put the function declaration headers back on a single line. - Make FindFileInfo's parameter a const string reference. --- Source/Core/DiscIO/FileHandlerARC.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DiscIO/FileHandlerARC.h') diff --git a/Source/Core/DiscIO/FileHandlerARC.h b/Source/Core/DiscIO/FileHandlerARC.h index 1fccd5f894..89f3810024 100644 --- a/Source/Core/DiscIO/FileHandlerARC.h +++ b/Source/Core/DiscIO/FileHandlerARC.h @@ -49,6 +49,6 @@ class CARCFile size_t BuildFilenames(const size_t _FirstIndex, const size_t _LastIndex, const char* _szDirectory, const char* _szNameTable); - const SFileInfo* FindFileInfo(std::string _rFullPath) const; + const SFileInfo* FindFileInfo(const std::string& _rFullPath) const; }; } // namespace -- cgit v1.2.3 From bd1ce18f9092f2929929513729e8abee8f60e4a5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 14 Mar 2014 23:38:14 -0400 Subject: Simplify file tree building for the filesystem view. Technically this also simplifies on disc filename building in general. --- Source/Core/DiscIO/FileHandlerARC.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DiscIO/FileHandlerARC.h') diff --git a/Source/Core/DiscIO/FileHandlerARC.h b/Source/Core/DiscIO/FileHandlerARC.h index 89f3810024..327d81c4b9 100644 --- a/Source/Core/DiscIO/FileHandlerARC.h +++ b/Source/Core/DiscIO/FileHandlerARC.h @@ -47,7 +47,7 @@ class CARCFile bool ParseBuffer(); - size_t BuildFilenames(const size_t _FirstIndex, const size_t _LastIndex, const char* _szDirectory, const char* _szNameTable); + size_t BuildFilenames(const size_t _FirstIndex, const size_t _LastIndex, const std::string& _szDirectory, const char* _szNameTable); const SFileInfo* FindFileInfo(const std::string& _rFullPath) const; }; -- cgit v1.2.3