From: dooglus Date: Fri, 25 Jan 2008 12:23:29 +0000 (+0000) Subject: Avoid a warning from g++ 4.3. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cc91f4f6b469483cf8e01f8a0beec543ceed4bf6;p=synfig.git Avoid a warning from g++ 4.3. git-svn-id: http://svn.voria.com/code@1462 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/ETL/trunk/ETL/_stringf.h b/ETL/trunk/ETL/_stringf.h index dfc4bcf..6962799 100644 --- a/ETL/trunk/ETL/_stringf.h +++ b/ETL/trunk/ETL/_stringf.h @@ -198,10 +198,12 @@ dirname(const std::string &str) break; if(iter==str.begin()) + { if (*iter==ETL_DIRECTORY_SEPARATOR) return "/"; else return "."; + } return std::string(str.begin(),iter); }