Kaydet (Commit) fb3f7e20 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Get this remove/re-add dance finally sorted out for good

Change-Id: I16cb3fdd699dcd45de25b49d30e0d1b6392fd82b
üst 6e273670
...@@ -24,8 +24,9 @@ ...@@ -24,8 +24,9 @@
#include <boost/unordered_map.hpp> #include <boost/unordered_map.hpp>
#include "path.hxx" #include <config_dconf.h>
#include "path.hxx"
namespace configmgr { namespace configmgr {
...@@ -45,6 +46,10 @@ public: ...@@ -45,6 +46,10 @@ public:
void remove(Path const & path); void remove(Path const & path);
#if ENABLE_DCONF
void clear() { root_.children.clear(); }
#endif
bool empty() const { return root_.children.empty(); } bool empty() const { return root_.children.empty(); }
Node const & getRoot() const { return root_;} Node const & getRoot() const { return root_;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment