aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libconfigcpp.c++
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-11-17 16:57:30 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-11-17 16:57:30 +0000
commitf2499612c5594944d3e0891259859668d35c85b2 (patch)
tree0672f579db91cfaca7a2935a86991fa67b5aae59 /lib/libconfigcpp.c++
parent429e46051dba814e7d6c74368eb1bba550222cbe (diff)
downloadlibconfig-f2499612c5594944d3e0891259859668d35c85b2.tar.gz
Imported Upstream version 1.4.9upstream/1.4.9
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