summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2014-12-12 17:32:57 +0100
committerTony Wasserka <neobrainx@gmail.com>2014-12-12 17:32:57 +0100
commit33e61ef514d2b1a32eea10161d900f1e2e5c0ba2 (patch)
treed4f7e432ab42cf7fad3834bb14ba72b54b346cc0 /src/common
parentMerge pull request #268 from bunnei/dsp-read-pipe-if-possible (diff)
parentStringUtil: Perform some minimal cleanup. (diff)
downloadyuzu-33e61ef514d2b1a32eea10161d900f1e2e5c0ba2.tar
yuzu-33e61ef514d2b1a32eea10161d900f1e2e5c0ba2.tar.gz
yuzu-33e61ef514d2b1a32eea10161d900f1e2e5c0ba2.tar.bz2
yuzu-33e61ef514d2b1a32eea10161d900f1e2e5c0ba2.tar.lz
yuzu-33e61ef514d2b1a32eea10161d900f1e2e5c0ba2.tar.xz
yuzu-33e61ef514d2b1a32eea10161d900f1e2e5c0ba2.tar.zst
yuzu-33e61ef514d2b1a32eea10161d900f1e2e5c0ba2.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/string_util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index 19e162c27..7a8274a91 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -2,7 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
-#include <algorithm>
+#include <boost/range/algorithm.hpp>
#include "common/common.h"
#include "common/string_util.h"
@@ -18,13 +18,13 @@ namespace Common {
/// Make a string lowercase
std::string ToLower(std::string str) {
- std::transform(str.begin(), str.end(), str.begin(), ::tolower);
+ boost::transform(str, str.begin(), ::tolower);
return str;
}
/// Make a string uppercase
std::string ToUpper(std::string str) {
- std::transform(str.begin(), str.end(), str.begin(), ::toupper);
+ boost::transform(str, str.begin(), ::toupper);
return str;
}