[Libreoffice-commits] .: vcl/unx

Caolán McNamara caolan at kemper.freedesktop.org
Tue Nov 23 13:32:45 PST 2010


 vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e2adad68b105778410121426240e13e93c6bc025
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Nov 23 21:14:46 2010 +0000

    cppcheck: This function can be const

diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index 12566f3..171eedb 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -268,7 +268,7 @@ public:
 
     void SetSize( int n)
         { delete [] pData; m_idx = 0; m_size = n; pData = new NWPixmapCacheData[m_size]; }
-    int GetSize() { return m_size; }
+    int GetSize() const { return m_size; }
 
     BOOL Find( ControlType aType, ControlState aState, const Rectangle& r_pixmapRect, GdkPixmap** pPixmap );
     void Fill( ControlType aType, ControlState aState, const Rectangle& r_pixmapRect, GdkPixmap* pPixmap );


More information about the Libreoffice-commits mailing list