From 18b8d9888cd5ee8a533a1059f109d8de1c6b04d1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 15 Aug 2012 02:20:52 +0300 Subject: Fix code style again. --- src/utils/copynpaste.cpp | 4 ++-- src/utils/stringutils.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/utils') 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 std::string toString(const T &arg); + /** * Converts the given value to a string using std::stringstream. * -- cgit v1.2.3-70-g09d2