summaryrefslogtreecommitdiffhomepage
path: root/config.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2022-12-30 15:07:39 +0100
committerRoland Reichwein <mail@reichwein.it>2022-12-30 15:07:39 +0100
commitaf1c4ee4d74ff7afc997372802d851d11daad418 (patch)
tree745761113c41ccbe6ea37119b51b609a219882c9 /config.cpp
parent3f3d579c6a6f9a1a31278221f85b3194e3b6c5f4 (diff)
Added tests, added sqlite-backed storage (WIP!)
Diffstat (limited to 'config.cpp')
-rw-r--r--config.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/config.cpp b/config.cpp
index e3ef68f..0255023 100644
--- a/config.cpp
+++ b/config.cpp
@@ -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;
}