summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-01 08:33:09 +0200
committerNoel Grandin <noel@peralex.com>2015-04-01 10:37:02 +0200
commit3e672693e35e720177eac98094c42570fca9cfbb (patch)
treec9ef0c732ca293a4b26037a72cd6e612dfaa4ac5 /vcl
parentedc189dbfac35d9a587ec50d0f382bb66444eca8 (diff)
loplugin:staticfunction
Change-Id: I909cf7e77f9d7194575636248196fda311fffdb6
Diffstat (limited to 'vcl')
-rw-r--r--vcl/generic/fontmanager/fontcache.cxx6
-rw-r--r--vcl/generic/fontmanager/fontconfig.cxx13
-rw-r--r--vcl/generic/fontmanager/fontmanager.cxx6
-rw-r--r--vcl/generic/print/glyphset.hxx8
-rw-r--r--vcl/inc/brdwin.hxx20
-rw-r--r--vcl/inc/fontcache.hxx6
-rw-r--r--vcl/inc/fontmanager.hxx14
-rw-r--r--vcl/inc/fontsubset.hxx2
-rw-r--r--vcl/inc/generic/geninst.h2
-rw-r--r--vcl/inc/generic/printergfx.hxx4
-rw-r--r--vcl/inc/generic/printerjob.hxx4
-rw-r--r--vcl/inc/impimagetree.hxx2
-rw-r--r--vcl/inc/opengl/framebuffer.hxx2
-rw-r--r--vcl/inc/opengl/salbmp.hxx4
-rw-r--r--vcl/inc/openglgdiimpl.hxx2
-rw-r--r--vcl/inc/regionband.hxx2
-rw-r--r--vcl/inc/sallayout.hxx2
-rw-r--r--vcl/opengl/salbmp.cxx4
-rw-r--r--vcl/opengl/scale.cxx8
-rw-r--r--vcl/opengl/texture.cxx2
-rw-r--r--vcl/source/filter/ixpm/xpmread.hxx16
-rw-r--r--vcl/source/filter/jpeg/Exif.hxx2
-rw-r--r--vcl/source/filter/wmf/winmtf.hxx2
-rw-r--r--vcl/source/gdi/alpha.cxx2
-rw-r--r--vcl/source/gdi/bitmap.cxx20
-rw-r--r--vcl/source/gdi/bitmap3.cxx4
-rw-r--r--vcl/source/gdi/bitmap4.cxx12
-rw-r--r--vcl/source/gdi/bmpfast.cxx18
-rw-r--r--vcl/source/gdi/impvect.cxx2
-rw-r--r--vcl/source/gdi/impvect.hxx14
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx4
-rw-r--r--vcl/source/gdi/sallayout.cxx6
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx2
-rw-r--r--vcl/source/outdev/font.cxx2
-rw-r--r--vcl/source/outdev/textline.cxx2
-rw-r--r--vcl/source/window/brdwin.cxx2
-rw-r--r--vcl/source/window/layout.cxx4
-rw-r--r--vcl/source/window/menuwindow.hxx4
-rw-r--r--vcl/unx/generic/gdi/cairotextrender.cxx3
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx4
-rw-r--r--vcl/unx/gtk/window/gtksalmenu.cxx3
41 files changed, 117 insertions, 124 deletions
diff --git a/vcl/generic/fontmanager/fontcache.cxx b/vcl/generic/fontmanager/fontcache.cxx
index e978eb754a23..3dcba186f49f 100644
--- a/vcl/generic/fontmanager/fontcache.cxx
+++ b/vcl/generic/fontmanager/fontcache.cxx
@@ -475,7 +475,7 @@ void FontCache::read()
/*
* FontCache::copyPrintFont
*/
-void FontCache::copyPrintFont( const PrintFontManager::PrintFont* pFrom, PrintFontManager::PrintFont* pTo ) const
+void FontCache::copyPrintFont( const PrintFontManager::PrintFont* pFrom, PrintFontManager::PrintFont* pTo )
{
if( pFrom->m_eType != pTo->m_eType )
return;
@@ -519,7 +519,7 @@ void FontCache::copyPrintFont( const PrintFontManager::PrintFont* pFrom, PrintFo
/*
* FontCache::equalsPrintFont
*/
-bool FontCache::equalsPrintFont( const PrintFontManager::PrintFont* pLeft, PrintFontManager::PrintFont* pRight ) const
+bool FontCache::equalsPrintFont( const PrintFontManager::PrintFont* pLeft, PrintFontManager::PrintFont* pRight )
{
if( pLeft->m_eType != pRight->m_eType )
return false;
@@ -580,7 +580,7 @@ bool FontCache::equalsPrintFont( const PrintFontManager::PrintFont* pLeft, Print
/*
* FontCache::clonePrintFont
*/
-PrintFontManager::PrintFont* FontCache::clonePrintFont( const PrintFontManager::PrintFont* pOldFont ) const
+PrintFontManager::PrintFont* FontCache::clonePrintFont( const PrintFontManager::PrintFont* pOldFont )
{
PrintFontManager::PrintFont* pFont = NULL;
switch( pOldFont->m_eType )
diff --git a/vcl/generic/fontmanager/fontconfig.cxx b/vcl/generic/fontmanager/fontconfig.cxx
index f872164e9a63..0804791d1650 100644
--- a/vcl/generic/fontmanager/fontconfig.cxx
+++ b/vcl/generic/fontmanager/fontconfig.cxx
@@ -252,14 +252,9 @@ void FontCfgWrapper::release()
namespace
{
- class localizedsorter
- {
- public:
- localizedsorter() {};
- FcChar8* bestname(const std::vector<lang_and_element> &elements, const LanguageTag & rLangTag);
- };
+ static FcChar8* bestname(const std::vector<lang_and_element> &elements, const LanguageTag & rLangTag);
- FcChar8* localizedsorter::bestname(const std::vector<lang_and_element> &elements, const LanguageTag & rLangTag)
+ FcChar8* bestname(const std::vector<lang_and_element> &elements, const LanguageTag & rLangTag)
{
FcChar8* candidate = elements.begin()->second;
/* FIXME-BCP47: once fontconfig supports language tags this
@@ -359,7 +354,7 @@ FcResult FontCfgWrapper::LocalizedElementFromPattern(FcPattern* pPattern, FcChar
osl_getProcessLocale(&pLoc);
m_pLanguageTag = new LanguageTag(*pLoc);
}
- *element = localizedsorter().bestname(lang_and_elements, *m_pLanguageTag);
+ *element = bestname(lang_and_elements, *m_pLanguageTag);
//if this element is a fontname, map the other names to this best-name
if (rtl_str_compare(elementtype, FC_FAMILY) == 0)
@@ -1171,7 +1166,7 @@ public:
};
ImplFontOptions* PrintFontManager::getFontOptions(
- const FastPrintFontInfo& rInfo, int nSize, void (*subcallback)(void*)) const
+ const FastPrintFontInfo& rInfo, int nSize, void (*subcallback)(void*))
{
FontCfgWrapper& rWrapper = FontCfgWrapper::get();
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx
index f2b67d1aca84..37cc0e719c62 100644
--- a/vcl/generic/fontmanager/fontmanager.cxx
+++ b/vcl/generic/fontmanager/fontmanager.cxx
@@ -977,7 +977,7 @@ std::vector<fontID> PrintFontManager::findFontFileIDs( int nDirID, const OString
return aIds;
}
-OUString PrintFontManager::convertTrueTypeName( void* pRecord ) const
+OUString PrintFontManager::convertTrueTypeName( void* pRecord )
{
NameRecord* pNameRecord = static_cast<NameRecord*>(pRecord);
OUString aValue;
@@ -1120,7 +1120,7 @@ namespace
}
}
-void PrintFontManager::analyzeTrueTypeFamilyName( void* pTTFont, ::std::list< OUString >& rNames ) const
+void PrintFontManager::analyzeTrueTypeFamilyName( void* pTTFont, ::std::list< OUString >& rNames )
{
OUString aFamily;
@@ -1618,7 +1618,7 @@ int PrintFontManager::getFontFaceNumber( fontID nFontID ) const
return nRet;
}
-FontFamily PrintFontManager::matchFamilyName( const OUString& rFamily ) const
+FontFamily PrintFontManager::matchFamilyName( const OUString& rFamily )
{
typedef struct {
const char* mpName;
diff --git a/vcl/generic/print/glyphset.hxx b/vcl/generic/print/glyphset.hxx
index 41cff1650311..1d8a4612fb4f 100644
--- a/vcl/generic/print/glyphset.hxx
+++ b/vcl/generic/print/glyphset.hxx
@@ -78,10 +78,10 @@ private:
bool AddGlyphID (sal_GlyphId nGlyphId, sal_Unicode nUnicode,
unsigned char* nOutGlyphID,
sal_Int32* nOutGlyphSetID);
- void AddNotdef (char_map_t &rCharMap);
- void AddNotdef (glyph_map_t &rGlyphMap);
- unsigned char GetAnsiMapping (sal_Unicode nUnicodeChar);
- unsigned char GetSymbolMapping (sal_Unicode nUnicodeChar);
+ static void AddNotdef (char_map_t &rCharMap);
+ static void AddNotdef (glyph_map_t &rGlyphMap);
+ static unsigned char GetAnsiMapping (sal_Unicode nUnicodeChar);
+ static unsigned char GetSymbolMapping (sal_Unicode nUnicodeChar);
void ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
const sal_Unicode* pStr, sal_Int16 nLen);
diff --git a/vcl/inc/brdwin.hxx b/vcl/inc/brdwin.hxx
index e859e35065b6..d47f07103e00 100644
--- a/vcl/inc/brdwin.hxx
+++ b/vcl/inc/brdwin.hxx
@@ -217,9 +217,9 @@ class ImplBorderWindowView
public:
virtual ~ImplBorderWindowView();
- virtual bool MouseMove( const MouseEvent& rMEvt );
- virtual bool MouseButtonDown( const MouseEvent& rMEvt );
- virtual bool Tracking( const TrackingEvent& rTEvt );
+ virtual bool MouseMove( const MouseEvent& rMEvt );
+ virtual bool MouseButtonDown( const MouseEvent& rMEvt );
+ virtual bool Tracking( const TrackingEvent& rTEvt );
virtual OUString RequestHelp( const Point& rPos, Rectangle& rHelpRect );
virtual void Init( OutputDevice* pDev, long nWidth, long nHeight ) = 0;
@@ -229,13 +229,13 @@ public:
virtual void DrawWindow( sal_uInt16 nDrawFlags, OutputDevice* pOutDev = NULL, const Point* pOffset = NULL ) = 0;
virtual Rectangle GetMenuRect() const;
- void ImplInitTitle( ImplBorderFrameData* pData );
- sal_uInt16 ImplHitTest( ImplBorderFrameData* pData, const Point& rPos );
- bool ImplMouseMove( ImplBorderFrameData* pData, const MouseEvent& rMEvt );
- bool ImplMouseButtonDown( ImplBorderFrameData* pData, const MouseEvent& rMEvt );
- bool ImplTracking( ImplBorderFrameData* pData, const TrackingEvent& rTEvt );
- OUString ImplRequestHelp( ImplBorderFrameData* pData, const Point& rPos, Rectangle& rHelpRect );
- long ImplCalcTitleWidth( const ImplBorderFrameData* pData ) const;
+ static void ImplInitTitle( ImplBorderFrameData* pData );
+ static sal_uInt16 ImplHitTest( ImplBorderFrameData* pData, const Point& rPos );
+ static bool ImplMouseMove( ImplBorderFrameData* pData, const MouseEvent& rMEvt );
+ bool ImplMouseButtonDown( ImplBorderFrameData* pData, const MouseEvent& rMEvt );
+ bool ImplTracking( ImplBorderFrameData* pData, const TrackingEvent& rTEvt );
+ static OUString ImplRequestHelp( ImplBorderFrameData* pData, const Point& rPos, Rectangle& rHelpRect );
+ static long ImplCalcTitleWidth( const ImplBorderFrameData* pData );
};
class ImplNoBorderWindowView : public ImplBorderWindowView
diff --git a/vcl/inc/fontcache.hxx b/vcl/inc/fontcache.hxx
index 98d9029b6be9..416319c28db0 100644
--- a/vcl/inc/fontcache.hxx
+++ b/vcl/inc/fontcache.hxx
@@ -61,9 +61,9 @@ class VCL_PLUGIN_PUBLIC FontCache
void read();
void clearCache();
- void copyPrintFont( const PrintFontManager::PrintFont* pFrom, PrintFontManager::PrintFont* pTo ) const;
- bool equalsPrintFont( const PrintFontManager::PrintFont* pLeft, PrintFontManager::PrintFont* pRight ) const;
- PrintFontManager::PrintFont* clonePrintFont( const PrintFontManager::PrintFont* pFont ) const;
+ static void copyPrintFont( const PrintFontManager::PrintFont* pFrom, PrintFontManager::PrintFont* pTo );
+ static bool equalsPrintFont( const PrintFontManager::PrintFont* pLeft, PrintFontManager::PrintFont* pRight );
+ static PrintFontManager::PrintFont* clonePrintFont( const PrintFontManager::PrintFont* pFont );
void createCacheDir( int nDirID );
public:
diff --git a/vcl/inc/fontmanager.hxx b/vcl/inc/fontmanager.hxx
index 2cf6e6ad713a..a5e18d67ba41 100644
--- a/vcl/inc/fontmanager.hxx
+++ b/vcl/inc/fontmanager.hxx
@@ -272,8 +272,8 @@ class VCL_PLUGIN_PUBLIC PrintFontManager
OString getFontFile( PrintFont* pFont ) const;
bool analyzeFontFile( int nDirID, const OString& rFileName, std::list< PrintFont* >& rNewFonts, const char *pFormat=NULL ) const;
- OUString convertTrueTypeName( void* pNameRecord ) const; // actually a NameRecord* formt font subsetting code
- void analyzeTrueTypeFamilyName( void* pTTFont, std::list< OUString >& rnames ) const; // actually a TrueTypeFont* from font subsetting code
+ static OUString convertTrueTypeName( void* pNameRecord ); // actually a NameRecord* formt font subsetting code
+ static void analyzeTrueTypeFamilyName( void* pTTFont, std::list< OUString >& rnames ); // actually a TrueTypeFont* from font subsetting code
bool analyzeTrueTypeFile( PrintFont* pFont ) const;
// finds the font id for the nFaceIndex face in this font file
// There may be multiple font ids for TrueType collections
@@ -287,7 +287,7 @@ class VCL_PLUGIN_PUBLIC PrintFontManager
return findFontFileID(nDirID, rFile, 0) != 0;
}
- FontFamily matchFamilyName( const OUString& rFamily ) const;
+ static FontFamily matchFamilyName( const OUString& rFamily );
PrintFont* getFont( fontID nID ) const
{
@@ -305,11 +305,11 @@ class VCL_PLUGIN_PUBLIC PrintFontManager
called from <code>initialize()</code>
*/
- void initFontconfig();
+ static void initFontconfig();
void countFontconfigFonts( std::unordered_map<OString, int, OStringHash>& o_rVisitedPaths );
/* deinitialize fontconfig
*/
- void deinitFontconfig();
+ static void deinitFontconfig();
/* register an application specific font directory for libfontconfig
@@ -321,7 +321,7 @@ class VCL_PLUGIN_PUBLIC PrintFontManager
true if libfontconfig accepted the directory
false else (e.g. no libfontconfig found)
*/
- bool addFontconfigDir(const OString& rDirectory);
+ static bool addFontconfigDir(const OString& rDirectory);
std::set<OString> m_aPreviousLangSupportRequests;
std::vector<OString> m_aCurrentRequests;
@@ -528,7 +528,7 @@ public:
false else
*/
bool matchFont( FastPrintFontInfo& rInfo, const com::sun::star::lang::Locale& rLocale );
- ImplFontOptions* getFontOptions( const FastPrintFontInfo&, int nSize, void (*subcallback)(void*)) const;
+ static ImplFontOptions* getFontOptions( const FastPrintFontInfo&, int nSize, void (*subcallback)(void*));
bool Substitute( FontSelectPattern &rPattern, OUString& rMissingCodes );
diff --git a/vcl/inc/fontsubset.hxx b/vcl/inc/fontsubset.hxx
index cc5b1472cc0a..c571658f01e4 100644
--- a/vcl/inc/fontsubset.hxx
+++ b/vcl/inc/fontsubset.hxx
@@ -85,7 +85,7 @@ private:
protected:
bool CreateFontSubsetFromCff( sal_Int32* pOutGlyphWidths = NULL );
bool CreateFontSubsetFromSfnt( sal_Int32* pOutGlyphWidths = NULL );
- bool CreateFontSubsetFromType1( sal_Int32* pOutGlyphWidths = NULL );
+ static bool CreateFontSubsetFromType1( sal_Int32* pOutGlyphWidths = NULL );
};
#endif // INCLUDED_VCL_INC_FONTSUBSET_HXX
diff --git a/vcl/inc/generic/geninst.h b/vcl/inc/generic/geninst.h
index 165b3d9bae9d..7e3a75dd641a 100644
--- a/vcl/inc/generic/geninst.h
+++ b/vcl/inc/generic/geninst.h
@@ -110,7 +110,7 @@ public:
static int FetchFontSubstitutionFlags();
protected:
- void configurePspInfoPrinter( PspSalInfoPrinter* pInfoPrinter,
+ static void configurePspInfoPrinter( PspSalInfoPrinter* pInfoPrinter,
SalPrinterQueueInfo* pQueueInfo,
ImplJobSetup* pSetupData );
};
diff --git a/vcl/inc/generic/printergfx.hxx b/vcl/inc/generic/printergfx.hxx
index 93de736cbccb..348b44c9a4ed 100644
--- a/vcl/inc/generic/printergfx.hxx
+++ b/vcl/inc/generic/printergfx.hxx
@@ -194,10 +194,10 @@ private:
osl::File* mpPageHeader;
osl::File* mpPageBody;
- void TranslateCoordinates (sal_Int32 &rXOut, sal_Int32 &rYOut,
+ static void TranslateCoordinates (sal_Int32 &rXOut, sal_Int32 &rYOut,
sal_Int32 nXIn, sal_Int32 nYIn )
{ rXOut = nXIn; rYOut = nYIn; }
- void TranslateCoordinates (Point& rOut, const Point& rIn)
+ static void TranslateCoordinates (Point& rOut, const Point& rIn)
{ rOut = rIn; }
/* text/font related data, for a type1 font it has to be checked
diff --git a/vcl/inc/generic/printerjob.hxx b/vcl/inc/generic/printerjob.hxx
index 218a4b551f07..686c890a2d34 100644
--- a/vcl/inc/generic/printerjob.hxx
+++ b/vcl/inc/generic/printerjob.hxx
@@ -79,8 +79,8 @@ private: // private methods
bool writeFeatureList( osl::File* pFile, const JobData&, bool bDocumentSetup );
bool writeSetup( osl::File* pFile, const JobData& );
bool writePageSetup( osl::File* pFile, const JobData&, bool bWriteFeatures = true );
- void writeJobPatch( osl::File* File, const JobData& );
- bool writeProlog (osl::File* pFile, const JobData& );
+ static void writeJobPatch( osl::File* File, const JobData& );
+ static bool writeProlog (osl::File* pFile, const JobData& );
public: // for usage in PrinterGfx
diff --git a/vcl/inc/impimagetree.hxx b/vcl/inc/impimagetree.hxx
index 807c69c0b63c..31f6cf3190f9 100644
--- a/vcl/inc/impimagetree.hxx
+++ b/vcl/inc/impimagetree.hxx
@@ -107,7 +107,7 @@ private:
Must not be cyclic :-) The last theme in the chain returns an empty string.
*/
- OUString fallbackStyle(const OUString &style);
+ static OUString fallbackStyle(const OUString &style);
};
typedef salhelper::SingletonRef< ImplImageTree > ImplImageTreeSingletonRef;
diff --git a/vcl/inc/opengl/framebuffer.hxx b/vcl/inc/opengl/framebuffer.hxx
index 915008c03464..4e8f9cc152da 100644
--- a/vcl/inc/opengl/framebuffer.hxx
+++ b/vcl/inc/opengl/framebuffer.hxx
@@ -32,7 +32,7 @@ public:
int GetHeight() const { return mnHeight; };
void Bind();
- void Unbind();
+ static void Unbind();
bool IsFree() const;
bool IsAttached( const OpenGLTexture& rTexture ) const;
diff --git a/vcl/inc/opengl/salbmp.hxx b/vcl/inc/opengl/salbmp.hxx
index e7b3052a27b9..7536144e44ae 100644
--- a/vcl/inc/opengl/salbmp.hxx
+++ b/vcl/inc/opengl/salbmp.hxx
@@ -88,7 +88,7 @@ public:
bool Create( const OpenGLTexture& rTex, long nX, long nY, long nWidth, long nHeight );
OpenGLTexture& GetTexture() const;
- OpenGLContext* GetBitmapContext() const;
+ static OpenGLContext* GetBitmapContext();
private:
@@ -102,7 +102,7 @@ private:
private:
bool ImplScaleFilter( const double& rScaleX, const double& rScaleY, GLenum nFilter );
- void ImplCreateKernel( const double& fScale, const Kernel& rKernel, GLfloat*& pWeights, sal_uInt32& aKernelSize );
+ static void ImplCreateKernel( const double& fScale, const Kernel& rKernel, GLfloat*& pWeights, sal_uInt32& aKernelSize );
bool ImplScaleConvolution( const double& rScaleX, const double& rScaleY, const Kernel& aKernel );
bool ImplScaleArea( double rScaleX, double rScaleY );
diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx
index 36aa5a349143..c5a7abcfdb2c 100644
--- a/vcl/inc/openglgdiimpl.hxx
+++ b/vcl/inc/openglgdiimpl.hxx
@@ -128,7 +128,7 @@ protected:
bool ReleaseContext();
// retrieve the default context for offscreen rendering
- OpenGLContext* GetDefaultContext();
+ static OpenGLContext* GetDefaultContext();
// create a new context for window rendering
virtual OpenGLContext* CreateWinContext() = 0;
diff --git a/vcl/inc/regionband.hxx b/vcl/inc/regionband.hxx
index 277e2c7064b6..14606f25a7f7 100644
--- a/vcl/inc/regionband.hxx
+++ b/vcl/inc/regionband.hxx
@@ -62,7 +62,7 @@ public:
void Move(long nHorzMove, long nVertMove);
void Scale(double fScaleX, double fScaleY);
void InsertBands(long nTop, long nBottom);
- bool InsertSingleBand(ImplRegionBand* pBand, long nYBandPosition);
+ static bool InsertSingleBand(ImplRegionBand* pBand, long nYBandPosition);
void Union(long nLeft, long nTop, long nRight, long nBottom);
void Intersect(long nLeft, long nTop, long nRight, long nBottom);
void Union(const RegionBand& rSource);
diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx
index 7ad886640d5c..990e9d8e84ce 100644
--- a/vcl/inc/sallayout.hxx
+++ b/vcl/inc/sallayout.hxx
@@ -190,7 +190,7 @@ public:
virtual bool GetOutline( SalGraphics&, ::basegfx::B2DPolyPolygonVector& ) const;
virtual bool GetBoundRect( SalGraphics&, Rectangle& ) const;
- bool IsSpacingGlyph( sal_GlyphId ) const;
+ static bool IsSpacingGlyph( sal_GlyphId );
// reference counting
void Release() const;
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx
index 3b60843cf379..982de8b3a9be 100644
--- a/vcl/opengl/salbmp.cxx
+++ b/vcl/opengl/salbmp.cxx
@@ -460,7 +460,7 @@ sal_uInt16 OpenGLSalBitmap::GetBitCount() const
return mnBits;
}
-OpenGLContext* OpenGLSalBitmap::GetBitmapContext() const
+OpenGLContext* OpenGLSalBitmap::GetBitmapContext()
{
return ImplGetDefaultWindow()->GetGraphics()->GetOpenGLContext();
}
@@ -608,7 +608,7 @@ bool OpenGLSalBitmap::Replace( const Color& rSearchColor, const Color& rReplaceC
pProgram->DrawTexture( maTexture );
pProgram->Clean();
- mpContext->ReleaseFramebuffer( pFramebuffer );
+ OpenGLContext::ReleaseFramebuffer( pFramebuffer );
maTexture = aNewTex;
CHECK_GL_ERROR();
diff --git a/vcl/opengl/scale.cxx b/vcl/opengl/scale.cxx
index a7a05a43986f..741d973514ba 100644
--- a/vcl/opengl/scale.cxx
+++ b/vcl/opengl/scale.cxx
@@ -69,7 +69,7 @@ bool OpenGLSalBitmap::ImplScaleFilter(
maTexture.SetFilter( nOldFilter );
pProgram->Clean();
- mpContext->ReleaseFramebuffer( pFramebuffer );
+ OpenGLContext::ReleaseFramebuffer( pFramebuffer );
mnWidth = nNewWidth;
mnHeight = nNewHeight;
@@ -156,7 +156,7 @@ bool OpenGLSalBitmap::ImplScaleConvolution(
pProgram->Clean();
maTexture = aScratchTex;
- mpContext->ReleaseFramebuffer( pFramebuffer );
+ OpenGLContext::ReleaseFramebuffer( pFramebuffer );
}
// vertical scaling in final texture
@@ -178,7 +178,7 @@ bool OpenGLSalBitmap::ImplScaleConvolution(
pProgram->Clean();
maTexture = aScratchTex;
- mpContext->ReleaseFramebuffer( pFramebuffer );
+ OpenGLContext::ReleaseFramebuffer( pFramebuffer );
}
mnWidth = nNewWidth;
@@ -252,7 +252,7 @@ bool OpenGLSalBitmap::ImplScaleArea( double rScaleX, double rScaleY )
pProgram->Clean();
maTexture = aScratchTex;
- mpContext->ReleaseFramebuffer( pFramebuffer );
+ OpenGLContext::ReleaseFramebuffer( pFramebuffer );
mnWidth = nNewWidth;
mnHeight = nNewHeight;
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx
index d727d8b1df10..732830b9a717 100644
--- a/vcl/opengl/texture.cxx
+++ b/vcl/opengl/texture.cxx
@@ -318,7 +318,7 @@ void OpenGLTexture::Read( GLenum nFormat, GLenum nType, sal_uInt8* pData )
pFramebuffer = pContext->AcquireFramebuffer( *this );
glReadPixels( maRect.Left(), mpImpl->mnHeight - maRect.Top(), GetWidth(), GetHeight(), nFormat, nType, pData );
- pContext->ReleaseFramebuffer( pFramebuffer );
+ OpenGLContext::ReleaseFramebuffer( pFramebuffer );
CHECK_GL_ERROR();
}
diff --git a/vcl/source/filter/ixpm/xpmread.hxx b/vcl/source/filter/ixpm/xpmread.hxx
index c8f7636bca7f..88e4c608cd7b 100644
--- a/vcl/source/filter/ixpm/xpmread.hxx
+++ b/vcl/source/filter/ixpm/xpmread.hxx
@@ -84,14 +84,14 @@ private:
sal_uLong mnParaSize;
sal_uInt8* mpPara;
- bool ImplGetString( void );
- bool ImplGetColor( sal_uLong );
- bool ImplGetScanLine( sal_uLong );
- bool ImplGetColSub( sal_uInt8* );
- bool ImplGetColKey( sal_uInt8 );
- void ImplGetRGBHex( sal_uInt8*, sal_uLong );
- bool ImplGetPara( sal_uLong numb );
- bool ImplCompare( sal_uInt8 const *, sal_uInt8 const *, sal_uLong, sal_uLong nmode = XPMCASENONSENSITIVE );
+ bool ImplGetString( void );
+ bool ImplGetColor( sal_uLong );
+ bool ImplGetScanLine( sal_uLong );
+ bool ImplGetColSub( sal_uInt8* );
+ bool ImplGetColKey( sal_uInt8 );
+ void ImplGetRGBHex( sal_uInt8*, sal_uLong );
+ bool ImplGetPara( sal_uLong numb );
+ static bool ImplCompare( sal_uInt8 const *, sal_uInt8 const *, sal_uLong, sal_uLong nmode = XPMCASENONSENSITIVE );
sal_uLong ImplGetULONG( sal_uLong nPara );
public:
diff --git a/vcl/source/filter/jpeg/Exif.hxx b/vcl/source/filter/jpeg/Exif.hxx
index 5d8bbaa768fe..459a36b9b6ec 100644
--- a/vcl/source/filter/jpeg/Exif.hxx
+++ b/vcl/source/filter/jpeg/Exif.hxx
@@ -69,7 +69,7 @@ private:
sal_uInt32 offset;
};
- Orientation convertToOrientation(sal_Int32 value);
+ static Orientation convertToOrientation(sal_Int32 value);
public :
Exif();
diff --git a/vcl/source/filter/wmf/winmtf.hxx b/vcl/source/filter/wmf/winmtf.hxx
index af06cd7bb2dd..cc930c4ddad7 100644
--- a/vcl/source/filter/wmf/winmtf.hxx
+++ b/vcl/source/filter/wmf/winmtf.hxx
@@ -757,7 +757,7 @@ class EnhWMFReader : public WinMtf
bool ReadHeader();
// reads and converts the rectangle
- Rectangle ReadRectangle( sal_Int32, sal_Int32, sal_Int32, sal_Int32 );
+ static Rectangle ReadRectangle( sal_Int32, sal_Int32, sal_Int32, sal_Int32 );
public:
EnhWMFReader(SvStream& rStreamWMF, GDIMetaFile& rGDIMetaFile, FilterConfigItem* pConfigItem = NULL);
diff --git a/vcl/source/gdi/alpha.cxx b/vcl/source/gdi/alpha.cxx
index 1a26072df8b8..ad1b5cc744e1 100644
--- a/vcl/source/gdi/alpha.cxx
+++ b/vcl/source/gdi/alpha.cxx
@@ -100,7 +100,7 @@ bool AlphaMask::Replace( const Bitmap& rMask, sal_uInt8 cReplaceTransparency )
pAcc->SetPixel( nY, nX, aReplace );
}
- ( (Bitmap&) rMask ).ReleaseAccess( pMaskAcc );
+ Bitmap::ReleaseAccess( pMaskAcc );
ReleaseAccess( pAcc );
return bRet;
diff --git a/vcl/source/gdi/bitmap.cxx b/vcl/source/gdi/bitmap.cxx
index 71ae7a3ddba8..3df5896513ed 100644
--- a/vcl/source/gdi/bitmap.cxx
+++ b/vcl/source/gdi/bitmap.cxx
@@ -702,7 +702,7 @@ bool Bitmap::Rotate( long nAngle10, const Color& rFillColor )
pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nOtherY--, nOtherX ) );
}
- aNewBmp.ReleaseAccess( pWriteAcc );
+ Bitmap::ReleaseAccess( pWriteAcc );
}
aRotatedBmp = aNewBmp;
@@ -772,7 +772,7 @@ bool Bitmap::Rotate( long nAngle10, const Color& rFillColor )
}
}
- aNewBmp.ReleaseAccess( pWriteAcc );
+ Bitmap::ReleaseAccess( pWriteAcc );
}
aRotatedBmp = aNewBmp;
@@ -818,7 +818,7 @@ bool Bitmap::Crop( const Rectangle& rRectPixel )
for( long nX = 0, nX2 = nOldX; nX < nNewWidth; nX++, nX2++ )
pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY2, nX2 ) );
- aNewBmp.ReleaseAccess( pWriteAcc );
+ Bitmap::ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -899,7 +899,7 @@ bool Bitmap::CopyPixel( const Rectangle& rRectDst,
}
if( pSrcAcc )
- pSrc->ReleaseAccess( pSrcAcc );
+ Bitmap::ReleaseAccess( pSrcAcc );
if( pDstAcc )
ReleaseAccess( pDstAcc );
@@ -953,7 +953,7 @@ bool Bitmap::CopyPixel( const Rectangle& rRectDst,
bRet = ( nWidth > 0L ) && ( nHeight > 0L );
}
- pSrc->ReleaseAccess( pReadAcc );
+ Bitmap::ReleaseAccess( pReadAcc );
}
}
}
@@ -1060,7 +1060,7 @@ bool Bitmap::CopyPixel_AlphaOptimized( const Rectangle& rRectDst, const Rectangl
bRet = ( nWidth > 0L ) && ( nHeight > 0L );
}
- pSrc->ReleaseAccess( pReadAcc );
+ Bitmap::ReleaseAccess( pReadAcc );
}
}
}
@@ -1168,7 +1168,7 @@ bool Bitmap::Expand( sal_uLong nDX, sal_uLong nDY, const Color* pInitColor )
for( nX = 0; nX < nNewWidth; nX++ )
pWriteAcc->SetPixel( nY, nX, aColor );
- aNewBmp.ReleaseAccess( pWriteAcc );
+ Bitmap::ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -1543,7 +1543,7 @@ bool Bitmap::Replace( const Bitmap& rMask, const Color& rReplaceColor )
bRet = true;
}
- ( (Bitmap&) rMask ).ReleaseAccess( pMaskAcc );
+ Bitmap::ReleaseAccess( pMaskAcc );
ReleaseAccess( pAcc );
return bRet;
@@ -1577,7 +1577,7 @@ bool Bitmap::Replace( const AlphaMask& rAlpha, const Color& rMergeColor )
ReleaseAccess( pAcc );
( (AlphaMask&) rAlpha ).ReleaseAccess( pAlphaAcc );
- aNewBmp.ReleaseAccess( pNewAcc );
+ Bitmap::ReleaseAccess( pNewAcc );
if( bRet )
{
@@ -1921,7 +1921,7 @@ bool Bitmap::CombineSimple( const Bitmap& rMask, BmpCombine eCombine )
bRet = true;
}
- ( (Bitmap&) rMask ).ReleaseAccess( pMaskAcc );
+ Bitmap::ReleaseAccess( pMaskAcc );
ReleaseAccess( pAcc );
return bRet;
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index 5bf275d98832..60ed14d9f3ae 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -2447,12 +2447,12 @@ void Bitmap::ImplMedianCut( sal_uLong* pColBuf, BitmapPalette& rPal,
bool Bitmap::Vectorize( tools::PolyPolygon& rPolyPoly, sal_uLong nFlags, const Link* pProgress )
{
- return ImplVectorizer().ImplVectorize( *this, rPolyPoly, nFlags, pProgress );
+ return ImplVectorizer::ImplVectorize( *this, rPolyPoly, nFlags, pProgress );
}
bool Bitmap::Vectorize( GDIMetaFile& rMtf, sal_uInt8 cReduce, sal_uLong nFlags, const Link* pProgress )
{
- return ImplVectorizer().ImplVectorize( *this, rMtf, cReduce, nFlags, pProgress );
+ return ImplVectorizer::ImplVectorize( *this, rMtf, cReduce, nFlags, pProgress );
}
bool Bitmap::Adjust( short nLuminancePercent, short nContrastPercent,
diff --git a/vcl/source/gdi/bitmap4.cxx b/vcl/source/gdi/bitmap4.cxx
index e4b15f14793c..d5dc4705111a 100644
--- a/vcl/source/gdi/bitmap4.cxx
+++ b/vcl/source/gdi/bitmap4.cxx
@@ -234,7 +234,7 @@ bool Bitmap::ImplConvolute3( const long* pMatrix, long nDivisor,
delete[] pColm;
delete[] pRows;
- aNewBmp.ReleaseAccess( pWriteAcc );
+ Bitmap::ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -363,7 +363,7 @@ bool Bitmap::ImplMedianFilter( const BmpFilterParam* /*pFilterParam*/, const Lin
delete[] pColm;
delete[] pRows;
- aNewBmp.ReleaseAccess( pWriteAcc );
+ Bitmap::ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -489,7 +489,7 @@ bool Bitmap::ImplSobelGrey( const BmpFilterParam* /*pFilterParam*/, const Link*
delete[] pHMap;
delete[] pVMap;
- aNewBmp.ReleaseAccess( pWriteAcc );
+ Bitmap::ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -601,7 +601,7 @@ bool Bitmap::ImplEmbossGrey( const BmpFilterParam* pFilterParam, const Link* /*p
delete[] pHMap;
delete[] pVMap;
- aNewBmp.ReleaseAccess( pWriteAcc );
+ Bitmap::ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -735,7 +735,7 @@ bool Bitmap::ImplSepia( const BmpFilterParam* pFilterParam, const Link* /*pProgr
}
}
- aNewBmp.ReleaseAccess( pWriteAcc );
+ Bitmap::ReleaseAccess( pWriteAcc );
bRet = true;
}
@@ -899,7 +899,7 @@ bool Bitmap::ImplMosaic( const BmpFilterParam* pFilterParam, const Link* /*pProg
if( pNewBmp )
{
- pNewBmp->ReleaseAccess( pWriteAcc );
+ Bitmap::ReleaseAccess( pWriteAcc );
if( bRet )
{
diff --git a/vcl/source/gdi/bmpfast.cxx b/vcl/source/gdi/bmpfast.cxx
index ff51c23dedd9..eba1f92d2e31 100644
--- a/vcl/source/gdi/bmpfast.cxx
+++ b/vcl/source/gdi/bmpfast.cxx
@@ -63,8 +63,8 @@ public:
PIXBYTE GetRed() const { return mpPixel[0]; }
PIXBYTE GetGreen() const { return mpPixel[1]; }
PIXBYTE GetBlue() const { return mpPixel[2]; }
- PIXBYTE GetAlpha() const { return 0; }
- void SetAlpha( PIXBYTE ) const {}
+ static PIXBYTE GetAlpha() { return 0; }
+ static void SetAlpha( PIXBYTE ) {}
void SetColor( PIXBYTE r, PIXBYTE g, PIXBYTE b ) const
{
@@ -83,8 +83,8 @@ public:
PIXBYTE GetRed() const { return mpPixel[2]; }
PIXBYTE GetGreen() const { return mpPixel[1]; }
PIXBYTE GetBlue() const { return mpPixel[0]; }
- PIXBYTE GetAlpha() const { return 0; }
- void SetAlpha( PIXBYTE ) const {}
+ static PIXBYTE GetAlpha() { return 0; }
+ static void SetAlpha( PIXBYTE ) {}
void SetColor( PIXBYTE r, PIXBYTE g, PIXBYTE b ) const
{
@@ -184,8 +184,8 @@ public:
PIXBYTE GetRed() const { return (mpPixel[0] & 0xF8U); }
PIXBYTE GetGreen() const { return (mpPixel[0]<<5U) | ((mpPixel[1]>>3U)&28U); }
PIXBYTE GetBlue() const { return (mpPixel[1]<<3U); }
- PIXBYTE GetAlpha() const { return 0; }
- void SetAlpha( PIXBYTE ) const {}
+ static PIXBYTE GetAlpha() { return 0; }
+ static void SetAlpha( PIXBYTE ) {}
void SetColor( PIXBYTE r, PIXBYTE g, PIXBYTE b ) const
{
@@ -204,8 +204,8 @@ public:
PIXBYTE GetRed() const { return (mpPixel[1] & 0xF8U); }
PIXBYTE GetGreen() const { return (mpPixel[1]<<5U) | ((mpPixel[0]>>3U)&28U); }
PIXBYTE GetBlue() const { return (mpPixel[0]<<3U); }
- PIXBYTE GetAlpha() const { return 0; }
- void SetAlpha( PIXBYTE ) const {}
+ static PIXBYTE GetAlpha() { return 0; }
+ static void SetAlpha( PIXBYTE ) {}
void SetColor( PIXBYTE r, PIXBYTE g, PIXBYTE b ) const
{
@@ -221,7 +221,7 @@ public:
void operator++() { mpPixel += 1; }
PIXBYTE GetAlpha() const { return mpPixel[0]; }
void SetAlpha( PIXBYTE a ) const { mpPixel[0] = a; }
- void SetColor( PIXBYTE, PIXBYTE, PIXBYTE ) const {}
+ static void SetColor( PIXBYTE, PIXBYTE, PIXBYTE ) {}
};
// TODO: for some reason many Alpha maps are BMP_FORMAT_8BIT_PAL
diff --git a/vcl/source/gdi/impvect.cxx b/vcl/source/gdi/impvect.cxx
index 30cc1021fbf4..024d53f154a7 100644
--- a/vcl/source/gdi/impvect.cxx
+++ b/vcl/source/gdi/impvect.cxx
@@ -1059,7 +1059,7 @@ bool ImplVectorizer::ImplGetChain( ImplVectMap* pMap, const Point& rStartPt, Im
return true;
}
-bool ImplVectorizer::ImplIsUp( ImplVectMap* pMap, long nY, long nX ) const
+bool ImplVectorizer::ImplIsUp( ImplVectMap* pMap, long nY, long nX )
{
if( pMap->IsDone( nY - 1L, nX ) )
return true;
diff --git a/vcl/source/gdi/impvect.hxx b/vcl/source/gdi/impvect.hxx
index f36f3c169067..0051bef68bab 100644
--- a/vcl/source/gdi/impvect.hxx
+++ b/vcl/source/gdi/impvect.hxx
@@ -33,20 +33,20 @@ class ImplVectorizer
{
private:
- ImplVectMap* ImplExpand( BitmapReadAccess* pRAcc, const Color& rColor );
- void ImplCalculate( ImplVectMap* pMap, tools::PolyPolygon& rPolyPoly, sal_uInt8 cReduce, sal_uLong nFlags );
- bool ImplGetChain( ImplVectMap* pMap, const Point& rStartPt, ImplChain& rChain );
- bool ImplIsUp( ImplVectMap* pMap, long nY, long nX ) const;
- void ImplLimitPolyPoly( tools::PolyPolygon& rPolyPoly );
+ static ImplVectMap* ImplExpand( BitmapReadAccess* pRAcc, const Color& rColor );
+ static void ImplCalculate( ImplVectMap* pMap, tools::PolyPolygon& rPolyPoly, sal_uInt8 cReduce, sal_uLong nFlags );
+ static bool ImplGetChain( ImplVectMap* pMap, const Point& rStartPt, ImplChain& rChain );
+ static bool ImplIsUp( ImplVectMap* pMap, long nY, long nX );
+ static void ImplLimitPolyPoly( tools::PolyPolygon& rPolyPoly );
public:
ImplVectorizer();
~ImplVectorizer();
- bool ImplVectorize( const Bitmap& rColorBmp, GDIMetaFile& rMtf,
+ static bool ImplVectorize( const Bitmap& rColorBmp, GDIMetaFile& rMtf,
sal_uInt8 cReduce, sal_uLong nFlags, const Link* pProgress );
- bool ImplVectorize( const Bitmap& rMonoBmp, tools::PolyPolygon& rPolyPoly,
+ static bool ImplVectorize( const Bitmap& rMonoBmp, tools::PolyPolygon& rPolyPoly,
sal_uLong nFlags, const Link* pProgress );
};
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index a85e7515e513..eabf0c1b8c1d 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -9135,7 +9135,7 @@ void PDFWriterImpl::drawLayout( SalLayout& rLayout, const OUString& rText, bool
if( !rLayout.GetNextGlyphs( 1, &aGlyphId, aPos, nStart, &nAdvance ) )
break;
- if( !rLayout.IsSpacingGlyph( aGlyphId ) )
+ if( !SalLayout::IsSpacingGlyph( aGlyphId ) )
{
if( !nWidth )
aStartPt = aPos;
@@ -9235,7 +9235,7 @@ void PDFWriterImpl::drawLayout( SalLayout& rLayout, const OUString& rText, bool
if( !rLayout.GetNextGlyphs( 1, &aGlyphId, aPos, nStart, &nAdvance ) )
break;
- if( !rLayout.IsSpacingGlyph( aGlyphId ) )
+ if( !SalLayout::IsSpacingGlyph( aGlyphId ) )
{
Point aAdjOffset = aOffset;
aAdjOffset.X() += (nAdvance - nEmphWidth) / 2;
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index 82d87c322caf..15883f4e7e0e 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -807,7 +807,7 @@ bool SalLayout::GetBoundRect( SalGraphics& rSalGraphics, Rectangle& rRect ) cons
return bRet;
}
-bool SalLayout::IsSpacingGlyph( sal_GlyphId nGlyph ) const
+bool SalLayout::IsSpacingGlyph( sal_GlyphId nGlyph )
{
bool bRet = false;
if( nGlyph & GF_ISCHAR )
@@ -1674,7 +1674,7 @@ void MultiSalLayout::AdjustLayout( ImplLayoutArgs& rArgs )
mpLayouts[n]->AdjustLayout( aMultiArgs );
// disable glyph-injection for glyph-fallback SalLayout iteration
- mpLayouts[n]->DisableGlyphInjection( true );
+ SalLayout::DisableGlyphInjection( true );
// remove unused parts of component
if( n > 0 )
@@ -1933,7 +1933,7 @@ void MultiSalLayout::AdjustLayout( ImplLayoutArgs& rArgs )
// reenable glyph-injection
for( n = 0; n < mnLevel; ++n )
- mpLayouts[n]->DisableGlyphInjection( false );
+ SalLayout::DisableGlyphInjection( false );
}
void MultiSalLayout::InitFont() const
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 18457163e660..be14c2261359 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -1480,7 +1480,7 @@ bool OpenGLContext::BindFramebuffer( OpenGLFramebuffer* pFramebuffer )
if( pFramebuffer )
pFramebuffer->Bind();
else
- mpCurrentFramebuffer->Unbind();
+ OpenGLFramebuffer::Unbind();
mpCurrentFramebuffer = pFramebuffer;
}
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index c891483c208e..1bf2df824ff6 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -2000,7 +2000,7 @@ void OutputDevice::ImplDrawEmphasisMarks( SalLayout& rSalLayout )
if( !mpGraphics->GetGlyphBoundRect( aGlyphId, aRectangle ) )
continue;
- if( !rSalLayout.IsSpacingGlyph( aGlyphId ) )
+ if( !SalLayout::IsSpacingGlyph( aGlyphId ) )
{
Point aAdjPoint = aOffset;
aAdjPoint.X() += aRectangle.Left() + (aRectangle.GetWidth() - nEmphasisWidth) / 2;
diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx
index e7476b7785a7..8b680809dceb 100644
--- a/vcl/source/outdev/textline.cxx
+++ b/vcl/source/outdev/textline.cxx
@@ -763,7 +763,7 @@ void OutputDevice::ImplDrawTextLines( SalLayout& rSalLayout, FontStrikeout eStri
break;
// calculate the boundaries of each word
- if( !rSalLayout.IsSpacingGlyph( aGlyphId ) )
+ if( !SalLayout::IsSpacingGlyph( aGlyphId ) )
{
if( !nWidth )
{
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx
index 106d77d19221..882818fc0297 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -943,7 +943,7 @@ OUString ImplBorderWindowView::ImplRequestHelp( ImplBorderFrameData* pData,
return aHelpStr;
}
-long ImplBorderWindowView::ImplCalcTitleWidth( const ImplBorderFrameData* pData ) const
+long ImplBorderWindowView::ImplCalcTitleWidth( const ImplBorderFrameData* pData )
{
// title is not visible therefore no width
if ( !pData->mnTitleHeight )
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 9c74a1895f82..74a95937542d 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -905,7 +905,7 @@ VclGrid::array_type VclGrid::assembleGrid() const
return B;
}
-bool VclGrid::isNullGrid(const array_type &A) const
+bool VclGrid::isNullGrid(const array_type &A)
{
sal_Int32 nMaxX = A.shape()[0];
sal_Int32 nMaxY = A.shape()[1];
@@ -915,7 +915,7 @@ bool VclGrid::isNullGrid(const array_type &A) const
return false;
}
-void VclGrid::calcMaxs(const array_type &A, std::vector<Value> &rWidths, std::vector<Value> &rHeights) const
+void VclGrid::calcMaxs(const array_type &A, std::vector<Value> &rWidths, std::vector<Value> &rHeights)
{
sal_Int32 nMaxX = A.shape()[0];
sal_Int32 nMaxY = A.shape()[1];
diff --git a/vcl/source/window/menuwindow.hxx b/vcl/source/window/menuwindow.hxx
index 74e36c3fbc9a..391bc08e3625 100644
--- a/vcl/source/window/menuwindow.hxx
+++ b/vcl/source/window/menuwindow.hxx
@@ -54,10 +54,10 @@ public:
virtual ~MenuWindow() {}
/// Sets up some visual properties of the underlying window.
- void ImplInitMenuWindow(vcl::Window* pWin, bool bFont, bool bMenuBar);
+ static void ImplInitMenuWindow(vcl::Window* pWin, bool bFont, bool bMenuBar);
/// Show the appropriate help tooltip.
- bool ImplHandleHelpEvent(vcl::Window* pMenuWindow, Menu* pMenu, sal_uInt16 nHighlightedItem,
+ static bool ImplHandleHelpEvent(vcl::Window* pMenuWindow, Menu* pMenu, sal_uInt16 nHighlightedItem,
const HelpEvent& rHEvt, const Rectangle &rHighlightRect);
};
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx
index 05e60966f340..24c79db313c7 100644
--- a/vcl/unx/generic/gdi/cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/cairotextrender.cxx
@@ -477,8 +477,7 @@ ImplFontOptions* GetFCFontOptions( const ImplFontAttributes& rFontAttributes, in
aInfo.m_eWeight = rFontAttributes.GetWeight();
aInfo.m_eWidth = rFontAttributes.GetWidthType();
- const psp::PrintFontManager& rPFM = psp::PrintFontManager::get();
- return rPFM.getFontOptions(aInfo, nSize, cairosubcallback);
+ return psp::PrintFontManager::getFontOptions(aInfo, nSize, cairosubcallback);
}
void
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 3037fbff1e49..62f184505a94 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -1410,7 +1410,7 @@ OUString PPDParser::getDefaultInputSlot() const
void PPDParser::getResolutionFromString(
const OUString& rString,
- int& rXRes, int& rYRes ) const
+ int& rXRes, int& rYRes )
{
sal_Int32 nDPIPos;
@@ -1855,7 +1855,7 @@ int PPDContext::getRenderResolution() const
{
const PPDValue* pValue = getValue( pKey );
if( pValue )
- m_pParser->getResolutionFromString( pValue->m_aOption, nDPIx, nDPIy );
+ PPDParser::getResolutionFromString( pValue->m_aOption, nDPIx, nDPIy );
else
m_pParser->getDefaultResolution( nDPIx, nDPIy );
}
diff --git a/vcl/unx/gtk/window/gtksalmenu.cxx b/vcl/unx/gtk/window/gtksalmenu.cxx
index 3a92b6b45cd7..f2ea9f2d9d06 100644
--- a/vcl/unx/gtk/window/gtksalmenu.cxx
+++ b/vcl/unx/gtk/window/gtksalmenu.cxx
@@ -496,8 +496,7 @@ void GtkSalMenu::SetFrame( const SalFrame* pFrame )
{
SolarMutexGuard aGuard;
{
- vcl::MenuInvalidator aInvalidator;
- aInvalidator.GetMenuInvalidateListeners()->addListener(*getRefreshLinkInstance());
+ vcl::MenuInvalidator::GetMenuInvalidateListeners()->addListener(*getRefreshLinkInstance());
}
assert(mbMenuBar);