From e8a82d565b7c075dfb3501c34061e52d696907f5 Mon Sep 17 00:00:00 2001 From: Karol Nowak Date: Sun, 8 Oct 2006 19:09:04 +0000 Subject: [PATCH] Fix some code formating mess. --- src/util.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 4a82023736b..2874fb633e7 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -16,10 +16,11 @@ // Remove tags from begining of string (it creates new string, so it's safe to call) std::string del_tags(std::string name){ - std::stringstream str; - bool colour_def = false; - bool not_name = true; - std::string::const_iterator it; + std::stringstream str; + bool colour_def = false; + bool not_name = true; + std::string::const_iterator it; + for (it = name.begin(); it != name.end(); it++){ // On the first analphabet character we stop react on specials characters if (not_name && isalpha(*it)){ @@ -112,4 +113,3 @@ double lexical_cast_default(const std::string& a, do } } -