From d2b7c26209aa17a90ad377d075067c93d813af9d Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Wed, 11 May 2011 02:24:04 -0500 Subject: [PATCH] small cleanup + comment --- src/ThemeMetric.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ThemeMetric.h b/src/ThemeMetric.h index 5ef34f9abe..a4073ffa1a 100644 --- a/src/ThemeMetric.h +++ b/src/ThemeMetric.h @@ -21,7 +21,7 @@ public: template struct ThemeMetricTypeTraits { - enum { Callable = 1 }; + enum { Callable = 1 }; }; /* LuaReference and apActorCommands return the function directly without calling it. */ @@ -68,7 +68,7 @@ public: { ThemeManager::Subscribe( this ); } - + ~ThemeMetric() { ThemeManager::Unsubscribe( this ); @@ -131,7 +131,7 @@ public: * @brief Retrieve the metric's group. * @return the metric's group. */ const RString &GetGroup() const { return m_sGroup; } - + /** * @brief Retrieve the metric's value. * @return the metric's value. */ @@ -154,7 +154,7 @@ public: return m_currentValue; } - + operator const T& () const { return GetValue(); @@ -162,7 +162,8 @@ public: bool IsLoaded() const { return m_Value.IsSet(); } - //Hacks for VC6 for all boolean operators. + // Hacks for VC6 for all boolean operators. + // todo: get rid of these -aj bool operator ! () const { return !GetValue(); } bool operator && ( const T& input ) const { return GetValue() && input; } bool operator || ( const T& input ) const { return GetValue() || input; }