diff options
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. * |