diff options
Diffstat (limited to 'config.cpp')
-rw-r--r-- | config.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -9,10 +9,9 @@ namespace pt = boost::property_tree; namespace { const std::string default_datapath {"/var/lib/whiteboard"}; - const std::string config_filename{"/etc/webserver.conf"}; } -Config::Config(): m_dataPath{default_datapath} +Config::Config(const std::string& config_filename): m_dataPath{default_datapath} { try { @@ -26,7 +25,7 @@ Config::Config(): m_dataPath{default_datapath} } } -std::string Config::getDataPath() +std::string Config::getDataPath() const { return m_dataPath; } |