summaryrefslogtreecommitdiff
path: root/louloulibs/config/config.hpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-05-04 14:16:40 +0200
committerlouiz’ <louiz@louiz.org>2016-05-04 14:16:40 +0200
commitaf42073830087d97385e507f27f601e8769541b0 (patch)
treed7187f5dcbf73cf73776c6c9dad01ad4d0a25b51 /louloulibs/config/config.hpp
parent305e01c0b58ec5cfee276841488f9c24835ce923 (diff)
downloadbiboumi-af42073830087d97385e507f27f601e8769541b0.tar.gz
biboumi-af42073830087d97385e507f27f601e8769541b0.tar.bz2
biboumi-af42073830087d97385e507f27f601e8769541b0.tar.xz
biboumi-af42073830087d97385e507f27f601e8769541b0.zip
Style fix
Move all constructors at the top of classes
Diffstat (limited to 'louloulibs/config/config.hpp')
-rw-r--r--louloulibs/config/config.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/louloulibs/config/config.hpp b/louloulibs/config/config.hpp
index 688c081..72620c0 100644
--- a/louloulibs/config/config.hpp
+++ b/louloulibs/config/config.hpp
@@ -28,8 +28,13 @@ typedef std::function<void()> t_config_changed_callback;
class Config
{
public:
- Config(){};
- ~Config(){};
+ Config() = default;
+ ~Config() = default;
+ Config(const Config&) = delete;
+ Config& operator=(const Config&) = delete;
+ Config(Config&&) = delete;
+ Config& operator=(Config&&) = delete;
+
/**
* returns a value from the config. If it doesn’t exist, use
* the second argument as the default.
@@ -88,10 +93,6 @@ private:
std::map<std::string, std::string> values;
std::vector<t_config_changed_callback> callbacks;
- Config(const Config&) = delete;
- Config& operator=(const Config&) = delete;
- Config(Config&&) = delete;
- Config& operator=(Config&&) = delete;
};
#endif // CONFIG_INCLUDED