From 2debd445c71e65265359b6471795cab2cb2c7086 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 24 Aug 2007 12:32:19 +0000 Subject: Added trimming of name for new character creation and of chat messages appearing above players. Also improved resize mouse cursor indication, removing duplicated code and fixing indicator above resize grip. --- src/utils/trim.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/trim.h b/src/utils/trim.h index 19d37909..1b5311e6 100644 --- a/src/utils/trim.h +++ b/src/utils/trim.h @@ -21,6 +21,9 @@ * $Id$ */ +#ifndef _TMW_UTILS_TRIM_H_ +#define _TMW_UTILS_TRIM_H_ + #include /** @@ -28,7 +31,7 @@ * * @param str the string to trim spaces off */ -void trim(std::string &str) +static void trim(std::string &str) { std::string::size_type pos = str.find_last_not_of(' '); if (pos != std::string::npos) @@ -46,3 +49,5 @@ void trim(std::string &str) str.clear(); } } + +#endif -- cgit v1.2.3-70-g09d2