]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dir.h
Support some CSS styles for the links in wxHTML too.
[wxWidgets.git] / include / wx / dir.h
index 0781b13c13d470d8879f364a883d75d492f1bd73..83dab66454b83c7a296bdcc1b237d76c1b893e8b 100644 (file)
@@ -94,12 +94,15 @@ public:
     // opens the directory for enumeration, use IsOpened() to test success
     wxDir(const wxString& dir);
 
-    // dtor cleans up the associated resources
-    ~wxDir();
+    // dtor calls Close() automatically
+    ~wxDir() { Close(); }
 
     // open the directory for enumerating
     bool Open(const wxString& dir);
 
+    // close the directory, Open() can be called again later
+    void Close();
+
     // returns true if the directory was successfully opened
     bool IsOpened() const;