diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-30 09:38:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-30 09:38:57 +0100 |
commit | fb3f7e20c1cdeb944dff3c8ca9f48dc6450c9ebb (patch) | |
tree | 9e1d03d0891d22ca1bc499bd59a97bc5982f5105 /configmgr/source | |
parent | 6e2736705dbbeada40ae6663c006176d052d026a (diff) |
Get this remove/re-add dance finally sorted out for good
Change-Id: I16cb3fdd699dcd45de25b49d30e0d1b6392fd82b
Diffstat (limited to 'configmgr/source')
-rw-r--r-- | configmgr/source/modifications.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configmgr/source/modifications.hxx b/configmgr/source/modifications.hxx index dde84522edc4..5549e14a4d7c 100644 --- a/configmgr/source/modifications.hxx +++ b/configmgr/source/modifications.hxx @@ -24,8 +24,9 @@ #include <boost/unordered_map.hpp> -#include "path.hxx" +#include <config_dconf.h> +#include "path.hxx" namespace configmgr { @@ -45,6 +46,10 @@ public: void remove(Path const & path); +#if ENABLE_DCONF + void clear() { root_.children.clear(); } +#endif + bool empty() const { return root_.children.empty(); } Node const & getRoot() const { return root_;} |