summaryrefslogtreecommitdiff
path: root/Source/Core/Common/StringUtil.cpp
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-01-21 21:27:56 +0100
committermathieui <mathieui@mathieui.net>2016-01-21 21:27:56 +0100
commitf15ffda5a7518cb87a09f301deaeffab0723ec27 (patch)
tree1b32ad5818891950f940189107d433cdf26e0340 /Source/Core/Common/StringUtil.cpp
parent3e283ea9f17aa779832db065b2ecc4b19cf03e83 (diff)
Correct ampersands as well
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
-rw-r--r--Source/Core/Common/StringUtil.cpp8
1 files changed, 4 insertions, 4 deletions
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<std::stri
output.pop_back();
}
-std::string TabsToSpaces(int tab_size, const std::string &in)
+std::string TabsToSpaces(int tab_size, const std::string& in)
{
const std::string spaces(tab_size, ' ');
std::string out(in);