X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be5a51fb592f3fa2ba38ac6cd1e488d6d806058c..3a39df31ff47004a46cfb06f3fb2d3e317f96d2b:/utils/configtool/src/configtooldoc.h diff --git a/utils/configtool/src/configtooldoc.h b/utils/configtool/src/configtooldoc.h index 6929e5cb55..52fcd388dd 100644 --- a/utils/configtool/src/configtooldoc.h +++ b/utils/configtool/src/configtooldoc.h @@ -39,7 +39,7 @@ public: virtual bool OnCreate(const wxString& path, long flags); virtual bool OnOpenDocument(const wxString& filename); virtual bool OnSaveDocument(const wxString& filename); - virtual bool OnNewDocument() { return TRUE; } + virtual bool OnNewDocument() { return true; } virtual bool OnCloseDocument() ; virtual bool Save(); // Overridden only to correct bug in wxWidgets, docview.cpp @@ -92,10 +92,10 @@ public: /// Generate the text of a setup.h wxString GenerateSetup(); - + /// Helper function void GenerateSetup(ctConfigItem* item, wxString& str); - + /// Generate a configure command wxString GenerateConfigureCommand(); @@ -104,10 +104,10 @@ public: /// Finds the next item in the tree ctConfigItem* FindNextItem(ctConfigItem* item, bool wrap); - + /// Finds the next sibling in the tree ctConfigItem* FindNextSibling(ctConfigItem* item); - + protected: ctConfigItem* m_topItem; ctConfigItem* m_clipboardItem; @@ -127,7 +127,7 @@ public: ~ctConfiguration(); /// Copy constructor. - ctConfiguration(const ctConfiguration& configuration) + ctConfiguration(const ctConfiguration& configuration) : wxObject() { (*this) = configuration; } @@ -260,16 +260,16 @@ public: ctConfigCommand(const wxString& name, int cmdId, ctConfigItem* activeState, ctConfigItem* savedState, ctConfigItem* parent = NULL, ctConfigItem* insertBefore = NULL, - bool ignoreFirstTime = FALSE); + bool ignoreFirstTime = false); ctConfigCommand(const wxString& name, int cmdId, ctConfigItem* activeState, ctProperties* properties, - bool ignoreFirstTime = FALSE); + bool ignoreFirstTime = false); ~ctConfigCommand(); bool Do(); bool Undo(); bool DoAndUndo(bool doCmd); // Combine Do and Undo into one - + protected: ctConfigItem* m_activeState; ctConfigItem* m_savedState;