From a4b97f2ce06c46b46674470ad23536a140326afb Mon Sep 17 00:00:00 2001
From: Georg Lukas <georg@op-co.de>
Date: Wed, 25 Mar 2009 14:53:33 +0100
Subject: code optimization

---
 src/awds/configVariable.h |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/awds/configVariable.h b/src/awds/configVariable.h
index bb06d6cf1b7de76dfeca3b9c93ad9ad10eb57aad..baf787cd4cf20d4aaba7b3c1f0aa53e43b28b4a6 100644
--- a/src/awds/configVariable.h
+++ b/src/awds/configVariable.h
@@ -147,12 +147,7 @@ class ConfigVariableBool : public ConfigVariable
 		virtual int fromString(std::string s)
 		{
 			
-			if(!s.compare("true"))
-			{
-				bool mvalue=true;
-				return m_vsh(m_thisref,&mvalue);
-			}
-			bool mvalue=false; //TODO correct to assume false??
+			bool mvalue = (s.compare("true") == 0);
 			return m_vsh(m_thisref,&mvalue);
 		}
 };
@@ -234,4 +229,4 @@ class ConfigVariableDouble : public ConfigVariable
 };
 
 
-#endif
\ No newline at end of file
+#endif
-- 
1.6.2.1


