From e823418b40aed0a230352a83c76f87741bf8c4a7 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 5 Feb 2010 14:14:15 -0700 Subject: Fix the return type of getBoolProperty and standardize the docs --- src/properties.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/properties.h') diff --git a/src/properties.h b/src/properties.h index e7aab157..e203c75c 100644 --- a/src/properties.h +++ b/src/properties.h @@ -57,8 +57,8 @@ class Properties * * @param name The name of the property. * @param def Default value, 0.0f by default. - * @return the value of the given property, or 0.0f when it doesn't - * exist. + * @return the value of the given property or the given default when it + * doesn't exist. */ float getFloatProperty(const std::string &name, float def = 0.0f) const { @@ -78,8 +78,8 @@ class Properties * * @param name The name of the property. * @param def Default value, false by default. - * @return the value of the given property, or false when it doesn't - * exist. + * @return the value of the given property or the given default when it + * doesn't exist. */ float getBoolProperty(const std::string &name, bool def = false) const { -- cgit v1.2.3-60-g2f50