From: Vadim Zeitlin Date: Sun, 6 Feb 2005 16:17:18 +0000 (+0000) Subject: removed trailing semicolons after DECLARE_DYNAMIC_CLASS(), Borland chokes on them X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3839f37ed32f788ffe3237a616ef60e93a017e4e?ds=inline removed trailing semicolons after DECLARE_DYNAMIC_CLASS(), Borland chokes on them git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index e2f9693a20..c826e2b499 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -892,7 +892,7 @@ private: wxGrid * m_view; wxGridCellAttrProvider *m_attrProvider; - DECLARE_ABSTRACT_CLASS( wxGridTableBase ); + DECLARE_ABSTRACT_CLASS(wxGridTableBase) DECLARE_NO_COPY_CLASS(wxGridTableBase) }; diff --git a/include/wx/mediactrl.h b/include/wx/mediactrl.h index 71c804b6b1..1e6ece736c 100644 --- a/include/wx/mediactrl.h +++ b/include/wx/mediactrl.h @@ -200,7 +200,7 @@ protected: bool m_bLoaded; bool m_bLoop; - DECLARE_DYNAMIC_CLASS(wxMediaCtrl); + DECLARE_DYNAMIC_CLASS(wxMediaCtrl) }; // ---------------------------------------------------------------------------- @@ -262,7 +262,7 @@ public: virtual wxMediaState GetState() { return wxMEDIASTATE_STOPPED; } - DECLARE_CLASS(wxMediaBackend) + DECLARE_DYNAMIC_CLASS(wxMediaBackend) }; //Event ID to give to our events diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index 21853e4728..9fff22c1fa 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -140,19 +140,19 @@ private: class WXDLLEXPORT wxMenuInfo : public wxObject { public : - wxMenuInfo() { m_menu = NULL ; } + wxMenuInfo() { m_menu = NULL; } virtual ~wxMenuInfo() { } void Create( wxMenu *menu , const wxString &title ) - { m_menu = menu ; m_title = title ; } - wxMenu* GetMenu() const { return m_menu ; } - wxString GetTitle() const { return m_title ; } + { m_menu = menu; m_title = title; } + wxMenu* GetMenu() const { return m_menu; } + wxString GetTitle() const { return m_title; } private : - wxMenu *m_menu ; - wxString m_title ; + wxMenu *m_menu; + wxString m_title; - DECLARE_DYNAMIC_CLASS(wxMenuInfo) ; -} ; + DECLARE_DYNAMIC_CLASS(wxMenuInfo) +}; WX_DECLARE_EXPORTED_LIST(wxMenuInfo, wxMenuInfoList ); @@ -169,8 +169,8 @@ public: virtual ~wxMenuBar(); // menubar construction - bool Append( wxMenuInfo *info ) { return Append( info->GetMenu() , info->GetTitle() ) ; } - const wxMenuInfoList& GetMenuInfos() const ; + bool Append( wxMenuInfo *info ) { return Append( info->GetMenu() , info->GetTitle() ); } + const wxMenuInfoList& GetMenuInfos() const; virtual bool Append( wxMenu *menu, const wxString &title ); virtual bool Insert(size_t pos, wxMenu *menu, const wxString& title); @@ -220,7 +220,7 @@ protected: // common part of all ctors void Init(); - wxArrayString m_titles ; + wxArrayString m_titles; wxMenuInfoList m_menuInfos; WXHMENU m_hMenu; diff --git a/include/wx/msw/notebook.h b/include/wx/msw/notebook.h index 883ffae275..97a3141c54 100644 --- a/include/wx/msw/notebook.h +++ b/include/wx/msw/notebook.h @@ -30,23 +30,33 @@ class WXDLLEXPORT wxNotebookPageInfo : public wxObject { public : - wxNotebookPageInfo() { m_page = NULL ; m_imageId = -1 ; m_selected = false ; } + wxNotebookPageInfo() { m_page = NULL; m_imageId = -1; m_selected = false; } virtual ~wxNotebookPageInfo() { } - void Create( wxNotebookPage *page , const wxString &text , bool selected , int imageId ) - { m_page = page ; m_text = text ; m_selected = selected ; m_imageId = imageId ; } - wxNotebookPage* GetPage() const { return m_page ; } - wxString GetText() const { return m_text ; } - bool GetSelected() const { return m_selected ; } + void Create(wxNotebookPage *page, + const wxString& text, + bool selected, + int imageId) + { + m_page = page; + m_text = text; + m_selected = selected; + m_imageId = imageId; + } + + wxNotebookPage* GetPage() const { return m_page; } + wxString GetText() const { return m_text; } + bool GetSelected() const { return m_selected; } int GetImageId() const { return m_imageId; } -private : - wxNotebookPage *m_page ; - wxString m_text ; - bool m_selected ; - int m_imageId ; - DECLARE_DYNAMIC_CLASS(wxNotebookPageInfo) ; -} ; +private: + wxNotebookPage *m_page; + wxString m_text; + bool m_selected; + int m_imageId; + + DECLARE_DYNAMIC_CLASS(wxNotebookPageInfo) +}; WX_DECLARE_EXPORTED_LIST(wxNotebookPageInfo, wxNotebookPageInfoList ); @@ -125,8 +135,8 @@ public: bool bSelect = false, int imageId = -1); - void AddPageInfo( wxNotebookPageInfo* info ) { AddPage( info->GetPage() , info->GetText() , info->GetSelected() , info->GetImageId() ) ; } - const wxNotebookPageInfoList& GetPageInfos() const ; + void AddPageInfo( wxNotebookPageInfo* info ) { AddPage( info->GetPage() , info->GetText() , info->GetSelected() , info->GetImageId() ); } + const wxNotebookPageInfoList& GetPageInfos() const; // Windows-only at present. Also, you must use the wxNB_FIXEDWIDTH // style. diff --git a/src/msw/mediactrl.cpp b/src/msw/mediactrl.cpp index a6c9f7e610..f0fbf91a47 100644 --- a/src/msw/mediactrl.cpp +++ b/src/msw/mediactrl.cpp @@ -186,7 +186,7 @@ public: HWND m_hNotifyWnd; //Window to use for MCI events bool m_bVideo; //Whether or not we have video - DECLARE_DYNAMIC_CLASS(wxMCIMediaBackend); + DECLARE_DYNAMIC_CLASS(wxMCIMediaBackend) }; //---------------------------------------------------------------------------