From cc91f4f6b469483cf8e01f8a0beec543ceed4bf6 Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 25 Jan 2008 12:23:29 +0000 Subject: [PATCH] Avoid a warning from g++ 4.3. git-svn-id: http://svn.voria.com/code@1462 1f10aa63-cdf2-0310-b900-c93c546f37ac --- ETL/trunk/ETL/_stringf.h | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.7.4