]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct 'markup' for GetResourceHandle after recent change in wx/gdiobj.h.
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 23 Oct 2006 11:58:28 +0000 (11:58 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 23 Oct 2006 11:58:28 +0000 (11:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/os2/brush.h
include/wx/os2/font.h
include/wx/os2/gdiimage.h
include/wx/os2/pen.h
src/os2/brush.cpp
src/os2/font.cpp
src/os2/gdiimage.cpp
src/os2/pen.cpp

index f1d7be63e680a4a231d427c53d35789ca9ed7ce5..c7657279d543d5cceab9e95f4c4a3a163cdbc3af 100644 (file)
@@ -72,7 +72,7 @@ public:
     // Useful helper: create the brush resource
     //
     bool     RealizeResource(void);
-    WXHANDLE GetResourceHandle(void) ;
+    virtual WXHANDLE GetResourceHandle(void) const;
     bool     FreeResource(bool bForce = false);
     bool     IsFree(void) const;
     void     Unshare(void);
index 08e7ade7e3082f4027fdc16286ea6bb742f9d8ec..92e0b22698ddc88578ecafb6cc2407ad5d7435b7 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        font.h
+// Name:        wx/os2/font.h
 // Purpose:     wxFont class
 // Author:      David Webster
 // Modified by:
@@ -105,7 +105,7 @@ public:
     //
     virtual bool     IsFree(void) const;
     virtual bool     RealizeResource(void);
-    virtual WXHANDLE GetResourceHandle(void);
+    virtual WXHANDLE GetResourceHandle(void) const;
     virtual bool     FreeResource(bool bForce = false);
 
     WXHFONT GetHFONT(void) const;
index 34c4c73d0d56be9485740ad69e35e0c86f7b99d7..4b645fe9da259bb96b46ecc8ee6a2a7655244e9c 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        include/wx/os2/gdiimage.h
+// Name:        wx/os2/gdiimage.h
 // Purpose:     wxGDIImage class: base class for wxBitmap, wxIcon, wxCursor
 //              under OS/2
 // Author:      David Webster (adapted from msw version by Vadim Zeitlin)
@@ -44,8 +44,8 @@ public:
     bool IsOk() const
     {
         if (m_hHandle == 0)
-            return FALSE;
-        return TRUE;
+            return false;
+        return true;
     }
 
     void SetSize( int nW
@@ -226,8 +226,8 @@ public:
         pData->m_uId = uId;
     }
     // forward some of base class virtuals to wxGDIImageRefData
-    bool             FreeResource(bool bForce = FALSE);
-    virtual WXHANDLE GetResourceHandle();
+    bool             FreeResource(bool bForce = false);
+    virtual WXHANDLE GetResourceHandle() const;
 
 protected:
     // create the data for the derived class here
index 17c6822ac099c3fcfc0e3a8ef4a2851b5851b5ad..233016dc124002e5c2b2f340cdee65d3692ca48f 100644 (file)
@@ -105,7 +105,7 @@ public:
     //
     bool     RealizeResource(void);
     bool     FreeResource(bool bForce = false);
-    WXHANDLE GetResourceHandle(void);
+    virtual WXHANDLE GetResourceHandle(void) const;
     bool     IsFree(void) const;
     void     Unshare(void);
 
index 8e4682fff7330427599bf702508d542b9d9443c1..1c9f7c84d551606694d78a241035c0321dee4c65 100644 (file)
@@ -212,7 +212,7 @@ bool wxBrush::RealizeResource()
     return false;
 } // end of wxBrush::RealizeResource
 
-WXHANDLE wxBrush::GetResourceHandle()
+WXHANDLE wxBrush::GetResourceHandle() const
 {
     if (!M_BRUSHDATA)
         return 0;
index a85ff9d642b04c1a7810600991f9c02f23a11eaa..0742d230705f289edec4b54bcb21e23df3557047 100644 (file)
@@ -51,7 +51,7 @@ class WXDLLEXPORT wxFontRefData: public wxGDIRefData
 public:
     wxFontRefData()
     {
-        Init(-1, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, FALSE,
+        Init(-1, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false,
              wxEmptyString, wxFONTENCODING_DEFAULT);
     }
 
@@ -948,7 +948,7 @@ bool wxFont::FreeResource( bool WXUNUSED(bForce) )
     return false;
 } // end of wxFont::FreeResource
 
-WXHANDLE wxFont::GetResourceHandle()
+WXHANDLE wxFont::GetResourceHandle() const
 {
     return GetHFONT();
 } // end of wxFont::GetResourceHandle
index a5b6a56e7a7e1001e2435b302cec45937d431ce8..0d21c81be07966255c235c9ee2e20b5dcf27fe97 100644 (file)
@@ -241,7 +241,7 @@ bool wxGDIImage::FreeResource( bool WXUNUSED(bForce) )
     return true;
 }
 
-WXHANDLE wxGDIImage::GetResourceHandle()
+WXHANDLE wxGDIImage::GetResourceHandle() const
 {
     return GetHandle();
 }
index 407924864227667184754b9eb33bacb3064d43e4..24d89e39b2a1397e725dee7130e09f71d7f27f1a 100644 (file)
@@ -304,7 +304,7 @@ bool wxPen::RealizeResource()
     return false;
 } // end of wxPen::RealizeResource
 
-WXHANDLE wxPen::GetResourceHandle()
+WXHANDLE wxPen::GetResourceHandle() const
 {
     if (!M_PENDATA)
         return 0;