change to:

bool getSetting(const char* settingName, bool& boolSetting, bool defaultSetting = false);