diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-15 02:20:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-15 02:20:52 +0300 |
commit | 18b8d9888cd5ee8a533a1059f109d8de1c6b04d1 (patch) | |
tree | db753995392ae8e6c5202467f417f31deb8717f0 /src/utils | |
parent | c3b8f951d6e16dfb48cb71bd7ad3d7c43ea56c0a (diff) | |
download | manaverse-18b8d9888cd5ee8a533a1059f109d8de1c6b04d1.tar.gz manaverse-18b8d9888cd5ee8a533a1059f109d8de1c6b04d1.tar.bz2 manaverse-18b8d9888cd5ee8a533a1059f109d8de1c6b04d1.tar.xz manaverse-18b8d9888cd5ee8a533a1059f109d8de1c6b04d1.zip |
Fix code style again.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/copynpaste.cpp | 4 | ||||
-rw-r--r-- | src/utils/stringutils.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp index b5dc63449..94cfe9589 100644 --- a/src/utils/copynpaste.cpp +++ b/src/utils/copynpaste.cpp @@ -407,7 +407,7 @@ bool retrieveBuffer(std::string& text, size_t& pos) return false; } -bool runxsel(std::string& text, const char *p1, const char *p2 = nullptr); +static bool runxsel(std::string& text, const char *p1, const char *p2 = nullptr); bool sendBuffer(std::string& text) { @@ -416,7 +416,7 @@ bool sendBuffer(std::string& text) return true; } -bool runxsel(std::string& text, const char *p1, const char *p2) +static bool runxsel(std::string& text, const char *p1, const char *p2) { pid_t pid; int fd[2]; diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index 92dddebea..2ac31dd2b 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -62,6 +62,8 @@ std::string &toUpper(std::string &str); */ unsigned int atox(const std::string &str); +template<typename T> std::string toString(const T &arg); + /** * Converts the given value to a string using std::stringstream. * |