aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libconfigcpp.c++
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libconfigcpp.c++')
-rw-r--r--lib/libconfigcpp.c++10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libconfigcpp.c++ b/lib/libconfigcpp.c++
index 846c067..6d196e7 100644
--- a/lib/libconfigcpp.c++
+++ b/lib/libconfigcpp.c++
@@ -45,7 +45,8 @@ ParseException::ParseException(const char *file, int line, const char *error)
// ---------------------------------------------------------------------------
ParseException::ParseException(const ParseException &other)
- : _file(other._file ? ::strdup(other._file) : NULL),
+ : ConfigException(other),
+ _file(other._file ? ::strdup(other._file) : NULL),
_line(other._line),
_error(other._error)
{
@@ -182,6 +183,7 @@ const char *SettingException::getPath() const
// ---------------------------------------------------------------------------
SettingException::SettingException(const SettingException &other)
+ : ConfigException(other)
{
_path = ::strdup(other._path);
}
@@ -461,7 +463,7 @@ bool Config::exists(const char *path) const throw()
V = (T)s; \
return(true); \
} \
- catch(ConfigException) \
+ catch(const ConfigException &) \
{ \
return(false); \
}
@@ -868,7 +870,7 @@ Setting & Setting::operator[](const char *key) const
V = (T)s; \
return(true); \
} \
- catch(ConfigException) \
+ catch(const ConfigException &) \
{ \
return(false); \
}
@@ -1162,6 +1164,6 @@ Setting & Setting::wrapSetting(config_setting_t *s)
// ---------------------------------------------------------------------------
-}; // namespace libconfig
+} // namespace libconfig
// eof