From 56569e542521ab1d52c4ebdc5d41c9da7dc4507a Mon Sep 17 00:00:00 2001 From: Aloshi Date: Wed, 19 Jun 2013 18:31:59 -0500 Subject: [PATCH] Made Settings Getter/Setter macro more g++-friendly. --- src/Settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Settings.cpp b/src/Settings.cpp index 3ce442708..52111668d 100644 --- a/src/Settings.cpp +++ b/src/Settings.cpp @@ -83,7 +83,7 @@ void Settings::loadFile() } //Print a warning message if the setting we're trying to get doesn't already exist in the map, then return the value in the map. -#define SETTINGS_GETSET(type, mapName, getMethodName, setMethodName) type Settings::##getMethodName##(const std::string& name) \ +#define SETTINGS_GETSET(type, mapName, getMethodName, setMethodName) type Settings::getMethodName(const std::string& name) \ { \ if(mapName.find(name) == mapName.end()) \ { \ @@ -91,7 +91,7 @@ void Settings::loadFile() } \ return mapName[name]; \ } \ -void Settings::##setMethodName##(const std::string& name, type value) \ +void Settings::setMethodName(const std::string& name, type value) \ { \ mapName[name] = value; \ }