]> Dogcows Code - chaz/openbox/blobdiff - src/Resource.h
fixed a memory leak for resource.titlebar_layout
[chaz/openbox] / src / Resource.h
index 985e29d8a1495837c9a780ce63dbd08fe2962f87..7d7924943bfb4f9fe15928ef752d5bede98a7df8 100644 (file)
 #include <X11/Xlib.h>
 #include <X11/Xresource.h>
 
-class obResource {
+class Resource {
 public:
-  obResource(const std::string &file);
-  obResource();
-  virtual ~obResource();
+  Resource(const std::string &file);
+  Resource();
+  virtual ~Resource();
 
   inline const std::string &file() const {
     return static_cast<const std::string &>(m_file);
@@ -50,6 +50,7 @@ public:
 
   void save();
   bool load();
+  void create();
 
   void setValue(const std::string &rname, bool value);
   void setValue(const std::string &rname, int value);
@@ -65,6 +66,7 @@ public:
                 std::string &value) const;
 
 private:
+  static bool m_initialized;
   std::string m_file;
   bool m_modified;
   bool m_autosave;
This page took 0.020671 seconds and 4 git commands to generate.