[1231183] 'cleanup: mismatched indentation' and other cleanings.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-07-22 16:56:26 +00:00
parent 0423ae974b
commit 66e9a9f0ae
3 changed files with 15 additions and 14 deletions

View File

@@ -166,7 +166,7 @@ public:
if ( font.IsUsingSizeInPixels() ) if ( font.IsUsingSizeInPixels() )
SetPixelSize(font.GetPixelSize()); SetPixelSize(font.GetPixelSize());
else else
SetPointSize(font.GetPointSize()); SetPointSize(font.GetPointSize());
#else #else
SetPointSize(font.GetPointSize()); SetPointSize(font.GetPointSize());
#endif #endif

View File

@@ -22,26 +22,27 @@ class WXDLLEXPORT wxGDIRefData: public wxObjectRefData {
public: public:
inline wxGDIRefData() inline wxGDIRefData()
{ {
} }
}; };
#define M_GDIDATA ((wxGDIRefData *)m_refData) #define M_GDIDATA ((wxGDIRefData *)m_refData)
class WXDLLEXPORT wxGDIObject: public wxObject class WXDLLEXPORT wxGDIObject: public wxObject
{ {
DECLARE_DYNAMIC_CLASS(wxGDIObject) DECLARE_DYNAMIC_CLASS(wxGDIObject)
public:
wxGDIObject() : m_visible(FALSE) { }
~wxGDIObject() { }
bool IsNull() const { return (m_refData == 0); } public:
wxGDIObject() : m_visible(false) { }
~wxGDIObject() { }
virtual bool GetVisible() { return m_visible; } bool IsNull() const { return (m_refData == 0); }
virtual void SetVisible(bool v) { m_visible = v; }
virtual bool GetVisible() { return m_visible; }
virtual void SetVisible(bool v) { m_visible = v; }
protected: protected:
bool m_visible; // Can a pointer to this object be safely taken? bool m_visible; // Can a pointer to this object be safely taken?
// - only if created within FindOrCreate... // - only if created within FindOrCreate...
}; };
#endif #endif

View File

@@ -409,9 +409,9 @@ public:
virtual ~wxObject() { UnRef(); } virtual ~wxObject() { UnRef(); }
wxObject(const wxObject& other) wxObject(const wxObject& other)
{ {
InitFrom(other); InitFrom(other);
} }
wxObject& operator=(const wxObject& other) wxObject& operator=(const wxObject& other)
{ {