From f15ffda5a7518cb87a09f301deaeffab0723ec27 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 21 Jan 2016 21:27:56 +0100 Subject: Correct ampersands as well --- Source/Core/Common/StringUtil.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/Common/StringUtil.cpp') diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index bb8ec8887c..2eb68a944a 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -167,7 +167,7 @@ std::string ArrayToString(const u8* data, u32 size, int line_len, bool spaces) } // Turns " hej " into "hej". Also handles tabs. -std::string StripSpaces(const std::string &str) +std::string StripSpaces(const std::string& str) { const size_t s = str.find_first_not_of(" \t\r\n"); @@ -188,7 +188,7 @@ std::string StripQuotes(const std::string& s) return s; } -bool TryParse(const std::string &str, u32* const output) +bool TryParse(const std::string& str, u32* const output) { char* endptr = nullptr; @@ -213,7 +213,7 @@ bool TryParse(const std::string &str, u32* const output) return true; } -bool TryParse(const std::string &str, bool* const output) +bool TryParse(const std::string& str, bool* const output) { if ("1" == str || !strcasecmp("true", str.c_str())) *output = true; @@ -292,7 +292,7 @@ void SplitString(const std::string& str, const char delim, std::vector