From 72f36adb93d24a3da8868dad128ab2eca0124fda Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Jul 2017 09:02:03 +0200 Subject: loplugin:constparams in vcl Change-Id: I36afe2107e07ffb9b73c0b76be600e3e999a0fd4 Reviewed-on: https://gerrit.libreoffice.org/40116 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/backendtest/VisualBackendTest.cxx | 8 ++++---- vcl/backendtest/outputdevice/pixel.cxx | 2 +- vcl/inc/BitmapProcessor.hxx | 2 +- vcl/inc/BitmapSymmetryCheck.hxx | 2 +- vcl/inc/accmgr.hxx | 2 +- vcl/inc/bmpfast.hxx | 2 +- vcl/inc/brdwin.hxx | 4 ++-- vcl/inc/displayconnectiondispatch.hxx | 2 +- vcl/inc/impfontcache.hxx | 6 +++--- vcl/inc/implimagetree.hxx | 2 +- vcl/inc/opengl/FixedTextureAtlas.hxx | 2 +- vcl/inc/opengl/PackedTextureAtlas.hxx | 2 +- vcl/inc/opengl/RenderList.hxx | 2 +- vcl/inc/opengl/program.hxx | 4 ++-- vcl/inc/opengl/texture.hxx | 4 ++-- vcl/inc/opengl/x11/gdiimpl.hxx | 2 +- vcl/inc/openglgdiimpl.hxx | 4 ++-- vcl/inc/salgdi.hxx | 2 +- vcl/inc/salinst.hxx | 2 +- vcl/inc/sallayout.hxx | 2 +- vcl/inc/sft.hxx | 2 +- vcl/inc/svmconverter.hxx | 4 ++-- vcl/inc/unx/gendisp.hxx | 2 +- vcl/inc/unx/geninst.h | 2 +- vcl/inc/unx/glyphcache.hxx | 4 ++-- vcl/inc/unx/gtk/gtkdata.hxx | 4 ++-- vcl/inc/unx/gtk/gtkframe.hxx | 8 ++++---- vcl/inc/unx/gtk/gtksalmenu.hxx | 4 ++-- vcl/inc/unx/i18n_ic.hxx | 4 ++-- vcl/inc/unx/printergfx.hxx | 2 +- vcl/inc/unx/salbmp.h | 4 ++-- vcl/inc/unx/salframe.h | 2 +- vcl/inc/unx/wmadaptor.hxx | 8 ++++---- vcl/opengl/FixedTextureAtlas.cxx | 2 +- vcl/opengl/PackedTextureAtlas.cxx | 2 +- vcl/opengl/RenderList.cxx | 2 +- vcl/opengl/gdiimpl.cxx | 4 ++-- vcl/opengl/program.cxx | 4 ++-- vcl/opengl/salbmp.cxx | 2 +- vcl/opengl/texture.cxx | 4 ++-- vcl/opengl/x11/gdiimpl.cxx | 2 +- vcl/source/app/help.cxx | 2 +- vcl/source/app/salvtables.cxx | 2 +- vcl/source/app/svapp.cxx | 8 ++++---- vcl/source/bitmap/BitmapProcessor.cxx | 2 +- vcl/source/bitmap/BitmapSymmetryCheck.cxx | 2 +- vcl/source/bitmap/bitmapscalesuper.cxx | 2 +- vcl/source/control/button.cxx | 6 +++--- vcl/source/control/edit.cxx | 8 ++++---- vcl/source/control/field.cxx | 4 ++-- vcl/source/control/field2.cxx | 4 ++-- vcl/source/control/longcurr.cxx | 2 +- vcl/source/control/prgsbar.cxx | 2 +- vcl/source/control/quickselectionengine.cxx | 2 +- vcl/source/control/spinfld.cxx | 2 +- vcl/source/edit/texteng.cxx | 2 +- vcl/source/edit/textview.cxx | 4 ++-- vcl/source/filter/FilterConfigItem.cxx | 2 +- vcl/source/filter/GraphicNativeMetadata.cxx | 2 +- vcl/source/filter/graphicfilter.cxx | 4 ++-- vcl/source/filter/ipdf/pdfdocument.cxx | 6 +++--- vcl/source/filter/sgvmain.cxx | 2 +- vcl/source/filter/sgvspln.cxx | 4 ++-- vcl/source/filter/sgvspln.hxx | 4 ++-- vcl/source/filter/sgvtext.cxx | 6 +++--- vcl/source/filter/wmf/wmf.cxx | 2 +- vcl/source/filter/wmf/wmfwr.cxx | 2 +- vcl/source/filter/wmf/wmfwr.hxx | 2 +- vcl/source/font/fontcache.cxx | 6 +++--- vcl/source/fontsubset/sft.cxx | 6 +++--- vcl/source/fontsubset/ttcr.cxx | 4 ++-- vcl/source/fontsubset/ttcr.hxx | 2 +- vcl/source/gdi/bitmap3.cxx | 6 +++--- vcl/source/gdi/bitmapex.cxx | 2 +- vcl/source/gdi/bmpacc.cxx | 2 +- vcl/source/gdi/bmpfast.cxx | 2 +- vcl/source/gdi/dibtools.cxx | 12 ++++++------ vcl/source/gdi/impvect.cxx | 4 ++-- vcl/source/gdi/pdfwriter_impl.cxx | 10 +++++----- vcl/source/gdi/pdfwriter_impl.hxx | 10 +++++----- vcl/source/gdi/pdfwriter_impl2.cxx | 4 ++-- vcl/source/gdi/pngwrite.cxx | 4 ++-- vcl/source/gdi/print2.cxx | 2 +- vcl/source/gdi/print3.cxx | 6 +++--- vcl/source/gdi/salgdilayout.cxx | 2 +- vcl/source/gdi/sallayout.cxx | 2 +- vcl/source/gdi/svmconverter.cxx | 4 ++-- vcl/source/helper/displayconnectiondispatch.cxx | 4 ++-- vcl/source/helper/lazydelete.cxx | 2 +- vcl/source/image/ImplImageTree.cxx | 4 ++-- vcl/source/outdev/bitmap.cxx | 16 ++++++++-------- vcl/source/outdev/textline.cxx | 2 +- vcl/source/uitest/logger.cxx | 6 +++--- vcl/source/uitest/uiobject.cxx | 6 +++--- vcl/source/window/accmgr.cxx | 2 +- vcl/source/window/brdwin.cxx | 4 ++-- vcl/source/window/builder.cxx | 2 +- vcl/source/window/dialog.cxx | 12 ++++++------ vcl/source/window/dlgctrl.cxx | 2 +- vcl/source/window/dockingarea.cxx | 2 +- vcl/source/window/dockmgr.cxx | 4 ++-- vcl/source/window/event.cxx | 2 +- vcl/source/window/layout.cxx | 4 ++-- vcl/source/window/menu.cxx | 10 +++++----- vcl/source/window/menubarwindow.cxx | 4 ++-- vcl/source/window/menubarwindow.hxx | 2 +- vcl/source/window/menuwindow.cxx | 2 +- vcl/source/window/menuwindow.hxx | 2 +- vcl/source/window/mnemonicengine.cxx | 2 +- vcl/source/window/paint.cxx | 6 +++--- vcl/source/window/syswin.cxx | 2 +- vcl/source/window/toolbox.cxx | 6 +++--- vcl/source/window/window.cxx | 8 ++++---- vcl/source/window/window2.cxx | 6 +++--- vcl/source/window/winproc.cxx | 16 ++++++++-------- vcl/unx/generic/app/gendisp.cxx | 2 +- vcl/unx/generic/app/i18n_cb.cxx | 2 +- vcl/unx/generic/app/i18n_ic.cxx | 4 ++-- vcl/unx/generic/app/wmadaptor.cxx | 8 ++++---- vcl/unx/generic/dtrans/X11_selection.cxx | 2 +- vcl/unx/generic/dtrans/X11_selection.hxx | 2 +- vcl/unx/generic/fontmanager/fontconfig.cxx | 4 ++-- vcl/unx/generic/gdi/salbmp.cxx | 6 +++--- vcl/unx/generic/gdi/xrender_peer.hxx | 4 ++-- vcl/unx/generic/glyphs/freetype_glyphcache.cxx | 2 +- vcl/unx/generic/glyphs/glyphcache.cxx | 2 +- vcl/unx/generic/print/genprnpsp.cxx | 6 +++--- vcl/unx/generic/print/genpspgraphics.cxx | 8 ++++---- vcl/unx/generic/printer/cupsmgr.cxx | 2 +- vcl/unx/generic/window/salframe.cxx | 6 +++--- vcl/unx/gtk/a11y/atkutil.cxx | 2 +- vcl/unx/gtk/a11y/atkwindow.cxx | 2 +- vcl/unx/gtk/gtkdata.cxx | 6 +++--- vcl/unx/gtk/gtksalmenu.cxx | 4 ++-- vcl/unx/gtk/salnativewidgets-gtk.cxx | 4 ++-- vcl/unx/gtk3/gtk3gtkdata.cxx | 6 +++--- vcl/unx/gtk3/gtk3gtkframe.cxx | 2 +- vcl/workben/vcldemo.cxx | 2 +- 138 files changed, 269 insertions(+), 269 deletions(-) (limited to 'vcl') diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx index 4114f67fdce8..a83d9be8417f 100644 --- a/vcl/backendtest/VisualBackendTest.cxx +++ b/vcl/backendtest/VisualBackendTest.cxx @@ -49,7 +49,7 @@ using namespace css; -void drawBitmapCentered(tools::Rectangle& rRect, Bitmap aBitmap, vcl::RenderContext& rRenderContext) +void drawBitmapCentered(tools::Rectangle const & rRect, Bitmap aBitmap, vcl::RenderContext& rRenderContext) { long nWidth = rRect.GetWidth(); long nHeight = rRect.GetHeight(); @@ -64,7 +64,7 @@ void drawBitmapCentered(tools::Rectangle& rRect, Bitmap aBitmap, vcl::RenderCont rRenderContext.DrawBitmap(aPoint, aBitmap); } -void drawBitmapScaledAndCentered(tools::Rectangle& rRect, Bitmap aBitmap, vcl::RenderContext& rRenderContext, BmpScaleFlag aFlag = BmpScaleFlag::Fast) +void drawBitmapScaledAndCentered(tools::Rectangle const & rRect, Bitmap aBitmap, vcl::RenderContext& rRenderContext, BmpScaleFlag aFlag = BmpScaleFlag::Fast) { long nWidth = rRect.GetWidth(); long nHeight = rRect.GetHeight(); @@ -78,7 +78,7 @@ void drawBitmapScaledAndCentered(tools::Rectangle& rRect, Bitmap aBitmap, vcl::R drawBitmapCentered(rRect, aBitmap, rRenderContext); } -void drawBackgroundRect(tools::Rectangle& rRect, Color aColor, vcl::RenderContext& rRenderContext) +void drawBackgroundRect(tools::Rectangle const & rRect, Color aColor, vcl::RenderContext& rRenderContext) { rRenderContext.Push(PushFlags::LINECOLOR | PushFlags::FILLCOLOR); rRenderContext.SetFillColor(aColor); @@ -87,7 +87,7 @@ void drawBackgroundRect(tools::Rectangle& rRect, Color aColor, vcl::RenderContex rRenderContext.Pop(); } -void assertAndSetBackground(vcl::test::TestResult eResult, tools::Rectangle& rRect, vcl::RenderContext& rRenderContext) +void assertAndSetBackground(vcl::test::TestResult eResult, tools::Rectangle const & rRect, vcl::RenderContext& rRenderContext) { if (eResult == vcl::test::TestResult::Passed) drawBackgroundRect(rRect, COL_GREEN, rRenderContext); diff --git a/vcl/backendtest/outputdevice/pixel.cxx b/vcl/backendtest/outputdevice/pixel.cxx index 2ad49e0f2fe8..64f6fdef1979 100644 --- a/vcl/backendtest/outputdevice/pixel.cxx +++ b/vcl/backendtest/outputdevice/pixel.cxx @@ -16,7 +16,7 @@ namespace test { namespace { -void drawPixelOffset(OutputDevice& rDevice, tools::Rectangle& rRect, int nOffset) +void drawPixelOffset(OutputDevice& rDevice, tools::Rectangle const & rRect, int nOffset) { for (long x = 0 + nOffset; x < (rRect.GetWidth() - nOffset); ++x) { diff --git a/vcl/inc/BitmapProcessor.hxx b/vcl/inc/BitmapProcessor.hxx index d76435c190fd..5f5bd8b69b6c 100644 --- a/vcl/inc/BitmapProcessor.hxx +++ b/vcl/inc/BitmapProcessor.hxx @@ -17,7 +17,7 @@ class VCL_DLLPUBLIC BitmapProcessor public: static BitmapEx createLightImage(const BitmapEx& rBitmapEx); static BitmapEx createDisabledImage(const BitmapEx& rBitmapEx); - static void colorizeImage(BitmapEx& rBitmapEx, Color aColor); + static void colorizeImage(BitmapEx const & rBitmapEx, Color aColor); }; #endif // VCL_INC_BITMAP_PROCESSOR_HXX diff --git a/vcl/inc/BitmapSymmetryCheck.hxx b/vcl/inc/BitmapSymmetryCheck.hxx index ac0425db8bac..faf058923fdf 100644 --- a/vcl/inc/BitmapSymmetryCheck.hxx +++ b/vcl/inc/BitmapSymmetryCheck.hxx @@ -23,7 +23,7 @@ public: static bool check(Bitmap& rBitmap); private: - static bool checkImpl(BitmapReadAccess* pReadAccess); + static bool checkImpl(BitmapReadAccess const * pReadAccess); }; #endif // INCLUDED_VCL_INC_BITMAPSYMMETRYCHECK_HXX diff --git a/vcl/inc/accmgr.hxx b/vcl/inc/accmgr.hxx index b2b469eb6826..5cf64501cd8e 100644 --- a/vcl/inc/accmgr.hxx +++ b/vcl/inc/accmgr.hxx @@ -43,7 +43,7 @@ public: ~ImplAccelManager(); bool InsertAccel( Accelerator* pAccel ); - void RemoveAccel( Accelerator* pAccel ); + void RemoveAccel( Accelerator const * pAccel ); void EndSequence(); void FlushAccel() { EndSequence(); } diff --git a/vcl/inc/bmpfast.hxx b/vcl/inc/bmpfast.hxx index 2a4f6cd45a71..6e5e22544c5d 100644 --- a/vcl/inc/bmpfast.hxx +++ b/vcl/inc/bmpfast.hxx @@ -32,7 +32,7 @@ struct SalTwoRect; bool ImplFastBitmapConversion( BitmapBuffer& rDst, const BitmapBuffer& rSrc, const SalTwoRect& rTwoRect ); -bool ImplFastBitmapBlending( BitmapWriteAccess& rDst, +bool ImplFastBitmapBlending( BitmapWriteAccess const & rDst, const BitmapReadAccess& rSrc, const BitmapReadAccess& rMask, const SalTwoRect& rTwoRect ); diff --git a/vcl/inc/brdwin.hxx b/vcl/inc/brdwin.hxx index 247432954d4f..9c88da7d0631 100644 --- a/vcl/inc/brdwin.hxx +++ b/vcl/inc/brdwin.hxx @@ -226,9 +226,9 @@ public: virtual tools::Rectangle GetMenuRect() const; static void ImplInitTitle( ImplBorderFrameData* pData ); - static BorderWindowHitTest ImplHitTest( ImplBorderFrameData* pData, const Point& rPos ); + static BorderWindowHitTest ImplHitTest( ImplBorderFrameData const * pData, const Point& rPos ); static bool ImplMouseMove( ImplBorderFrameData* pData, const MouseEvent& rMEvt ); - static OUString ImplRequestHelp( ImplBorderFrameData* pData, const Point& rPos, tools::Rectangle& rHelpRect ); + static OUString ImplRequestHelp( ImplBorderFrameData const * pData, const Point& rPos, tools::Rectangle& rHelpRect ); static long ImplCalcTitleWidth( const ImplBorderFrameData* pData ); }; diff --git a/vcl/inc/displayconnectiondispatch.hxx b/vcl/inc/displayconnectiondispatch.hxx index 3cc605f5f752..73beb2ab4829 100644 --- a/vcl/inc/displayconnectiondispatch.hxx +++ b/vcl/inc/displayconnectiondispatch.hxx @@ -46,7 +46,7 @@ public: void start(); void terminate(); - bool dispatchEvent( void* pData, int nBytes ); + bool dispatchEvent( void const * pData, int nBytes ); // XDisplayConnection virtual void SAL_CALL addEventHandler( const css::uno::Any& window, const css::uno::Reference< css::awt::XEventHandler >& handler, sal_Int32 eventMask ) override; diff --git a/vcl/inc/impfontcache.hxx b/vcl/inc/impfontcache.hxx index 8dc10ddecb02..eb00009028b1 100644 --- a/vcl/inc/impfontcache.hxx +++ b/vcl/inc/impfontcache.hxx @@ -49,10 +49,10 @@ public: ImplFontCache(); ~ImplFontCache(); - LogicalFontInstance* GetFontInstance( PhysicalFontCollection*, + LogicalFontInstance* GetFontInstance( PhysicalFontCollection const *, const vcl::Font&, const Size& rPixelSize, float fExactHeight); - LogicalFontInstance* GetFontInstance( PhysicalFontCollection*, FontSelectPattern& ); - LogicalFontInstance* GetGlyphFallbackFont( PhysicalFontCollection*, FontSelectPattern&, + LogicalFontInstance* GetFontInstance( PhysicalFontCollection const *, FontSelectPattern& ); + LogicalFontInstance* GetGlyphFallbackFont( PhysicalFontCollection const *, FontSelectPattern&, int nFallbackLevel, OUString& rMissingCodes ); /// Increase the refcount of the given LogicalFontInstance. diff --git a/vcl/inc/implimagetree.hxx b/vcl/inc/implimagetree.hxx index 796bb22d0d30..b37c0419a52f 100644 --- a/vcl/inc/implimagetree.hxx +++ b/vcl/inc/implimagetree.hxx @@ -117,7 +117,7 @@ private: bool doLoadImage(ImageRequestParameters& rParameters); - std::vector getPaths(OUString const & name, LanguageTag& rLanguageTag); + std::vector getPaths(OUString const & name, LanguageTag const & rLanguageTag); bool checkPathAccess(); diff --git a/vcl/inc/opengl/FixedTextureAtlas.hxx b/vcl/inc/opengl/FixedTextureAtlas.hxx index 203550acf00d..b415efa44e26 100644 --- a/vcl/inc/opengl/FixedTextureAtlas.hxx +++ b/vcl/inc/opengl/FixedTextureAtlas.hxx @@ -29,7 +29,7 @@ class VCL_PLUGIN_PUBLIC FixedTextureAtlasManager public: FixedTextureAtlasManager(int nWidthFactor, int nHeightFactor, int nTextureSize); ~FixedTextureAtlasManager(); - OpenGLTexture InsertBuffer(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData); + OpenGLTexture InsertBuffer(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8 const * pData); OpenGLTexture Reserve(int nWidth, int nHeight); int GetSubtextureSize() diff --git a/vcl/inc/opengl/PackedTextureAtlas.hxx b/vcl/inc/opengl/PackedTextureAtlas.hxx index 9640c8ff8243..d2932b7e2b37 100644 --- a/vcl/inc/opengl/PackedTextureAtlas.hxx +++ b/vcl/inc/opengl/PackedTextureAtlas.hxx @@ -43,7 +43,7 @@ public: */ PackedTextureAtlasManager(int nTextureWidth, int nTextureHeight); ~PackedTextureAtlasManager(); - OpenGLTexture InsertBuffer(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData); + OpenGLTexture InsertBuffer(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8 const * pData); OpenGLTexture Reserve(int nWidth, int nHeight); std::vector ReduceTextureNumber(int nMaxNumberOfTextures); }; diff --git a/vcl/inc/opengl/RenderList.hxx b/vcl/inc/opengl/RenderList.hxx index 6188203c77ea..e25f48a99301 100644 --- a/vcl/inc/opengl/RenderList.hxx +++ b/vcl/inc/opengl/RenderList.hxx @@ -150,7 +150,7 @@ public: return maRenderEntries; } - bool addDrawTextureWithMaskColor(OpenGLTexture& rTexture, SalColor nColor, const SalTwoRect& r2Rect); + bool addDrawTextureWithMaskColor(OpenGLTexture const & rTexture, SalColor nColor, const SalTwoRect& r2Rect); void addDrawPixel(long nX, long nY, SalColor nColor); diff --git a/vcl/inc/opengl/program.hxx b/vcl/inc/opengl/program.hxx index 4632ddf44444..cb6839d96536 100644 --- a/vcl/inc/opengl/program.hxx +++ b/vcl/inc/opengl/program.hxx @@ -83,8 +83,8 @@ public: void SetUniform1f( const OString& rName, GLfloat v1 ); void SetUniform2f( const OString& rName, GLfloat v1, GLfloat v2 ); - void SetUniform1fv( const OString& rName, GLsizei nCount, GLfloat* aValues ); - void SetUniform2fv( const OString& rName, GLsizei nCount, GLfloat* aValues ); + void SetUniform1fv( const OString& rName, GLsizei nCount, GLfloat const * aValues ); + void SetUniform2fv( const OString& rName, GLsizei nCount, GLfloat const * aValues ); void SetUniform1i( const OString& rName, GLint v1 ); void SetColor( const OString& rName, const Color& rColor ); void SetColor( const OString& rName, SalColor nColor, sal_uInt8 nTransparency ); diff --git a/vcl/inc/opengl/texture.hxx b/vcl/inc/opengl/texture.hxx index 554058af9603..35db94236556 100644 --- a/vcl/inc/opengl/texture.hxx +++ b/vcl/inc/opengl/texture.hxx @@ -47,7 +47,7 @@ public: ImplOpenGLTexture( int nX, int nY, int nWidth, int nHeight ); ~ImplOpenGLTexture(); - bool InsertBuffer(int nX, int nY, int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData); + bool InsertBuffer(int nX, int nY, int nWidth, int nHeight, int nFormat, int nType, sal_uInt8 const * pData); void IncreaseRefCount(int nSlotNumber); void DecreaseRefCount(int nSlotNumber); @@ -109,7 +109,7 @@ public: GLuint AddStencil(); GLuint StencilId() const; - bool CopyData(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData); + bool CopyData(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8 const * pData); void SaveToFile(const OUString& rFileName); diff --git a/vcl/inc/opengl/x11/gdiimpl.hxx b/vcl/inc/opengl/x11/gdiimpl.hxx index 9dacf6d20f0d..524a041cb792 100644 --- a/vcl/inc/opengl/x11/gdiimpl.hxx +++ b/vcl/inc/opengl/x11/gdiimpl.hxx @@ -31,7 +31,7 @@ public: protected: virtual rtl::Reference CreateWinContext() override; - bool RenderPixmap(X11Pixmap* pPixmap, X11Pixmap* pMask, int nX, int nY, TextureCombo& rCombo); + bool RenderPixmap(X11Pixmap const * pPixmap, X11Pixmap const * pMask, int nX, int nY, TextureCombo& rCombo); public: // implementation of X11GraphicsImpl diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx index 2eb39b084018..7bc6644fdc48 100644 --- a/vcl/inc/openglgdiimpl.hxx +++ b/vcl/inc/openglgdiimpl.hxx @@ -142,10 +142,10 @@ public: void DrawLinearGradient( const Gradient& rGradient, const tools::Rectangle& rRect ); void DrawAxialGradient( const Gradient& rGradient, const tools::Rectangle& rRect ); void DrawRadialGradient( const Gradient& rGradient, const tools::Rectangle& rRect ); - void DeferredTextDraw(OpenGLTexture& rTexture, const SalColor nMaskColor, const SalTwoRect& rPosAry); + void DeferredTextDraw(OpenGLTexture const & rTexture, const SalColor nMaskColor, const SalTwoRect& rPosAry); void FlushDeferredDrawing(); - bool FlushLinesOrTriangles(DrawShaderType eType, RenderParameters& rParameters); + bool FlushLinesOrTriangles(DrawShaderType eType, RenderParameters const & rParameters); public: // get the width of the device diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx index 60e78e15d101..f691fdaedbcc 100644 --- a/vcl/inc/salgdi.hxx +++ b/vcl/inc/salgdi.hxx @@ -202,7 +202,7 @@ public: void SetLayout( SalLayoutFlags aLayout ) { m_nLayout = aLayout;} void mirror( long& nX, const OutputDevice *pOutDev ) const; - void mirror( long& nX, long& nWidth, const OutputDevice *pOutDev, bool bBack = false ) const; + void mirror( long& nX, long nWidth, const OutputDevice *pOutDev, bool bBack = false ) const; bool mirror( sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint *pPtAry2, const OutputDevice *pOutDev ) const; void mirror( tools::Rectangle& rRect, const OutputDevice*, bool bBack = false ) const; void mirror( vcl::Region& rRgn, const OutputDevice *pOutDev ) const; diff --git a/vcl/inc/salinst.hxx b/vcl/inc/salinst.hxx index d8b9b0a32d64..03491553c62a 100644 --- a/vcl/inc/salinst.hxx +++ b/vcl/inc/salinst.hxx @@ -152,7 +152,7 @@ public: void SetEventCallback( rtl::Reference< vcl::DisplayConnectionDispatch > const & pInstance ) { m_pEventInst = pInstance; } - bool CallEventCallback( void* pEvent, int nBytes ); + bool CallEventCallback( void const * pEvent, int nBytes ); virtual OUString GetConnectionIdentifier() = 0; diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx index 08cb9085b6e5..4fd0e4c25317 100644 --- a/vcl/inc/sallayout.hxx +++ b/vcl/inc/sallayout.hxx @@ -224,7 +224,7 @@ public: // used only by OutputDevice::ImplLayout, TODO: make friend explicit MultiSalLayout( SalLayout& rBaseLayout ); void AddFallback( SalLayout& rFallbackLayout, - ImplLayoutRuns&, const PhysicalFontFace* pFallbackFont ); + ImplLayoutRuns const &, const PhysicalFontFace* pFallbackFont ); virtual bool LayoutText( ImplLayoutArgs& ) override; virtual void AdjustLayout( ImplLayoutArgs& ) override; virtual void InitFont() const override; diff --git a/vcl/inc/sft.hxx b/vcl/inc/sft.hxx index dc51b9673f90..76234a9bc0fc 100644 --- a/vcl/inc/sft.hxx +++ b/vcl/inc/sft.hxx @@ -372,7 +372,7 @@ namespace vcl sal_uInt8 *encoding, int nGlyphs, int nNameRecs, - NameRecord *nr); + NameRecord const *nr); /** * Generates a new PostScript Type42 font and dumps it to outf file. diff --git a/vcl/inc/svmconverter.hxx b/vcl/inc/svmconverter.hxx index bcb11dba2535..0b2c41fa6640 100644 --- a/vcl/inc/svmconverter.hxx +++ b/vcl/inc/svmconverter.hxx @@ -79,8 +79,8 @@ class VCL_PLUGIN_PUBLIC SVMConverter { private: SAL_DLLPRIVATE static void ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf ); - SAL_DLLPRIVATE void ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf ); - SAL_DLLPRIVATE sal_uLong ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf, + SAL_DLLPRIVATE void ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile const & rMtf ); + SAL_DLLPRIVATE sal_uLong ImplWriteActions( SvStream& rOStm, GDIMetaFile const & rMtf, VirtualDevice& rSaveVDev, bool& rRop_0_1, Color& rLineCol, ::std::stack& rLineColStack, rtl_TextEncoding& rActualCharSet ); diff --git a/vcl/inc/unx/gendisp.hxx b/vcl/inc/unx/gendisp.hxx index 435b81189d81..64564237a232 100644 --- a/vcl/inc/unx/gendisp.hxx +++ b/vcl/inc/unx/gendisp.hxx @@ -63,7 +63,7 @@ public: virtual void PostUserEvent() = 0; void SendInternalEvent( SalFrame* pFrame, void* pData, SalEvent nEvent = SalEvent::UserEvent ); - void CancelInternalEvent( SalFrame* pFrame, void* pData, SalEvent nEvent ); + void CancelInternalEvent( SalFrame const * pFrame, void const * pData, SalEvent nEvent ); bool DispatchInternalEvent(); bool HasUserEvents() const; diff --git a/vcl/inc/unx/geninst.h b/vcl/inc/unx/geninst.h index e79fd1fd56d4..2c99a7b3e0a1 100644 --- a/vcl/inc/unx/geninst.h +++ b/vcl/inc/unx/geninst.h @@ -112,7 +112,7 @@ public: protected: static void configurePspInfoPrinter( PspSalInfoPrinter* pInfoPrinter, - SalPrinterQueueInfo* pQueueInfo, + SalPrinterQueueInfo const * pQueueInfo, ImplJobSetup* pSetupData ); }; diff --git a/vcl/inc/unx/glyphcache.hxx b/vcl/inc/unx/glyphcache.hxx index 05095e5c9eca..6c78ca519a1f 100644 --- a/vcl/inc/unx/glyphcache.hxx +++ b/vcl/inc/unx/glyphcache.hxx @@ -75,7 +75,7 @@ private: // used by FreetypeFont class only void AddedGlyph( GlyphData& ); void RemovingGlyph(); - void UsingGlyph( GlyphData& ); + void UsingGlyph( GlyphData const & ); private: void GarbageCollect(); @@ -132,7 +132,7 @@ public: const FontSelectPattern& GetFontSelData() const { return maFontSelData; } - void GetFontMetric(ImplFontMetricDataRef&) const; + void GetFontMetric(ImplFontMetricDataRef const &) const; const unsigned char* GetTable( const char* pName, sal_uLong* pLength ); const FontCharMapRef GetFontCharMap() const; bool GetFontCapabilities(vcl::FontCapabilities &) const; diff --git a/vcl/inc/unx/gtk/gtkdata.hxx b/vcl/inc/unx/gtk/gtkdata.hxx index 2582314eb003..249bc1add2bf 100644 --- a/vcl/inc/unx/gtk/gtkdata.hxx +++ b/vcl/inc/unx/gtk/gtkdata.hxx @@ -167,8 +167,8 @@ public: GdkFilterReturn filterGdkEvent( GdkXEvent* sys_event ); void startupNotificationCompleted() { m_bStartupCompleted = true; } - void screenSizeChanged( GdkScreen* ); - void monitorsChanged( GdkScreen* ); + void screenSizeChanged( GdkScreen const * ); + void monitorsChanged( GdkScreen const * ); virtual void PostUserEvent() override; diff --git a/vcl/inc/unx/gtk/gtkframe.hxx b/vcl/inc/unx/gtk/gtkframe.hxx index ac9e7e783cbd..dd260acfa7f0 100644 --- a/vcl/inc/unx/gtk/gtkframe.hxx +++ b/vcl/inc/unx/gtk/gtkframe.hxx @@ -122,7 +122,7 @@ class GtkSalFrame : public SalFrame group( rPrev.group ) {} - bool operator== (GdkEventKey *event) const + bool operator== (GdkEventKey const *event) const { return (event != nullptr) && (event->window == window) @@ -396,7 +396,7 @@ public: m_pDropTarget = pDropTarget; } - void deregisterDropTarget(GtkDropTarget* pDropTarget) + void deregisterDropTarget(GtkDropTarget const * pDropTarget) { assert(m_pDropTarget == pDropTarget); (void)pDropTarget; m_pDropTarget = nullptr; @@ -408,7 +408,7 @@ public: m_pDragSource = pDragSource; } - void deregisterDragSource(GtkDragSource* pDragSource) + void deregisterDragSource(GtkDragSource const * pDragSource) { assert(m_pDragSource == pDragSource); (void)pDragSource; m_pDragSource = nullptr; @@ -429,7 +429,7 @@ public: void nopaint_container_resize_children(GtkContainer*); - void LaunchAsyncScroll(GdkEvent* pEvent); + void LaunchAsyncScroll(GdkEvent const * pEvent); DECL_LINK(AsyncScroll, Timer *, void); #endif diff --git a/vcl/inc/unx/gtk/gtksalmenu.hxx b/vcl/inc/unx/gtk/gtksalmenu.hxx index 9a5ef3ed67ab..c303583941b3 100644 --- a/vcl/inc/unx/gtk/gtksalmenu.hxx +++ b/vcl/inc/unx/gtk/gtksalmenu.hxx @@ -103,7 +103,7 @@ public: MenuItemBits nBits, bool bChecked, bool bIsSubmenu ); - void NativeSetEnableItem( gchar* aCommand, gboolean bEnable ); + void NativeSetEnableItem( gchar const * aCommand, gboolean bEnable ); void NativeCheckItem( unsigned nSection, unsigned nItemPos, MenuItemBits bits, gboolean bCheck ); void NativeSetAccelerator( unsigned nSection, unsigned nItemPos, const vcl::KeyCode& rKeyCode, const OUString& rKeyName ); @@ -123,7 +123,7 @@ public: void CreateMenuBarWidget(); void DestroyMenuBarWidget(); - gboolean SignalKey(GdkEventKey* pEvent); + gboolean SignalKey(GdkEventKey const * pEvent); void ReturnFocus(); virtual bool ShowNativePopupMenu(FloatingWindow * pWin, const tools::Rectangle& rRect, FloatWinPopupFlags nFlags) override; diff --git a/vcl/inc/unx/i18n_ic.hxx b/vcl/inc/unx/i18n_ic.hxx index 17e973f2d429..b3f8b2c59b09 100644 --- a/vcl/inc/unx/i18n_ic.hxx +++ b/vcl/inc/unx/i18n_ic.hxx @@ -62,7 +62,7 @@ public: void ExtendEventMask( ::Window aFocusWindow ); void SetICFocus( SalFrame* pFocusFrame ); - void UnsetICFocus( SalFrame* pFrame ); + void UnsetICFocus( SalFrame const * pFrame ); void HandleDestroyIM(); void EndExtTextInput(); @@ -70,7 +70,7 @@ public: int UpdateSpotLocation(); void Map( SalFrame *pFrame ); - void Unmap( SalFrame* pFrame ); + void Unmap( SalFrame const * pFrame ); SalI18N_InputContext( SalFrame *aFrame ); ~SalI18N_InputContext(); diff --git a/vcl/inc/unx/printergfx.hxx b/vcl/inc/unx/printergfx.hxx index a232d68de2f9..dd314371578f 100644 --- a/vcl/inc/unx/printergfx.hxx +++ b/vcl/inc/unx/printergfx.hxx @@ -332,7 +332,7 @@ public: { return maVirtualStatus.mbArtItalic; } bool GetArtificialBold() const { return maVirtualStatus.mbArtBold; } - void SetTextColor (PrinterColor& rTextColor) + void SetTextColor (PrinterColor const & rTextColor) { maTextColor = rTextColor; } void DrawGlyph(const Point& rPoint, diff --git a/vcl/inc/unx/salbmp.h b/vcl/inc/unx/salbmp.h index 6f9de187dd11..1659cb63e876 100644 --- a/vcl/inc/unx/salbmp.h +++ b/vcl/inc/unx/salbmp.h @@ -85,7 +85,7 @@ public: ); SAL_DLLPRIVATE XImage* ImplCreateXImage( - SalDisplay* pSalDisp, + SalDisplay const * pSalDisp, SalX11Screen nXScreen, long nDepth, const SalTwoRect& rTwoRect @@ -228,7 +228,7 @@ public: ~ImplSalBitmapCache(); void ImplAdd( X11SalBitmap* pBmp ); - void ImplRemove( X11SalBitmap* pBmp ); + void ImplRemove( X11SalBitmap const * pBmp ); void ImplClear(); }; diff --git a/vcl/inc/unx/salframe.h b/vcl/inc/unx/salframe.h index 2be2992ae520..d3a5c7b35b00 100644 --- a/vcl/inc/unx/salframe.h +++ b/vcl/inc/unx/salframe.h @@ -148,7 +148,7 @@ class VCLPLUG_GEN_PUBLIC X11SalFrame : public SalFrame, public NativeWindowHandl long HandleKeyEvent ( XKeyEvent *pEvent ); long HandleMouseEvent ( XEvent *pEvent ); - long HandleFocusEvent ( XFocusChangeEvent *pEvent ); + long HandleFocusEvent ( XFocusChangeEvent const *pEvent ); long HandleExposeEvent ( XEvent *pEvent ); long HandleSizeEvent ( XConfigureEvent *pEvent ); long HandleStateEvent ( XPropertyEvent *pEvent ); diff --git a/vcl/inc/unx/wmadaptor.hxx b/vcl/inc/unx/wmadaptor.hxx index 4e9c2769ee7e..b601bd95bc42 100644 --- a/vcl/inc/unx/wmadaptor.hxx +++ b/vcl/inc/unx/wmadaptor.hxx @@ -195,14 +195,14 @@ public: /* * set NET_WM_PID */ - void setPID( X11SalFrame* pFrame ) const; + void setPID( X11SalFrame const * pFrame ) const; /* * set WM_CLIENT_MACHINE */ - void setClientMachine( X11SalFrame* pFrame ) const; + void setClientMachine( X11SalFrame const * pFrame ) const; - void answerPing( X11SalFrame*, XClientMessageEvent* ) const; + void answerPing( X11SalFrame const *, XClientMessageEvent const * ) const; /* * maximizes frame @@ -285,7 +285,7 @@ public: * changes the transient hint of a window to reference frame * if reference frame is NULL the root window is used instead */ - void changeReferenceFrame( X11SalFrame* pFrame, X11SalFrame* pReferenceFrame ) const; + void changeReferenceFrame( X11SalFrame* pFrame, X11SalFrame const * pReferenceFrame ) const; }; } // namespace diff --git a/vcl/opengl/FixedTextureAtlas.cxx b/vcl/opengl/FixedTextureAtlas.cxx index 7a321d8cccfb..85e9f1331d49 100644 --- a/vcl/opengl/FixedTextureAtlas.cxx +++ b/vcl/opengl/FixedTextureAtlas.cxx @@ -125,7 +125,7 @@ OpenGLTexture FixedTextureAtlasManager::Reserve(int nWidth, int nHeight) return OpenGLTexture(pFixedTexture->mpTexture, aRectangle, nSlot); } -OpenGLTexture FixedTextureAtlasManager::InsertBuffer(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData) +OpenGLTexture FixedTextureAtlasManager::InsertBuffer(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8 const * pData) { OpenGLTexture aTexture = Reserve(nWidth, nHeight); if (pData == nullptr) diff --git a/vcl/opengl/PackedTextureAtlas.cxx b/vcl/opengl/PackedTextureAtlas.cxx index 8b20bf275cf1..bd1b829427da 100644 --- a/vcl/opengl/PackedTextureAtlas.cxx +++ b/vcl/opengl/PackedTextureAtlas.cxx @@ -163,7 +163,7 @@ OpenGLTexture PackedTextureAtlasManager::Reserve(int nWidth, int nHeight) return OpenGLTexture(); } -OpenGLTexture PackedTextureAtlasManager::InsertBuffer(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData) +OpenGLTexture PackedTextureAtlasManager::InsertBuffer(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8 const * pData) { OpenGLTexture aTexture = Reserve(nWidth, nHeight); if (aTexture && pData == nullptr) diff --git a/vcl/opengl/RenderList.cxx b/vcl/opengl/RenderList.cxx index 4df0f620587c..a0b86c4a9afa 100644 --- a/vcl/opengl/RenderList.cxx +++ b/vcl/opengl/RenderList.cxx @@ -348,7 +348,7 @@ void RenderList::addDrawPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPolygon, } } -bool RenderList::addDrawTextureWithMaskColor(OpenGLTexture& rTexture, SalColor nColor, const SalTwoRect& r2Rect) +bool RenderList::addDrawTextureWithMaskColor(OpenGLTexture const & rTexture, SalColor nColor, const SalTwoRect& r2Rect) { if (!rTexture) return false; diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 342a8028cd01..60df24d784ab 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -1316,13 +1316,13 @@ void OpenGLSalGraphicsImpl::DrawMask( OpenGLTexture& rMask, SalColor nMaskColor, mpProgram->Clean(); } -void OpenGLSalGraphicsImpl::DeferredTextDraw(OpenGLTexture& rTexture, SalColor aMaskColor, const SalTwoRect& rPosAry) +void OpenGLSalGraphicsImpl::DeferredTextDraw(OpenGLTexture const & rTexture, SalColor aMaskColor, const SalTwoRect& rPosAry) { mpRenderList->addDrawTextureWithMaskColor(rTexture, aMaskColor, rPosAry); PostBatchDraw(); } -bool OpenGLSalGraphicsImpl::FlushLinesOrTriangles(DrawShaderType eType, RenderParameters& rParameters) +bool OpenGLSalGraphicsImpl::FlushLinesOrTriangles(DrawShaderType eType, RenderParameters const & rParameters) { if (!UseProgram("combinedVertexShader", "combinedFragmentShader", "#define USE_VERTEX_COLORS")) return false; diff --git a/vcl/opengl/program.cxx b/vcl/opengl/program.cxx index c3e32e627044..4da881fca210 100644 --- a/vcl/opengl/program.cxx +++ b/vcl/opengl/program.cxx @@ -213,14 +213,14 @@ void OpenGLProgram::SetUniform2f( const OString& rName, GLfloat v1, GLfloat v2 ) CHECK_GL_ERROR(); } -void OpenGLProgram::SetUniform1fv( const OString& rName, GLsizei nCount, GLfloat* aValues ) +void OpenGLProgram::SetUniform1fv( const OString& rName, GLsizei nCount, GLfloat const * aValues ) { GLuint nUniform = GetUniformLocation( rName ); glUniform1fv( nUniform, nCount, aValues ); CHECK_GL_ERROR(); } -void OpenGLProgram::SetUniform2fv( const OString& rName, GLsizei nCount, GLfloat* aValues ) +void OpenGLProgram::SetUniform2fv( const OString& rName, GLsizei nCount, GLfloat const * aValues ) { GLuint nUniform = GetUniformLocation( rName ); glUniform2fv( nUniform, nCount, aValues ); diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx index 5c94dfdaa2a9..01072929beb2 100644 --- a/vcl/opengl/salbmp.cxx +++ b/vcl/opengl/salbmp.cxx @@ -377,7 +377,7 @@ ImplPixelFormat* ImplPixelFormat::GetFormat( sal_uInt16 nBits, const BitmapPalet } void lclInstantiateTexture(OpenGLTexture& rTexture, const int nWidth, const int nHeight, - const GLenum nFormat, const GLenum nType, sal_uInt8* pData) + const GLenum nFormat, const GLenum nType, sal_uInt8 const * pData) { if (nWidth == nHeight) { diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx index 90cd255d8d95..35001bd02fcc 100644 --- a/vcl/opengl/texture.cxx +++ b/vcl/opengl/texture.cxx @@ -190,7 +190,7 @@ ImplOpenGLTexture::~ImplOpenGLTexture() } } -bool ImplOpenGLTexture::InsertBuffer(int nX, int nY, int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData) +bool ImplOpenGLTexture::InsertBuffer(int nX, int nY, int nWidth, int nHeight, int nFormat, int nType, sal_uInt8 const * pData) { if (!pData || mnTexture == 0) return false; @@ -461,7 +461,7 @@ GLenum OpenGLTexture::GetFilter() const return GL_NEAREST; } -bool OpenGLTexture::CopyData(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData) +bool OpenGLTexture::CopyData(int nWidth, int nHeight, int nFormat, int nType, sal_uInt8 const * pData) { if (!pData || !IsValid()) return false; diff --git a/vcl/opengl/x11/gdiimpl.cxx b/vcl/opengl/x11/gdiimpl.cxx index bc5c854c51e3..07a0b6d80fe8 100644 --- a/vcl/opengl/x11/gdiimpl.cxx +++ b/vcl/opengl/x11/gdiimpl.cxx @@ -701,7 +701,7 @@ namespace } } -bool X11OpenGLSalGraphicsImpl::RenderPixmap(X11Pixmap* pPixmap, X11Pixmap* pMask, int nX, int nY, TextureCombo& rCombo) +bool X11OpenGLSalGraphicsImpl::RenderPixmap(X11Pixmap const * pPixmap, X11Pixmap const * pMask, int nX, int nY, TextureCombo& rCombo) { const int aAttribs[] = { diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx index 29221658c2e2..1d8faa415222 100644 --- a/vcl/source/app/help.cxx +++ b/vcl/source/app/help.cxx @@ -232,7 +232,7 @@ void Help::UpdatePopover(sal_uIntPtr nId, vcl::Window* pParent, const tools::Rec pHelpWin->Invalidate(); } -void Help::HidePopover(vcl::Window* pParent, sal_uLong nId) +void Help::HidePopover(vcl::Window const * pParent, sal_uLong nId) { if (pParent->ImplGetFrame()->HidePopover(nId)) { diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 0866e648acbc..93697a61ad2d 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -85,7 +85,7 @@ void SalInstance::DestroyMenuItem( SalMenuItem* pItem ) OSL_ENSURE( pItem == nullptr, "DestroyMenu called with non-native menus" ); } -bool SalInstance::CallEventCallback( void* pEvent, int nBytes ) +bool SalInstance::CallEventCallback( void const * pEvent, int nBytes ) { return m_pEventInst.is() && m_pEventInst->dispatchEvent( pEvent, nBytes ); } diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index b06b014ce5cd..0d93f95b23f5 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -893,7 +893,7 @@ bool Application::HandleKey( VclEventId nEvent, vcl::Window *pWin, KeyEvent* pKe return bProcessed; } -ImplSVEvent * Application::PostKeyEvent( VclEventId nEvent, vcl::Window *pWin, KeyEvent* pKeyEvent ) +ImplSVEvent * Application::PostKeyEvent( VclEventId nEvent, vcl::Window *pWin, KeyEvent const * pKeyEvent ) { const SolarMutexGuard aGuard; ImplSVEvent * nEventId = nullptr; @@ -918,7 +918,7 @@ ImplSVEvent * Application::PostKeyEvent( VclEventId nEvent, vcl::Window *pWin, K return nEventId; } -ImplSVEvent * Application::PostMouseEvent( VclEventId nEvent, vcl::Window *pWin, MouseEvent* pMouseEvent ) +ImplSVEvent * Application::PostMouseEvent( VclEventId nEvent, vcl::Window *pWin, MouseEvent const * pMouseEvent ) { const SolarMutexGuard aGuard; ImplSVEvent * nEventId = nullptr; @@ -1098,7 +1098,7 @@ vcl::Window* Application::GetFirstTopLevelWindow() return pSVData->maWinData.mpFirstFrame; } -vcl::Window* Application::GetNextTopLevelWindow( vcl::Window* pWindow ) +vcl::Window* Application::GetNextTopLevelWindow( vcl::Window const * pWindow ) { return pWindow->mpWindowImpl->mpFrameData->mpNextFrame; } @@ -1342,7 +1342,7 @@ bool Application::InsertAccel( Accelerator* pAccel ) return pSVData->maAppData.mpAccelMgr->InsertAccel( pAccel ); } -void Application::RemoveAccel( Accelerator* pAccel ) +void Application::RemoveAccel( Accelerator const * pAccel ) { ImplSVData* pSVData = ImplGetSVData(); diff --git a/vcl/source/bitmap/BitmapProcessor.cxx b/vcl/source/bitmap/BitmapProcessor.cxx index d9ab9359c08f..b6f556b9cdd9 100644 --- a/vcl/source/bitmap/BitmapProcessor.cxx +++ b/vcl/source/bitmap/BitmapProcessor.cxx @@ -134,7 +134,7 @@ BitmapEx BitmapProcessor::createDisabledImage(const BitmapEx& rBitmapEx) return aReturnBitmap; } -void BitmapProcessor::colorizeImage(BitmapEx& rBitmapEx, Color aColor) +void BitmapProcessor::colorizeImage(BitmapEx const & rBitmapEx, Color aColor) { Bitmap aBitmap = rBitmapEx.GetBitmap(); Bitmap::ScopedWriteAccess pWriteAccess(aBitmap); diff --git a/vcl/source/bitmap/BitmapSymmetryCheck.cxx b/vcl/source/bitmap/BitmapSymmetryCheck.cxx index f1a600815f1c..e5db09e463ca 100644 --- a/vcl/source/bitmap/BitmapSymmetryCheck.cxx +++ b/vcl/source/bitmap/BitmapSymmetryCheck.cxx @@ -22,7 +22,7 @@ bool BitmapSymmetryCheck::check(Bitmap& rBitmap) return checkImpl(aReadAccess.get()); } -bool BitmapSymmetryCheck::checkImpl(BitmapReadAccess* pReadAccess) +bool BitmapSymmetryCheck::checkImpl(BitmapReadAccess const * pReadAccess) { long nHeight = pReadAccess->Height(); long nWidth = pReadAccess->Width(); diff --git a/vcl/source/bitmap/bitmapscalesuper.cxx b/vcl/source/bitmap/bitmapscalesuper.cxx index 15aa67e25983..00d253ad6430 100644 --- a/vcl/source/bitmap/bitmapscalesuper.cxx +++ b/vcl/source/bitmap/bitmapscalesuper.cxx @@ -91,7 +91,7 @@ class ScaleTask : public comphelper::ThreadTask public: explicit ScaleTask( const std::shared_ptr& pTag, ScaleRangeFn pFn ) : comphelper::ThreadTask(pTag), mpFn( pFn ) {} - void push( ScaleRangeContext &aRC ) { maStrips.push_back( aRC ); } + void push( ScaleRangeContext const &aRC ) { maStrips.push_back( aRC ); } virtual void doWork() override { std::vector< ScaleRangeContext >::iterator it; diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index b93c9f7f1129..8db0bfcaa947 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -644,7 +644,7 @@ void PushButton::ImplInitPushButtonData() namespace { - vcl::Window* getPreviousSibling(vcl::Window *pParent) + vcl::Window* getPreviousSibling(vcl::Window const *pParent) { return pParent ? pParent->GetWindow(GetWindowType::LastChild) : nullptr; } @@ -753,7 +753,7 @@ void PushButton::ImplDrawPushButtonFrame(vcl::RenderContext& rRenderContext, rRect = aDecoView.DrawButton(rRect, nStyle); } -bool PushButton::ImplHitTestPushButton( vcl::Window* pDev, +bool PushButton::ImplHitTestPushButton( vcl::Window const * pDev, const Point& rPos ) { Point aTempPoint; @@ -799,7 +799,7 @@ DrawTextFlags PushButton::ImplGetTextStyle( DrawFlags nDrawFlags ) const static void ImplDrawBtnDropDownArrow( OutputDevice* pDev, long nX, long nY, - Color& rColor, bool bBlack ) + Color const & rColor, bool bBlack ) { Color aOldLineColor = pDev->GetLineColor(); Color aOldFillColor = pDev->GetFillColor(); diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 211820a26d7e..dd289eff827f 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -294,7 +294,7 @@ void Edit::ImplInitEditData() mxDnDListener = pDnDWrapper; } -bool Edit::ImplUseNativeBorder(vcl::RenderContext& rRenderContext, WinBits nStyle) +bool Edit::ImplUseNativeBorder(vcl::RenderContext const & rRenderContext, WinBits nStyle) { bool bRet = rRenderContext.IsNativeControlSupported(ImplGetNativeControlType(), ControlPart::HasBackgroundTexture) @@ -1000,7 +1000,7 @@ void Edit::ImplClearBackground(vcl::RenderContext& rRenderContext, const tools:: } } -void Edit::ImplPaintBorder(vcl::RenderContext& rRenderContext, long nXStart, long nXEnd) +void Edit::ImplPaintBorder(vcl::RenderContext const & rRenderContext, long nXStart, long nXEnd) { // this is not needed when double-buffering if (SupportsDoubleBuffering()) @@ -1276,12 +1276,12 @@ void Edit::ImplCopyToSelectionClipboard() } } -void Edit::ImplCopy( uno::Reference< datatransfer::clipboard::XClipboard >& rxClipboard ) +void Edit::ImplCopy( uno::Reference< datatransfer::clipboard::XClipboard > const & rxClipboard ) { vcl::unohelper::TextDataObject::CopyStringTo( GetSelected(), rxClipboard ); } -void Edit::ImplPaste( uno::Reference< datatransfer::clipboard::XClipboard >& rxClipboard ) +void Edit::ImplPaste( uno::Reference< datatransfer::clipboard::XClipboard > const & rxClipboard ) { if ( rxClipboard.is() ) { diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index e20d32ce3550..c92d8b95c78d 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -438,7 +438,7 @@ const LanguageTag& FormatterBase::GetLanguageTag() const return mpLocaleDataWrapper->getLanguageTag(); } -void FormatterBase::ImplSetText( const OUString& rText, Selection* pNewSelection ) +void FormatterBase::ImplSetText( const OUString& rText, Selection const * pNewSelection ) { if ( mpField ) { @@ -559,7 +559,7 @@ OUString NumericFormatter::CreateFieldText( sal_Int64 nValue ) const return ImplGetLocaleDataWrapper().getNum( nValue, GetDecimalDigits(), IsUseThousandSep(), IsShowTrailingZeros() ); } -void NumericFormatter::ImplSetUserValue( sal_Int64 nNewValue, Selection* pNewSelection ) +void NumericFormatter::ImplSetUserValue( sal_Int64 nNewValue, Selection const * pNewSelection ) { nNewValue = ClipAgainstMinMax(nNewValue); mnLastValue = nNewValue; diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx index ac9bb2b16305..ac2dbc913896 100644 --- a/vcl/source/control/field2.cxx +++ b/vcl/source/control/field2.cxx @@ -1565,7 +1565,7 @@ void DateFormatter::SetDate( const Date& rNewDate ) maLastDate = GetDate(); } -void DateFormatter::ImplSetUserDate( const Date& rNewDate, Selection* pNewSelection ) +void DateFormatter::ImplSetUserDate( const Date& rNewDate, Selection const * pNewSelection ) { Date aNewDate = rNewDate; if ( aNewDate > maMax ) @@ -2386,7 +2386,7 @@ void TimeFormatter::ImplNewFieldValue( const tools::Time& rTime ) } } -void TimeFormatter::ImplSetUserTime( const tools::Time& rNewTime, Selection* pNewSelection ) +void TimeFormatter::ImplSetUserTime( const tools::Time& rNewTime, Selection const * pNewSelection ) { tools::Time aNewTime = rNewTime; if ( aNewTime > GetMax() ) diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx index f83ad4babcfe..174b84f9d264 100644 --- a/vcl/source/control/longcurr.cxx +++ b/vcl/source/control/longcurr.cxx @@ -255,7 +255,7 @@ inline bool ImplLongCurrencyGetValue( const OUString& rStr, BigInt& rValue, bool ImplLongCurrencyReformat( const OUString& rStr, BigInt const & nMin, BigInt const & nMax, sal_uInt16 nDecDigits, const LocaleDataWrapper& rLocaleDataWrapper, OUString& rOutStr, - LongCurrencyFormatter& rFormatter ) + LongCurrencyFormatter const & rFormatter ) { BigInt nValue; if ( !ImplNumericGetValue( rStr, nValue, nDecDigits, rLocaleDataWrapper, true ) ) diff --git a/vcl/source/control/prgsbar.cxx b/vcl/source/control/prgsbar.cxx index 0f2a624ce9c1..837158350a36 100644 --- a/vcl/source/control/prgsbar.cxx +++ b/vcl/source/control/prgsbar.cxx @@ -33,7 +33,7 @@ void ProgressBar::ImplInit() ImplInitSettings( true, true, true ); } -static WinBits clearProgressBarBorder( vcl::Window* pParent, WinBits nOrgStyle ) +static WinBits clearProgressBarBorder( vcl::Window const * pParent, WinBits nOrgStyle ) { WinBits nOutStyle = nOrgStyle; if( pParent && (nOrgStyle & WB_BORDER) != 0 ) diff --git a/vcl/source/control/quickselectionengine.cxx b/vcl/source/control/quickselectionengine.cxx index c980639a5627..c04931146d72 100644 --- a/vcl/source/control/quickselectionengine.cxx +++ b/vcl/source/control/quickselectionengine.cxx @@ -70,7 +70,7 @@ namespace vcl lcl_reset( *this ); } - static StringEntryIdentifier findMatchingEntry( const OUString& _searchString, QuickSelectionEngine_Data& _engineData ) + static StringEntryIdentifier findMatchingEntry( const OUString& _searchString, QuickSelectionEngine_Data const & _engineData ) { const vcl::I18nHelper& rI18nHelper = Application::GetSettings().GetLocaleI18nHelper(); // TODO: do we really need the Window's settings here? The original code used it ... diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index 353e936f596b..9ceb2b2f5164 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -68,7 +68,7 @@ void ImplGetSpinbuttonValue(vcl::Window* pWin, rValue.mnLowerPart = bHorz ? ControlPart::ButtonRight : ControlPart::ButtonDown; } -bool ImplDrawNativeSpinfield(vcl::RenderContext& rRenderContext, vcl::Window* pWin, const SpinbuttonValue& rSpinbuttonValue) +bool ImplDrawNativeSpinfield(vcl::RenderContext& rRenderContext, vcl::Window const * pWin, const SpinbuttonValue& rSpinbuttonValue) { bool bNativeOK = false; diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index ef4edfd46537..188a3769f34e 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -2884,7 +2884,7 @@ sal_uInt8 TextEngine::ImpGetRightToLeft( sal_uInt32 nPara, sal_Int32 nPos ) return nRightToLeft; } -long TextEngine::ImpGetPortionXOffset( sal_uInt32 nPara, TextLine* pLine, std::size_t nTextPortion ) +long TextEngine::ImpGetPortionXOffset( sal_uInt32 nPara, TextLine const * pLine, std::size_t nTextPortion ) { long nX = pLine->GetStartX(); diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx index 12403b0d5180..366aa5bfaf6a 100644 --- a/vcl/source/edit/textview.cxx +++ b/vcl/source/edit/textview.cxx @@ -1032,7 +1032,7 @@ void TextView::Cut() mpImpl->mpTextEngine->UndoActionEnd(); } -void TextView::Copy( css::uno::Reference< css::datatransfer::clipboard::XClipboard >& rxClipboard ) +void TextView::Copy( css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & rxClipboard ) { if ( rxClipboard.is() ) { @@ -1063,7 +1063,7 @@ void TextView::Copy() Copy( aClipboard ); } -void TextView::Paste( css::uno::Reference< css::datatransfer::clipboard::XClipboard >& rxClipboard ) +void TextView::Paste( css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & rxClipboard ) { if ( rxClipboard.is() ) { diff --git a/vcl/source/filter/FilterConfigItem.cxx b/vcl/source/filter/FilterConfigItem.cxx index 9e41fa56acde..2047ff882215 100644 --- a/vcl/source/filter/FilterConfigItem.cxx +++ b/vcl/source/filter/FilterConfigItem.cxx @@ -39,7 +39,7 @@ using namespace ::com::sun::star::container ; using namespace ::com::sun::star::configuration; using namespace ::com::sun::star::task ; // XStatusIndicator -static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv, const OUString& rTree ) +static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory > const & rXCfgProv, const OUString& rTree ) { bool bAvailable = !rTree.isEmpty(); if ( bAvailable ) diff --git a/vcl/source/filter/GraphicNativeMetadata.cxx b/vcl/source/filter/GraphicNativeMetadata.cxx index aea930d7174f..26ba4a72892e 100644 --- a/vcl/source/filter/GraphicNativeMetadata.cxx +++ b/vcl/source/filter/GraphicNativeMetadata.cxx @@ -32,7 +32,7 @@ GraphicNativeMetadata::~GraphicNativeMetadata() {} -bool GraphicNativeMetadata::read(Graphic& rGraphic) +bool GraphicNativeMetadata::read(Graphic const & rGraphic) { GfxLink aLink = rGraphic.GetLink(); if ( aLink.GetType() != GfxLinkType::NativeJpg ) diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx index a0f9d21f9cca..b99d5e0c8490 100644 --- a/vcl/source/filter/graphicfilter.cxx +++ b/vcl/source/filter/graphicfilter.cxx @@ -1313,7 +1313,7 @@ ErrCode GraphicFilter::ImportGraphic( sal_uInt16 nFormat, sal_uInt16* pDeterminedFormat, GraphicFilterImportFlags nImportFlags, - WmfExternal *pExtHeader) + WmfExternal const *pExtHeader) { return ImportGraphic( rGraphic, rPath, rIStream, nFormat, pDeterminedFormat, nImportFlags, nullptr, pExtHeader ); } @@ -1468,7 +1468,7 @@ void GraphicFilter::ImportGraphics(std::vector< std::shared_ptr >& rGra ErrCode GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPath, SvStream& rIStream, sal_uInt16 nFormat, sal_uInt16* pDeterminedFormat, GraphicFilterImportFlags nImportFlags, css::uno::Sequence< css::beans::PropertyValue >* pFilterData, - WmfExternal *pExtHeader ) + WmfExternal const *pExtHeader ) { OUString aFilterName; OUString aExternalFilterName; diff --git a/vcl/source/filter/ipdf/pdfdocument.cxx b/vcl/source/filter/ipdf/pdfdocument.cxx index 6ec4ba98c1ca..135eece7846a 100644 --- a/vcl/source/filter/ipdf/pdfdocument.cxx +++ b/vcl/source/filter/ipdf/pdfdocument.cxx @@ -255,7 +255,7 @@ sal_Int32 PDFDocument::WriteAppearanceObject() return nAppearanceId; } -sal_Int32 PDFDocument::WriteAnnotObject(PDFObjectElement& rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId) +sal_Int32 PDFDocument::WriteAnnotObject(PDFObjectElement const & rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId) { // Decide what identifier to use for the new signature. sal_uInt32 nNextSignature = GetNextSignature(); @@ -535,7 +535,7 @@ bool PDFDocument::WriteCatalogObject(sal_Int32 nAnnotId, PDFReferenceElement*& p return true; } -void PDFDocument::WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement* pRoot) +void PDFDocument::WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement const * pRoot) { if (m_pXRefStream) { @@ -1910,7 +1910,7 @@ int PDFDocument::AsHex(char ch) return nRet; } -std::vector PDFDocument::DecodeHexString(PDFHexStringElement* pElement) +std::vector PDFDocument::DecodeHexString(PDFHexStringElement const * pElement) { std::vector aRet; const OString& rHex = pElement->GetValue(); diff --git a/vcl/source/filter/sgvmain.cxx b/vcl/source/filter/sgvmain.cxx index 63d756aaf5ef..9b99f445f71a 100644 --- a/vcl/source/filter/sgvmain.cxx +++ b/vcl/source/filter/sgvmain.cxx @@ -151,7 +151,7 @@ void ReadObjAreaType(SvStream & rInp, ObjAreaType & rArea) rInp.ReadUInt16(rArea.FMuster); } -void ObjkOverSeek(SvStream& rInp, ObjkType& rObjk) +void ObjkOverSeek(SvStream& rInp, ObjkType const & rObjk) { sal_uLong Siz; Siz=(sal_uLong)rObjk.MemSize+rObjk.Last; // ObjSize+ObjAnhSize diff --git a/vcl/source/filter/sgvspln.cxx b/vcl/source/filter/sgvspln.cxx index f3dcc57aa352..7781849cda9d 100644 --- a/vcl/source/filter/sgvspln.cxx +++ b/vcl/source/filter/sgvspln.cxx @@ -616,7 +616,7 @@ sal_uInt16 ParaSpline(sal_uInt16 n, double* x, double* y, sal_uInt8 MargCond, return 0; } -bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n, +bool CalcSpline(tools::Polygon const & rPoly, bool Periodic, sal_uInt16& n, double*& ax, double*& ay, double*& bx, double*& by, double*& cx, double*& cy, double*& dx, double*& dy, double*& T) { @@ -685,7 +685,7 @@ bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n, return bRet; } -bool Spline2Poly(tools::Polygon& rSpln, bool Periodic, tools::Polygon& rPoly) +bool Spline2Poly(tools::Polygon const & rSpln, bool Periodic, tools::Polygon& rPoly) { const short MinKoord = -32000; // to prevent const short MaxKoord = 32000; // overflows diff --git a/vcl/source/filter/sgvspln.hxx b/vcl/source/filter/sgvspln.hxx index 906dbe2c6f47..6f4543292478 100644 --- a/vcl/source/filter/sgvspln.hxx +++ b/vcl/source/filter/sgvspln.hxx @@ -28,7 +28,7 @@ * coefficient array has been allocated, which can be freed by the caller * using a delete. */ -bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n, +bool CalcSpline(tools::Polygon const & rPoly, bool Periodic, sal_uInt16& n, double*& ax, double*& ay, double*& bx, double*& by, double*& cx, double*& cy, double*& dx, double*& dy, double*& T); @@ -39,7 +39,7 @@ bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n, * In the first case the polygon has 0, in the second case PolyMax points. * To prevent coordinate overflows we limit them to +/-32000. */ -bool Spline2Poly(tools::Polygon& rSpln, bool Periodic, tools::Polygon& rPoly); +bool Spline2Poly(tools::Polygon const & rSpln, bool Periodic, tools::Polygon& rPoly); #endif // INCLUDED_VCL_SOURCE_FILTER_SGVSPLN_HXX diff --git a/vcl/source/filter/sgvtext.cxx b/vcl/source/filter/sgvtext.cxx index e993471628b5..558c563bae24 100644 --- a/vcl/source/filter/sgvtext.cxx +++ b/vcl/source/filter/sgvtext.cxx @@ -152,7 +152,7 @@ // end of DefBase.Pas -bool CheckTextOutl(ObjAreaType& F, ObjLineType& L) +bool CheckTextOutl(ObjAreaType const & F, ObjLineType const & L) { return (F.FIntens!=L.LIntens) || ((F.FFarbe!=L.LFarbe) && (F.FIntens>0)) || @@ -564,7 +564,7 @@ struct ProcChrSta { ObjTextType Attrib; }; -void InitProcessCharState(ProcChrSta& State, ObjTextType& AktAtr, sal_uInt16 IndexA) +void InitProcessCharState(ProcChrSta& State, ObjTextType const & AktAtr, sal_uInt16 IndexA) { State.Attrib=AktAtr; State.OutCh=0; @@ -587,7 +587,7 @@ UCHAR Upcase(UCHAR c) return c; } -sal_uInt16 GetCharWidth(OutputDevice& rOut, UCHAR c) +sal_uInt16 GetCharWidth(OutputDevice const & rOut, UCHAR c) { sal_uInt16 ChrWidth; diff --git a/vcl/source/filter/wmf/wmf.cxx b/vcl/source/filter/wmf/wmf.cxx index f620a8e00303..fe9a9f4429ca 100644 --- a/vcl/source/filter/wmf/wmf.cxx +++ b/vcl/source/filter/wmf/wmf.cxx @@ -55,7 +55,7 @@ bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF ) } bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream, - FilterConfigItem* pConfigItem, bool bPlaceable) + FilterConfigItem const * pConfigItem, bool bPlaceable) { WMFWriter aWMFWriter; GDIMetaFile aGdiMetaFile(rMTF); diff --git a/vcl/source/filter/wmf/wmfwr.cxx b/vcl/source/filter/wmf/wmfwr.cxx index 7facdbd8aa93..8013c1e2f09c 100644 --- a/vcl/source/filter/wmf/wmfwr.cxx +++ b/vcl/source/filter/wmf/wmfwr.cxx @@ -1680,7 +1680,7 @@ void WMFWriter::UpdateHeader() } bool WMFWriter::WriteWMF( const GDIMetaFile& rMTF, SvStream& rTargetStream, - FilterConfigItem* pFConfigItem, bool bPlaceable ) + FilterConfigItem const * pFConfigItem, bool bPlaceable ) { WMFWriterAttrStackMember * pAt; diff --git a/vcl/source/filter/wmf/wmfwr.hxx b/vcl/source/filter/wmf/wmfwr.hxx index 39474c94cc39..c0fd6e5fca56 100644 --- a/vcl/source/filter/wmf/wmfwr.hxx +++ b/vcl/source/filter/wmf/wmfwr.hxx @@ -198,7 +198,7 @@ private: public: WMFWriter(); - bool WriteWMF(const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem* pFilterConfigItem, bool bPlaceable); + bool WriteWMF(const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem const * pFilterConfigItem, bool bPlaceable); }; #endif diff --git a/vcl/source/font/fontcache.cxx b/vcl/source/font/fontcache.cxx index 61d310b9a3ca..8b26edacb5fa 100644 --- a/vcl/source/font/fontcache.cxx +++ b/vcl/source/font/fontcache.cxx @@ -99,7 +99,7 @@ ImplFontCache::~ImplFontCache() } } -LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection* pFontList, +LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection const * pFontList, const vcl::Font& rFont, const Size& rSize, float fExactHeight ) { const OUString& aSearchName = rFont.GetFamilyName(); @@ -109,7 +109,7 @@ LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection* pFo return GetFontInstance( pFontList, aFontSelData ); } -LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection* pFontList, +LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection const * pFontList, FontSelectPattern& aFontSelData ) { // check if a directly matching logical font instance is already cached, @@ -206,7 +206,7 @@ LogicalFontInstance* ImplFontCache::GetFontInstance( PhysicalFontCollection* pFo return pFontInstance; } -LogicalFontInstance* ImplFontCache::GetGlyphFallbackFont( PhysicalFontCollection* pFontCollection, +LogicalFontInstance* ImplFontCache::GetGlyphFallbackFont( PhysicalFontCollection const * pFontCollection, FontSelectPattern& rFontSelData, int nFallbackLevel, OUString& rMissingCodes ) { // get a candidate font for glyph fallback diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index 58cd9f398850..3cffc299c073 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -262,7 +262,7 @@ static int XUnits(int unitsPerEm, int n) return (n * 1000) / unitsPerEm; } -static const sal_uInt8* getTable( TrueTypeFont *ttf, sal_uInt32 ord) +static const sal_uInt8* getTable( TrueTypeFont const *ttf, sal_uInt32 ord) { return ttf->tables[ord]; } @@ -338,7 +338,7 @@ static void HexFmtBlockWrite(HexFmt *_this, const void *ptr, sal_uInt32 size) /* Outline Extraction functions */ /* fills the aw and lsb entries of the TTGlyphMetrics structure from hmtx table -*/ -static void GetMetrics(TrueTypeFont *ttf, sal_uInt32 glyphID, TTGlyphMetrics *metrics) +static void GetMetrics(TrueTypeFont const *ttf, sal_uInt32 glyphID, TTGlyphMetrics *metrics) { const sal_uInt8* table = getTable( ttf, O_hmtx ); @@ -1927,7 +1927,7 @@ int CreateTTFromTTGlyphs(TrueTypeFont *ttf, sal_uInt8 *encoding, int nGlyphs, int nNameRecs, - NameRecord *nr) + NameRecord const *nr) { TrueTypeCreator *ttcr; TrueTypeTable *head=nullptr, *hhea=nullptr, *maxp=nullptr, *cvt=nullptr, *prep=nullptr, *glyf=nullptr, *fpgm=nullptr, *cmap=nullptr, *name=nullptr, *post = nullptr, *os2 = nullptr; diff --git a/vcl/source/fontsubset/ttcr.cxx b/vcl/source/fontsubset/ttcr.cxx index c19be66d9235..6f860f4f2ec2 100644 --- a/vcl/source/fontsubset/ttcr.cxx +++ b/vcl/source/fontsubset/ttcr.cxx @@ -1019,7 +1019,7 @@ static void DisposeNameRecord(void *ptr) } } -static NameRecord* NameRecordNewCopy(NameRecord *nr) +static NameRecord* NameRecordNewCopy(NameRecord const *nr) { NameRecord* p = static_cast(smalloc(sizeof(NameRecord))); @@ -1033,7 +1033,7 @@ static NameRecord* NameRecordNewCopy(NameRecord *nr) return p; } -TrueTypeTable *TrueTypeTableNew_name(int n, NameRecord *nr) +TrueTypeTable *TrueTypeTableNew_name(int n, NameRecord const *nr) { TrueTypeTable* table = static_cast(smalloc(sizeof(TrueTypeTable))); list l = listNewEmpty(); diff --git a/vcl/source/fontsubset/ttcr.hxx b/vcl/source/fontsubset/ttcr.hxx index 10ce873fbc90..6e595c5c9cf2 100644 --- a/vcl/source/fontsubset/ttcr.hxx +++ b/vcl/source/fontsubset/ttcr.hxx @@ -170,7 +170,7 @@ namespace vcl * memory for its own copy of NameRecords, so nr array has to * be explicitly deallocated when it is not needed. */ - TrueTypeTable *TrueTypeTableNew_name(int n, NameRecord *nr); + TrueTypeTable *TrueTypeTableNew_name(int n, NameRecord const *nr); /** * Creates a new 'post' table of one of the supported formats diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx index 31796149ad9e..db9943048e13 100644 --- a/vcl/source/gdi/bitmap3.cxx +++ b/vcl/source/gdi/bitmap3.cxx @@ -484,7 +484,7 @@ bool Bitmap::ImplMakeGreyscales( sal_uInt16 nGreys ) return bRet; } -bool Bitmap::ImplConvertUp(sal_uInt16 nBitCount, Color* pExtColor) +bool Bitmap::ImplConvertUp(sal_uInt16 nBitCount, Color const * pExtColor) { SAL_WARN_IF( nBitCount <= GetBitCount(), "vcl", "New BitCount must be greater!" ); @@ -567,7 +567,7 @@ bool Bitmap::ImplConvertUp(sal_uInt16 nBitCount, Color* pExtColor) return bRet; } -bool Bitmap::ImplConvertDown(sal_uInt16 nBitCount, Color* pExtColor) +bool Bitmap::ImplConvertDown(sal_uInt16 nBitCount, Color const * pExtColor) { SAL_WARN_IF(nBitCount > GetBitCount(), "vcl", "New BitCount must be lower ( or equal when pExtColor is set )!"); @@ -2123,7 +2123,7 @@ bool Bitmap::Adjust( short nLuminancePercent, short nContrastPercent, return bRet; } -bool Bitmap::ImplConvolutionPass(Bitmap& aNewBitmap, BitmapReadAccess* pReadAcc, int aNumberOfContributions, const double* pWeights, int* pPixels, const int* pCount) +bool Bitmap::ImplConvolutionPass(Bitmap& aNewBitmap, BitmapReadAccess const * pReadAcc, int aNumberOfContributions, const double* pWeights, int* pPixels, const int* pCount) { if (!pReadAcc) return false; diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx index 50229734c508..a3bf2ad6d5b1 100644 --- a/vcl/source/gdi/bitmapex.cxx +++ b/vcl/source/gdi/bitmapex.cxx @@ -648,7 +648,7 @@ void BitmapEx::Draw( OutputDevice* pOutDev, pOutDev->DrawBitmapEx( rDestPt, rDestSize, *this ); } -BitmapEx BitmapEx:: AutoScaleBitmap(BitmapEx & aBitmap, const long aStandardSize) +BitmapEx BitmapEx:: AutoScaleBitmap(BitmapEx const & aBitmap, const long aStandardSize) { Point aEmptyPoint(0,0); double imgposX = 0; diff --git a/vcl/source/gdi/bmpacc.cxx b/vcl/source/gdi/bmpacc.cxx index 84ca679f66dd..e279ea7d0857 100644 --- a/vcl/source/gdi/bmpacc.cxx +++ b/vcl/source/gdi/bmpacc.cxx @@ -119,7 +119,7 @@ BitmapReadAccess::~BitmapReadAccess() { } -void BitmapReadAccess::ImplInitScanBuffer( Bitmap& rBitmap ) +void BitmapReadAccess::ImplInitScanBuffer( Bitmap const & rBitmap ) { if (!mpBuffer) return; diff --git a/vcl/source/gdi/bmpfast.cxx b/vcl/source/gdi/bmpfast.cxx index a610394cf1a6..29737e1617d3 100644 --- a/vcl/source/gdi/bmpfast.cxx +++ b/vcl/source/gdi/bmpfast.cxx @@ -659,7 +659,7 @@ bool ImplBlendFromBitmap( BitmapBuffer& rDst, const BitmapBuffer& rSrc, const Bi return false; } -bool ImplFastBitmapBlending( BitmapWriteAccess& rDstWA, +bool ImplFastBitmapBlending( BitmapWriteAccess const & rDstWA, const BitmapReadAccess& rSrcRA, const BitmapReadAccess& rMskRA, const SalTwoRect& rTR ) { diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx index 723b9b273bf1..1b16d24906de 100644 --- a/vcl/source/gdi/dibtools.cxx +++ b/vcl/source/gdi/dibtools.cxx @@ -347,7 +347,7 @@ namespace } -bool ImplDecodeRLE(sal_uInt8* pBuffer, DIBV5Header& rHeader, BitmapWriteAccess& rAcc, BitmapPalette& rPalette, bool bForceToMonoWhileReading, bool bRLE4) +bool ImplDecodeRLE(sal_uInt8* pBuffer, DIBV5Header const & rHeader, BitmapWriteAccess& rAcc, BitmapPalette& rPalette, bool bForceToMonoWhileReading, bool bRLE4) { Scanline pRLE = pBuffer; Scanline pEndRLE = pBuffer + rHeader.nSizeImage; @@ -1055,7 +1055,7 @@ bool ImplReadDIBFileHeader( SvStream& rIStm, sal_uLong& rOffset ) return bRet; } -bool ImplWriteDIBPalette( SvStream& rOStm, BitmapReadAccess& rAcc ) +bool ImplWriteDIBPalette( SvStream& rOStm, BitmapReadAccess const & rAcc ) { const sal_uInt16 nColors = rAcc.GetPaletteEntryCount(); const sal_uLong nPalSize = nColors * 4UL; @@ -1078,7 +1078,7 @@ bool ImplWriteDIBPalette( SvStream& rOStm, BitmapReadAccess& rAcc ) return rOStm.GetError() == ERRCODE_NONE; } -bool ImplWriteRLE( SvStream& rOStm, BitmapReadAccess& rAcc, bool bRLE4 ) +bool ImplWriteRLE( SvStream& rOStm, BitmapReadAccess const & rAcc, bool bRLE4 ) { const sal_uLong nWidth = rAcc.Width(); const sal_uLong nHeight = rAcc.Height(); @@ -1191,7 +1191,7 @@ bool ImplWriteRLE( SvStream& rOStm, BitmapReadAccess& rAcc, bool bRLE4 ) return rOStm.GetError() == ERRCODE_NONE; } -bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess& rAcc, BitmapReadAccess* pAccAlpha, sal_uLong nCompression, sal_uInt32& rImageSize) +bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess const & rAcc, BitmapReadAccess const * pAccAlpha, sal_uLong nCompression, sal_uInt32& rImageSize) { if(!pAccAlpha && BITFIELDS == nCompression) { @@ -1387,7 +1387,7 @@ bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess& rAcc, BitmapReadAccess* return (!rOStm.GetError()); } -bool ImplWriteDIBBody(const Bitmap& rBitmap, SvStream& rOStm, BitmapReadAccess& rAcc, BitmapReadAccess* pAccAlpha, bool bCompressed) +bool ImplWriteDIBBody(const Bitmap& rBitmap, SvStream& rOStm, BitmapReadAccess const & rAcc, BitmapReadAccess const * pAccAlpha, bool bCompressed) { const MapMode aMapPixel(MapUnit::MapPixel); DIBV5Header aHeader; @@ -1570,7 +1570,7 @@ bool ImplWriteDIBBody(const Bitmap& rBitmap, SvStream& rOStm, BitmapReadAccess& return bRet; } -bool ImplWriteDIBFileHeader(SvStream& rOStm, BitmapReadAccess& rAcc, bool bUseDIBV5) +bool ImplWriteDIBFileHeader(SvStream& rOStm, BitmapReadAccess const & rAcc, bool bUseDIBV5) { const sal_uInt32 nPalCount((rAcc.HasPalette() ? rAcc.GetPaletteEntryCount() : isBitfieldCompression(rAcc.GetScanlineFormat()) ? 3UL : 0UL)); const sal_uInt32 nOffset(14 + (bUseDIBV5 ? DIBV5HEADERSIZE : DIBINFOHEADERSIZE) + nPalCount * 4UL); diff --git a/vcl/source/gdi/impvect.cxx b/vcl/source/gdi/impvect.cxx index 0de467a03d38..50913aeb8037 100644 --- a/vcl/source/gdi/impvect.cxx +++ b/vcl/source/gdi/impvect.cxx @@ -53,7 +53,7 @@ namespace ImplVectorizer ImplVectMap* ImplExpand( BitmapReadAccess* pRAcc, const Color& rColor ); void ImplCalculate( ImplVectMap* pMap, tools::PolyPolygon& rPolyPoly, sal_uInt8 cReduce ); bool ImplGetChain( ImplVectMap* pMap, const Point& rStartPt, ImplChain& rChain ); - bool ImplIsUp( ImplVectMap* pMap, long nY, long nX ); + bool ImplIsUp( ImplVectMap const * pMap, long nY, long nX ); void ImplLimitPolyPoly( tools::PolyPolygon& rPolyPoly ); } @@ -959,7 +959,7 @@ bool ImplGetChain( ImplVectMap* pMap, const Point& rStartPt, ImplChain& rChain return true; } -bool ImplIsUp( ImplVectMap* pMap, long nY, long nX ) +bool ImplIsUp( ImplVectMap const * pMap, long nY, long nX ) { if( pMap->IsDone( nY - 1, nX ) ) return true; diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 5fa7b9a40350..cac8aff63909 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -967,7 +967,7 @@ public: void translate( double tx, double ty ); void invert(); - void append( PDFWriterImpl::PDFPage& rPage, OStringBuffer& rBuffer ); + void append( PDFWriterImpl::PDFPage const & rPage, OStringBuffer& rBuffer ); Point transform( const Point& rPoint ) const; }; @@ -1071,7 +1071,7 @@ void Matrix3::invert() set( fn ); } -void Matrix3::append( PDFWriterImpl::PDFPage& rPage, OStringBuffer& rBuffer ) +void Matrix3::append( PDFWriterImpl::PDFPage const & rPage, OStringBuffer& rBuffer ) { appendDouble( f[0], rBuffer ); rBuffer.append( ' ' ); @@ -2047,7 +2047,7 @@ inline void PDFWriterImpl::appendUnicodeTextStringEncrypt( const OUString& rInSt rOutBuffer.append( ">" ); } -inline void PDFWriterImpl::appendLiteralStringEncrypt( OStringBuffer& rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer ) +inline void PDFWriterImpl::appendLiteralStringEncrypt( OStringBuffer const & rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer ) { rOutBuffer.append( "(" ); sal_Int32 nChars = rInString.getLength(); @@ -2906,7 +2906,7 @@ sal_Int32 PDFWriterImpl::emitBuiltinFont( const PdfBuiltinFontFace* pFD, sal_Int return nFontObject; } -std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitSystemFont( const PhysicalFontFace* pFont, EmbedFont& rEmbed ) +std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitSystemFont( const PhysicalFontFace* pFont, EmbedFont const & rEmbed ) { std::map< sal_Int32, sal_Int32 > aRet; @@ -6283,7 +6283,7 @@ void PDFWriterImpl::registerGlyphs( int nGlyphs, const GlyphItem** pGlyphs, sal_Int32* pGlyphWidths, sal_Ucs* pCodeUnits, - sal_Int32* pCodeUnitsPerGlyph, + sal_Int32 const * pCodeUnitsPerGlyph, sal_uInt8* pMappedGlyphs, sal_Int32* pMappedFontObjects, const PhysicalFontFace* pFallbackFonts[] ) diff --git a/vcl/source/gdi/pdfwriter_impl.hxx b/vcl/source/gdi/pdfwriter_impl.hxx index 50c7e157b29f..97666d0cefd4 100644 --- a/vcl/source/gdi/pdfwriter_impl.hxx +++ b/vcl/source/gdi/pdfwriter_impl.hxx @@ -818,10 +818,10 @@ i12626 void appendLiteralStringEncrypt( const OUString& rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer, rtl_TextEncoding nEnc = RTL_TEXTENCODING_ASCII_US ); void appendLiteralStringEncrypt( const OString& rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer ); - void appendLiteralStringEncrypt( OStringBuffer& rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer ); + void appendLiteralStringEncrypt( OStringBuffer const & rInString, const sal_Int32 nInObjectNumber, OStringBuffer& rOutBuffer ); /* creates fonts and subsets that will be emitted later */ - void registerGlyphs(int nGlyphs, const GlyphItem** pGlyphs, sal_Int32* pGlpyhWidths, sal_Ucs* pCodeUnits, sal_Int32* pCodeUnitsPerGlyph, sal_uInt8* pMappedGlyphs, sal_Int32* pMappedFontObjects, const PhysicalFontFace* pFallbackFonts[]); + void registerGlyphs(int nGlyphs, const GlyphItem** pGlyphs, sal_Int32* pGlpyhWidths, sal_Ucs* pCodeUnits, sal_Int32 const * pCodeUnitsPerGlyph, sal_uInt8* pMappedGlyphs, sal_Int32* pMappedFontObjects, const PhysicalFontFace* pFallbackFonts[]); /* emits a text object according to the passed layout */ /* TODO: remove rText as soon as SalLayout will change so that rText is not necessary anymore */ @@ -874,7 +874,7 @@ i12626 /* writes a builtin font object and returns its objectid (or 0 in case of failure ) */ sal_Int32 emitBuiltinFont( const PdfBuiltinFontFace*, sal_Int32 nObject ); /* writes a type1 system font object and returns its mapping from font ids to object ids (or 0 in case of failure ) */ - std::map< sal_Int32, sal_Int32 > emitSystemFont( const PhysicalFontFace*, EmbedFont& ); + std::map< sal_Int32, sal_Int32 > emitSystemFont( const PhysicalFontFace*, EmbedFont const & ); /* writes a font descriptor and returns its object id (or 0) */ sal_Int32 emitFontDescriptor( const PhysicalFontFace*, FontSubsetInfo&, sal_Int32 nSubsetID, sal_Int32 nStream ); /* writes a ToUnicode cmap, returns the corresponding stream object */ @@ -1054,12 +1054,12 @@ i12626 void implWriteGradient( const tools::PolyPolygon& rPolyPoly, const Gradient& rGradient, VirtualDevice* pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& ); void implWriteBitmapEx( const Point& rPoint, const Size& rSize, const BitmapEx& rBitmapEx, const Graphic& i_pGraphic, - VirtualDevice* pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& ); + VirtualDevice const * pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& ); // helpers for CCITT 1bit bitmap stream void putG4Bits( sal_uInt32 i_nLength, sal_uInt32 i_nCode, BitStreamState& io_rState ); void putG4Span( long i_nSpan, bool i_bWhitePixel, BitStreamState& io_rState ); - void writeG4Stream( BitmapReadAccess* i_pBitmap ); + void writeG4Stream( BitmapReadAccess const * i_pBitmap ); // color helper functions void appendStrokingColor( const Color& rColor, OStringBuffer& rBuffer ); diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index aa405d3a6b5f..94a3772a00c7 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -66,7 +66,7 @@ void PDFWriterImpl::implWriteGradient( const tools::PolyPolygon& i_rPolyPoly, co } void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSize, const BitmapEx& i_rBitmapEx, const Graphic& i_Graphic, - VirtualDevice* i_pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& i_rContext ) + VirtualDevice const * i_pDummyVDev, const vcl::PDFWriter::PlayMetafileContext& i_rContext ) { if ( !i_rBitmapEx.IsEmpty() && i_rSize.Width() && i_rSize.Height() ) { @@ -1948,7 +1948,7 @@ void PDFWriterImpl::putG4Span( long i_nSpan, bool i_bWhitePixel, BitStreamState& putG4Bits( pTable[i_nSpan].mnCodeBits, pTable[i_nSpan].mnCode, io_rState ); } -void PDFWriterImpl::writeG4Stream( BitmapReadAccess* i_pBitmap ) +void PDFWriterImpl::writeG4Stream( BitmapReadAccess const * i_pBitmap ) { long nW = i_pBitmap->Width(); long nH = i_pBitmap->Height(); diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx index ccc4b50d71e7..e18b8dd878c2 100644 --- a/vcl/source/gdi/pngwrite.cxx +++ b/vcl/source/gdi/pngwrite.cxx @@ -93,7 +93,7 @@ private: void ImplOpenChunk(sal_uLong nChunkType); void ImplWriteChunk(sal_uInt8 nNumb); void ImplWriteChunk(sal_uInt32 nNumb); - void ImplWriteChunk(unsigned char* pSource, sal_uInt32 nDatSize); + void ImplWriteChunk(unsigned char const * pSource, sal_uInt32 nDatSize); }; PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx, @@ -674,7 +674,7 @@ void PNGWriterImpl::ImplWriteChunk (sal_uInt32 nSource) rChunkData.aData.push_back(static_cast(nSource)); } -void PNGWriterImpl::ImplWriteChunk (unsigned char* pSource, sal_uInt32 nDatSize) +void PNGWriterImpl::ImplWriteChunk (unsigned char const * pSource, sal_uInt32 nDatSize) { if (nDatSize) { diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx index d64341ff168a..2ccb80ce2a36 100644 --- a/vcl/source/gdi/print2.cxx +++ b/vcl/source/gdi/print2.cxx @@ -127,7 +127,7 @@ bool DoesActionHandleTransparency( const MetaAction& rAct ) bool checkRect( tools::Rectangle& io_rPrevRect, Color& o_rBgColor, const tools::Rectangle& rCurrRect, - OutputDevice& rMapModeVDev ) + OutputDevice const & rMapModeVDev ) { // shape needs to fully cover previous content, and have uniform // color diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx index a8dc7c504b86..aa28092c38bc 100644 --- a/vcl/source/gdi/print3.cxx +++ b/vcl/source/gdi/print3.cxx @@ -213,7 +213,7 @@ PrinterController::PrinterController( const VclPtr& i_xPrinter ) mpImplData->mxPrinter = i_xPrinter; } -static OUString queryFile( Printer* pPrinter ) +static OUString queryFile( Printer const * pPrinter ) { OUString aResult; @@ -528,7 +528,7 @@ void Printer::ImplPrintJob(const std::shared_ptr& xController FinishPrintJob(xController); } -bool Printer::StartJob( const OUString& i_rJobName, std::shared_ptr& i_xController) +bool Printer::StartJob( const OUString& i_rJobName, std::shared_ptr const & i_xController) { mnError = ERRCODE_NONE; @@ -1201,7 +1201,7 @@ int PrinterController::getFilteredPageCount() return (getPageCountProtected() + (nDiv-1)) / nDiv; } -DrawModeFlags PrinterController::removeTransparencies( GDIMetaFile& i_rIn, GDIMetaFile& o_rOut ) +DrawModeFlags PrinterController::removeTransparencies( GDIMetaFile const & i_rIn, GDIMetaFile& o_rOut ) { DrawModeFlags nRestoreDrawMode = mpImplData->mxPrinter->GetDrawMode(); sal_Int32 nMaxBmpDPIX = mpImplData->mxPrinter->GetDPIX(); diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx index 3b64a33fd6b8..ea01dfb1508d 100644 --- a/vcl/source/gdi/salgdilayout.cxx +++ b/vcl/source/gdi/salgdilayout.cxx @@ -136,7 +136,7 @@ void SalGraphics::mirror( long& x, const OutputDevice *pOutDev ) const } } -void SalGraphics::mirror( long& x, long& nWidth, const OutputDevice *pOutDev, bool bBack ) const +void SalGraphics::mirror( long& x, long nWidth, const OutputDevice *pOutDev, bool bBack ) const { long w; if( pOutDev && pOutDev->GetOutDevType() == OUTDEV_VIRDEV ) diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index 11849a8e3e16..02e0ce27ee69 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -1048,7 +1048,7 @@ MultiSalLayout::~MultiSalLayout() } void MultiSalLayout::AddFallback( SalLayout& rFallback, - ImplLayoutRuns& rFallbackRuns, const PhysicalFontFace* pFallbackFont ) + ImplLayoutRuns const & rFallbackRuns, const PhysicalFontFace* pFallbackFont ) { if( mnLevel >= MAX_FALLBACK ) return; diff --git a/vcl/source/gdi/svmconverter.cxx b/vcl/source/gdi/svmconverter.cxx index fe7cfe2e3509..55087af5fb90 100644 --- a/vcl/source/gdi/svmconverter.cxx +++ b/vcl/source/gdi/svmconverter.cxx @@ -1482,7 +1482,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf ) rIStm.SetEndian( nOldFormat ); } -void SVMConverter::ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf ) +void SVMConverter::ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile const & rMtf ) { sal_uLong nCountPos; vcl::Font aSaveFont; @@ -1524,7 +1524,7 @@ void SVMConverter::ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf ) } } -sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf, +sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile const & rMtf, VirtualDevice& rSaveVDev, bool& rRop_0_1, Color& rLineCol, ::std::stack< Color* >& rLineColStack, rtl_TextEncoding& rActualCharSet ) diff --git a/vcl/source/helper/displayconnectiondispatch.cxx b/vcl/source/helper/displayconnectiondispatch.cxx index 5b3731e93a9f..09a6b00dba2b 100644 --- a/vcl/source/helper/displayconnectiondispatch.cxx +++ b/vcl/source/helper/displayconnectiondispatch.cxx @@ -95,11 +95,11 @@ Any SAL_CALL DisplayConnectionDispatch::getIdentifier() return Any(m_ConnectionIdentifier); } -bool DisplayConnectionDispatch::dispatchEvent( void* pData, int nBytes ) +bool DisplayConnectionDispatch::dispatchEvent( void const * pData, int nBytes ) { SolarMutexReleaser aRel; - Sequence< sal_Int8 > aSeq( static_cast(pData), nBytes ); + Sequence< sal_Int8 > aSeq( static_cast(pData), nBytes ); Any aEvent; aEvent <<= aSeq; ::std::list< css::uno::Reference< XEventHandler > > handlers; diff --git a/vcl/source/helper/lazydelete.cxx b/vcl/source/helper/lazydelete.cxx index e3f2b7dc0809..f035ea2dc8c6 100644 --- a/vcl/source/helper/lazydelete.cxx +++ b/vcl/source/helper/lazydelete.cxx @@ -54,7 +54,7 @@ void LazyDelete::flush() } // specialized is_less function for Window -bool LazyDeletor::is_less( vcl::Window* left, vcl::Window* right ) +bool LazyDeletor::is_less( vcl::Window const * left, vcl::Window const * right ) { return left != right && right->IsChild( left, true ); } diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx index 967ce24bd018..092888a9b8a5 100644 --- a/vcl/source/image/ImplImageTree.cxx +++ b/vcl/source/image/ImplImageTree.cxx @@ -193,7 +193,7 @@ ImplImageTree::~ImplImageTree() { } -std::vector ImplImageTree::getPaths(OUString const & name, LanguageTag& rLanguageTag) +std::vector ImplImageTree::getPaths(OUString const & name, LanguageTag const & rLanguageTag) { std::vector sPaths; @@ -322,7 +322,7 @@ bool loadDiskCachedVersion(OUString const & sVariant, ImageRequestParameters& rP return true; } -void cacheBitmapToDisk(OUString const & sVariant, ImageRequestParameters& rParameters) +void cacheBitmapToDisk(OUString const & sVariant, ImageRequestParameters const & rParameters) { OUString sUrl(createIconCacheUrl(rParameters.msStyle, sVariant, rParameters.msName)); vcl::PNGWriter aWriter(rParameters.mrBitmap); diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx index 122ddde80a99..071435544097 100644 --- a/vcl/source/outdev/bitmap.cxx +++ b/vcl/source/outdev/bitmap.cxx @@ -1350,10 +1350,10 @@ namespace inline BitmapColor AlphaBlend( int nX, int nY, const long nMapX, const long nMapY, - BitmapReadAccess* pP, - BitmapReadAccess* pA, - BitmapReadAccess* pB, - BitmapWriteAccess* pAlphaW, + BitmapReadAccess const * pP, + BitmapReadAccess const * pA, + BitmapReadAccess const * pB, + BitmapWriteAccess const * pAlphaW, sal_uInt8& nResAlpha ) { BitmapColor aDstCol,aSrcCol; @@ -1387,8 +1387,8 @@ bool OutputDevice::BlendBitmap( Bitmap OutputDevice::BlendBitmapWithAlpha( Bitmap& aBmp, - BitmapReadAccess* pP, - BitmapReadAccess* pA, + BitmapReadAccess const * pP, + BitmapReadAccess const * pA, const tools::Rectangle& aDstRect, const sal_Int32 nOffY, const sal_Int32 nDstHeight, @@ -1483,8 +1483,8 @@ Bitmap OutputDevice::BlendBitmapWithAlpha( Bitmap OutputDevice::BlendBitmap( Bitmap& aBmp, - BitmapReadAccess* pP, - BitmapReadAccess* pA, + BitmapReadAccess const * pP, + BitmapReadAccess const * pA, const sal_Int32 nOffY, const sal_Int32 nDstHeight, const sal_Int32 nOffX, diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx index 427a8d95e595..da95bf17e107 100644 --- a/vcl/source/outdev/textline.cxx +++ b/vcl/source/outdev/textline.cxx @@ -63,7 +63,7 @@ void OutputDevice::ImplDrawWavePixel( long nOriginX, long nOriginY, long nCurX, long nCurY, short nOrientation, SalGraphics* pGraphics, - OutputDevice* pOutDev, + OutputDevice const * pOutDev, bool bDrawPixAsRect, long nPixWidth, long nPixHeight ) { diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx index 4ccd07fd9566..00cfe7ef03fd 100644 --- a/vcl/source/uitest/logger.cxx +++ b/vcl/source/uitest/logger.cxx @@ -45,7 +45,7 @@ void UITestLogger::logCommand(const OUString& rAction) namespace { // most likely this should be recursive -bool child_windows_have_focus(VclPtr& xUIElement) +bool child_windows_have_focus(VclPtr const & xUIElement) { sal_Int32 nCount = xUIElement->GetChildCount(); for (sal_Int32 i = 0; i < nCount; ++i) @@ -60,7 +60,7 @@ bool child_windows_have_focus(VclPtr& xUIElement) } -void UITestLogger::logAction(VclPtr& xUIElement, VclEventId nEvent) +void UITestLogger::logAction(VclPtr const & xUIElement, VclEventId nEvent) { if (!mbValid) return; @@ -90,7 +90,7 @@ void UITestLogger::log(const OUString& rString) maStream.WriteLine(OUStringToOString(rString, RTL_TEXTENCODING_UTF8)); } -void UITestLogger::logKeyInput(VclPtr& xUIElement, const KeyEvent& rEvent) +void UITestLogger::logKeyInput(VclPtr const & xUIElement, const KeyEvent& rEvent) { if (!mbValid) return; diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx index 70637a0e8a66..5d7132787ea3 100644 --- a/vcl/source/uitest/uiobject.cxx +++ b/vcl/source/uitest/uiobject.cxx @@ -77,7 +77,7 @@ OUString UIObject::get_action(VclEventId /*nEvent*/) const namespace { -bool isDialogWindow(vcl::Window* pWindow) +bool isDialogWindow(vcl::Window const * pWindow) { WindowType nType = pWindow->GetType(); // DIALOG to MODALDIALOG @@ -94,7 +94,7 @@ bool isDialogWindow(vcl::Window* pWindow) return false; } -bool isTopWindow(vcl::Window* pWindow) +bool isTopWindow(vcl::Window const * pWindow) { WindowType eType = pWindow->GetType(); return eType == WindowType::FLOATINGWINDOW; @@ -389,7 +389,7 @@ vcl::Window* findChild(vcl::Window* pParent, const OUString& rID) return nullptr; } -void addChildren(vcl::Window* pParent, std::set& rChildren) +void addChildren(vcl::Window const * pParent, std::set& rChildren) { if (!pParent) return; diff --git a/vcl/source/window/accmgr.cxx b/vcl/source/window/accmgr.cxx index 2959f75f81dc..d357988f8d08 100644 --- a/vcl/source/window/accmgr.cxx +++ b/vcl/source/window/accmgr.cxx @@ -44,7 +44,7 @@ bool ImplAccelManager::InsertAccel( Accelerator* pAccel ) return true; } -void ImplAccelManager::RemoveAccel( Accelerator* pAccel ) +void ImplAccelManager::RemoveAccel( Accelerator const * pAccel ) { // do we have a list ? if ( !mpAccelList ) diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx index 85f790b53523..7f48267a9499 100644 --- a/vcl/source/window/brdwin.cxx +++ b/vcl/source/window/brdwin.cxx @@ -174,7 +174,7 @@ void ImplBorderWindowView::ImplInitTitle(ImplBorderFrameData* pData) } } -BorderWindowHitTest ImplBorderWindowView::ImplHitTest( ImplBorderFrameData* pData, const Point& rPos ) +BorderWindowHitTest ImplBorderWindowView::ImplHitTest( ImplBorderFrameData const * pData, const Point& rPos ) { ImplBorderWindow* pBorderWindow = pData->mpBorderWindow; @@ -289,7 +289,7 @@ bool ImplBorderWindowView::ImplMouseMove( ImplBorderFrameData* pData, const Mous return true; } -OUString ImplBorderWindowView::ImplRequestHelp( ImplBorderFrameData* pData, +OUString ImplBorderWindowView::ImplRequestHelp( ImplBorderFrameData const * pData, const Point& rPos, tools::Rectangle& rHelpRect ) { diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 6d930abaab30..e869039f666d 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -1827,7 +1827,7 @@ namespace { //return true for window types which exist in vcl but are not themselves //represented in the .ui format, i.e. only their children exist. - bool isConsideredGtkPseudo(vcl::Window *pWindow) + bool isConsideredGtkPseudo(vcl::Window const *pWindow) { return pWindow->GetType() == WindowType::TABPAGE; } diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 1573e37dded8..d77da75f23be 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -238,7 +238,7 @@ void Accelerator::GenerateAutoMnemonicsOnHierarchy(vcl::Window* pWindow) } } -static VclButtonBox* getActionArea(Dialog *pDialog) +static VclButtonBox* getActionArea(Dialog const *pDialog) { VclButtonBox *pButtonBox = nullptr; if (pDialog->isLayoutEnabled()) @@ -256,7 +256,7 @@ static VclButtonBox* getActionArea(Dialog *pDialog) return pButtonBox; } -static vcl::Window* getActionAreaButtonList(Dialog *pDialog) +static vcl::Window* getActionAreaButtonList(Dialog const *pDialog) { VclButtonBox* pButtonBox = getActionArea(pDialog); if (pButtonBox) @@ -264,7 +264,7 @@ static vcl::Window* getActionAreaButtonList(Dialog *pDialog) return pDialog->GetWindow(GetWindowType::FirstChild); } -static PushButton* ImplGetDefaultButton( Dialog* pDialog ) +static PushButton* ImplGetDefaultButton( Dialog const * pDialog ) { vcl::Window* pChild = getActionAreaButtonList(pDialog); while ( pChild ) @@ -282,7 +282,7 @@ static PushButton* ImplGetDefaultButton( Dialog* pDialog ) return nullptr; } -static PushButton* ImplGetOKButton( Dialog* pDialog ) +static PushButton* ImplGetOKButton( Dialog const * pDialog ) { vcl::Window* pChild = getActionAreaButtonList(pDialog); while ( pChild ) @@ -296,7 +296,7 @@ static PushButton* ImplGetOKButton( Dialog* pDialog ) return nullptr; } -static PushButton* ImplGetCancelButton( Dialog* pDialog ) +static PushButton* ImplGetCancelButton( Dialog const * pDialog ) { vcl::Window* pChild = getActionAreaButtonList(pDialog); @@ -994,7 +994,7 @@ long Dialog::GetResult() const return mpDialogImpl->mnResult; } -void Dialog::EndAllDialogs( vcl::Window* pParent ) +void Dialog::EndAllDialogs( vcl::Window const * pParent ) { ImplSVData* pSVData = ImplGetSVData(); Dialog* pTempModDialog; diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx index ac8e47d833bc..703b547423ce 100644 --- a/vcl/source/window/dlgctrl.cxx +++ b/vcl/source/window/dlgctrl.cxx @@ -516,7 +516,7 @@ void Window::ImplControlFocus( GetFocusFlags nFlags ) namespace { - bool isSuitableDestination(vcl::Window *pWindow) + bool isSuitableDestination(vcl::Window const *pWindow) { return (pWindow && isVisibleInLayout(pWindow) && isEnabledInLayout(pWindow) && pWindow->IsInputEnabled() && diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx index 3ed68fc7a1ec..0f2f7126826c 100644 --- a/vcl/source/window/dockingarea.cxx +++ b/vcl/source/window/dockingarea.cxx @@ -68,7 +68,7 @@ void DockingAreaWindow::DataChanged( const DataChangedEvent& rDCEvt ) } } -static void ImplInvalidateMenubar( DockingAreaWindow* pThis ) +static void ImplInvalidateMenubar( DockingAreaWindow const * pThis ) { // due to a possible common gradient covering menubar and top dockingarea // the menubar must be repainted if the top dockingarea changes size or visibility diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx index a26a48507b6e..2c43b0cffc2a 100644 --- a/vcl/source/window/dockmgr.cxx +++ b/vcl/source/window/dockmgr.cxx @@ -398,7 +398,7 @@ void DockingManager::RemoveWindow( const vcl::Window *pWindow ) } } -void DockingManager::SetPosSizePixel( vcl::Window *pWindow, long nX, long nY, +void DockingManager::SetPosSizePixel( vcl::Window const *pWindow, long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags ) { @@ -813,7 +813,7 @@ void ImplDockingWindowWrapper::Tracking( const TrackingEvent& rTEvt ) } } -void ImplDockingWindowWrapper::StartDocking( const Point& rPoint, tools::Rectangle& rRect ) +void ImplDockingWindowWrapper::StartDocking( const Point& rPoint, tools::Rectangle const & rRect ) { DockingData data( rPoint, rRect, IsFloatingMode() ); diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx index 00662ac57722..b6f6c3771f7b 100644 --- a/vcl/source/window/event.cxx +++ b/vcl/source/window/event.cxx @@ -358,7 +358,7 @@ void Window::RemoveUserEvent( ImplSVEvent * nUserEvent ) } -static MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, vcl::Window* pSource, vcl::Window* pDest ) +static MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, vcl::Window const * pSource, vcl::Window const * pDest ) { // the mouse event occurred in a different window, we need to translate the coordinates of // the mouse cursor within that (source) window to the coordinates the mouse cursor would diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index af32ca98dab2..212dc4e4d600 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -2246,7 +2246,7 @@ short MessageDialog::get_response(const vcl::Window *pWindow) const return m_pUIBuilder->get_response(pWindow); } -void MessageDialog::setButtonHandlers(VclButtonBox *pButtonBox) +void MessageDialog::setButtonHandlers(VclButtonBox const *pButtonBox) { assert(pButtonBox); for (vcl::Window* pChild = pButtonBox->GetWindow(GetWindowType::FirstChild); pChild; @@ -2285,7 +2285,7 @@ void MessageDialog::setButtonHandlers(VclButtonBox *pButtonBox) } } -void MessageDialog::SetMessagesWidths(vcl::Window *pParent, +void MessageDialog::SetMessagesWidths(vcl::Window const *pParent, VclMultiLineEdit *pPrimaryMessage, VclMultiLineEdit *pSecondaryMessage) { if (pSecondaryMessage) diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index ca8536d63a9a..e97113907a2b 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -1273,7 +1273,7 @@ void Menu::SetAccessible(const css::uno::Reference CreateAccessible() override; diff --git a/vcl/source/window/menuwindow.cxx b/vcl/source/window/menuwindow.cxx index baa81fbbdb99..8abfe172af9d 100644 --- a/vcl/source/window/menuwindow.cxx +++ b/vcl/source/window/menuwindow.cxx @@ -37,7 +37,7 @@ static sal_uLong ImplChangeTipTimeout( sal_uLong nTimeout, vcl::Window *pWindow return nRet; } -bool MenuWindow::ImplHandleHelpEvent(vcl::Window* pMenuWindow, Menu* pMenu, sal_uInt16 nHighlightedItem, +bool MenuWindow::ImplHandleHelpEvent(vcl::Window* pMenuWindow, Menu const * pMenu, sal_uInt16 nHighlightedItem, const HelpEvent& rHEvt, const tools::Rectangle &rHighlightRect) { if( ! pMenu ) diff --git a/vcl/source/window/menuwindow.hxx b/vcl/source/window/menuwindow.hxx index 8fa78e138007..f60d8f85e454 100644 --- a/vcl/source/window/menuwindow.hxx +++ b/vcl/source/window/menuwindow.hxx @@ -52,7 +52,7 @@ class MenuWindow { protected: /// Show the appropriate help tooltip. - static bool ImplHandleHelpEvent(vcl::Window* pMenuWindow, Menu* pMenu, sal_uInt16 nHighlightedItem, + static bool ImplHandleHelpEvent(vcl::Window* pMenuWindow, Menu const * pMenu, sal_uInt16 nHighlightedItem, const HelpEvent& rHEvt, const tools::Rectangle &rHighlightRect); }; diff --git a/vcl/source/window/mnemonicengine.cxx b/vcl/source/window/mnemonicengine.cxx index 6901d1aa4ed1..a110bb5bd642 100644 --- a/vcl/source/window/mnemonicengine.cxx +++ b/vcl/source/window/mnemonicengine.cxx @@ -38,7 +38,7 @@ namespace vcl namespace { - const void* lcl_getEntryForMnemonic( IMnemonicEntryList& _rEntryList, sal_Unicode _cMnemonic, bool& _rbAmbiguous ) + const void* lcl_getEntryForMnemonic( IMnemonicEntryList const & _rEntryList, sal_Unicode _cMnemonic, bool& _rbAmbiguous ) { _rbAmbiguous = false; diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index 2fc2ae29971f..f5ab502de3f6 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -309,10 +309,10 @@ void PaintHelper::DoPaint(const vcl::Region* pRegion) namespace vcl { -void RenderTools::DrawSelectionBackground(vcl::RenderContext& rRenderContext, vcl::Window& rWindow, +void RenderTools::DrawSelectionBackground(vcl::RenderContext& rRenderContext, vcl::Window const & rWindow, const tools::Rectangle& rRect, sal_uInt16 nHighlight, bool bChecked, bool bDrawBorder, bool bDrawExtBorderOnly, - Color* pSelectionTextColor, long nCornerRadius, Color* pPaintColor) + Color* pSelectionTextColor, long nCornerRadius, Color const * pPaintColor) { if (rRect.IsEmpty()) return; @@ -505,7 +505,7 @@ void Window::PushPaintHelper(PaintHelper *pHelper, vcl::RenderContext& rRenderCo pHelper->SetPaintRect(aPaintRect); } -void Window::PopPaintHelper(PaintHelper *pHelper) +void Window::PopPaintHelper(PaintHelper const *pHelper) { if (mpWindowImpl->mpWinData) { diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx index 5c9567f47d61..80b5e6a0fa57 100644 --- a/vcl/source/window/syswin.cxx +++ b/vcl/source/window/syswin.cxx @@ -588,7 +588,7 @@ static OString ImplWindowStateToStr(const WindowStateData& rData) return rStrBuf.makeStringAndClear(); } -void SystemWindow::ImplMoveToScreen( long& io_rX, long& io_rY, long i_nWidth, long i_nHeight, vcl::Window* i_pConfigureWin ) +void SystemWindow::ImplMoveToScreen( long& io_rX, long& io_rY, long i_nWidth, long i_nHeight, vcl::Window const * i_pConfigureWin ) { tools::Rectangle aScreenRect; if( !Application::IsUnifiedDisplay() ) diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index c7fe44fd6406..2a1bf3f95567 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -2959,7 +2959,7 @@ void ToolBox::ImplDrawItem(vcl::RenderContext& rRenderContext, ImplToolItems::si } } -void ToolBox::ImplDrawFloatwinBorder(vcl::RenderContext& rRenderContext, ImplToolItem* pItem) +void ToolBox::ImplDrawFloatwinBorder(vcl::RenderContext& rRenderContext, ImplToolItem const * pItem) { if ( !pItem->maRect.IsEmpty() ) { @@ -4598,7 +4598,7 @@ bool ToolBox::ImplActivateItem( vcl::KeyCode aKeyCode ) return bRet; } -bool ImplCloseLastPopup( vcl::Window *pParent ) +bool ImplCloseLastPopup( vcl::Window const *pParent ) { // close last popup toolbox (see also: // ImplHandleMouseFloatMode(...) in winproc.cxx ) @@ -4854,7 +4854,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt ) } // returns the current toolbox line of the item -ToolBox::ImplToolItems::size_type ToolBox::ImplGetItemLine( ImplToolItem* pCurrentItem ) +ToolBox::ImplToolItems::size_type ToolBox::ImplGetItemLine( ImplToolItem const * pCurrentItem ) { ImplToolItems::const_iterator it = mpData->m_aItems.begin(); ImplToolItems::size_type nLine = 1; diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 9f31fc185e29..6efe34aa1899 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -1179,7 +1179,7 @@ void Window::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* p GetAccessibleParentWindow()->CallEventListeners( VclEventId::WindowChildCreated, this ); } -void Window::ImplInitAppFontData( vcl::Window* pWindow ) +void Window::ImplInitAppFontData( vcl::Window const * pWindow ) { ImplSVData* pSVData = ImplGetSVData(); long nTextHeight = pWindow->GetTextHeight(); @@ -1349,7 +1349,7 @@ void Window::ImplInitResolutionSettings() } } -void Window::ImplPointToLogic(vcl::RenderContext& rRenderContext, vcl::Font& rFont) const +void Window::ImplPointToLogic(vcl::RenderContext const & rRenderContext, vcl::Font& rFont) const { Size aSize = rFont.GetFontSize(); @@ -1369,7 +1369,7 @@ void Window::ImplPointToLogic(vcl::RenderContext& rRenderContext, vcl::Font& rFo rFont.SetFontSize(aSize); } -void Window::ImplLogicToPoint(vcl::RenderContext& rRenderContext, vcl::Font& rFont) const +void Window::ImplLogicToPoint(vcl::RenderContext const & rRenderContext, vcl::Font& rFont) const { Size aSize = rFont.GetFontSize(); @@ -2164,7 +2164,7 @@ void Window::SetPointFont(vcl::RenderContext& rRenderContext, const vcl::Font& r rRenderContext.SetFont(aFont); } -vcl::Font Window::GetPointFont(vcl::RenderContext& rRenderContext) const +vcl::Font Window::GetPointFont(vcl::RenderContext const & rRenderContext) const { vcl::Font aFont = rRenderContext.GetFont(); ImplLogicToPoint(rRenderContext, aFont); diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 05834661936a..352967ca10bd 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -624,7 +624,7 @@ Size Window::CalcOutputSize( const Size& rWinSz ) const return aSz; } -vcl::Font Window::GetDrawPixelFont(OutputDevice* pDev) const +vcl::Font Window::GetDrawPixelFont(OutputDevice const * pDev) const { vcl::Font aFont = GetPointFont(*const_cast(this)); Size aFontSize = aFont.GetFontSize(); @@ -634,7 +634,7 @@ vcl::Font Window::GetDrawPixelFont(OutputDevice* pDev) const return aFont; } -long Window::GetDrawPixel( OutputDevice* pDev, long nPixels ) const +long Window::GetDrawPixel( OutputDevice const * pDev, long nPixels ) const { long nP = nPixels; if ( pDev->GetOutDevType() != OUTDEV_WINDOW ) @@ -1329,7 +1329,7 @@ void Window::SetOutputSizePixel( const Size& rNewSize ) //as dirty for the size remains unchanged, but layout changed circumstances namespace { - bool queue_ungrouped_resize(vcl::Window *pOrigWindow) + bool queue_ungrouped_resize(vcl::Window const *pOrigWindow) { bool bSomeoneCares = false; diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index 4f5e11a6df21..e48546029050 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -186,7 +186,7 @@ static void ImplHandleMouseHelpRequest( vcl::Window* pChild, const Point& rMouse } } -static void ImplSetMousePointer( vcl::Window* pChild ) +static void ImplSetMousePointer( vcl::Window const * pChild ) { ImplSVData* pSVData = ImplGetSVData(); if ( pSVData->maHelpData.mbExtHelpMode ) @@ -195,8 +195,8 @@ static void ImplSetMousePointer( vcl::Window* pChild ) pChild->ImplGetFrame()->SetPointer( pChild->ImplGetMousePointer() ); } -static bool ImplCallCommand( const VclPtr& pChild, CommandEventId nEvt, void* pData = nullptr, - bool bMouse = false, Point* pPos = nullptr ) +static bool ImplCallCommand( const VclPtr& pChild, CommandEventId nEvt, void const * pData = nullptr, + bool bMouse = false, Point const * pPos = nullptr ) { Point aPos; if ( pPos ) @@ -1562,7 +1562,7 @@ static void ImplHandlePaint( vcl::Window* pWindow, const tools::Rectangle& rBoun } } -static void KillOwnPopups( vcl::Window* pWindow ) +static void KillOwnPopups( vcl::Window const * pWindow ) { ImplSVData* pSVData = ImplGetSVData(); vcl::Window *pParent = pWindow->ImplGetWindowImpl()->mpFrameWindow; @@ -1678,7 +1678,7 @@ static void ImplHandleMoveResize( vcl::Window* pWindow, long nNewWidth, long nNe ImplHandleResize( pWindow, nNewWidth, nNewHeight ); } -static void ImplActivateFloatingWindows( vcl::Window* pWindow, bool bActive ) +static void ImplActivateFloatingWindows( vcl::Window const * pWindow, bool bActive ) { // First check all overlapping windows vcl::Window* pTempWindow = pWindow->ImplGetWindowImpl()->mpFirstOverlap; @@ -1929,7 +1929,7 @@ static void ImplHandleUserEvent( ImplSVEvent* pSVEvent ) } } -static MouseEventModifiers ImplGetMouseMoveMode( SalMouseEvent* pEvent ) +static MouseEventModifiers ImplGetMouseMoveMode( SalMouseEvent const * pEvent ) { MouseEventModifiers nMode = MouseEventModifiers::NONE; if ( !pEvent->mnCode ) @@ -1941,7 +1941,7 @@ static MouseEventModifiers ImplGetMouseMoveMode( SalMouseEvent* pEvent ) return nMode; } -static MouseEventModifiers ImplGetMouseButtonMode( SalMouseEvent* pEvent ) +static MouseEventModifiers ImplGetMouseButtonMode( SalMouseEvent const * pEvent ) { MouseEventModifiers nMode = MouseEventModifiers::NONE; if ( pEvent->mnButton == MOUSE_LEFT ) @@ -1999,7 +1999,7 @@ inline bool ImplHandleSalMouseButtonUp( vcl::Window* pWindow, SalMouseEvent* pEv ImplGetMouseButtonMode( pEvent ) ); } -static bool ImplHandleMenuEvent( vcl::Window* pWindow, SalMenuEvent* pEvent, SalEvent nEvent ) +static bool ImplHandleMenuEvent( vcl::Window const * pWindow, SalMenuEvent* pEvent, SalEvent nEvent ) { // Find SystemWindow and its Menubar and let it dispatch the command bool bRet = false; diff --git a/vcl/unx/generic/app/gendisp.cxx b/vcl/unx/generic/app/gendisp.cxx index 0c7e00bc0a12..c1cd5a23112e 100644 --- a/vcl/unx/generic/app/gendisp.cxx +++ b/vcl/unx/generic/app/gendisp.cxx @@ -97,7 +97,7 @@ void SalGenericDisplay::SendInternalEvent( SalFrame* pFrame, void* pData, SalEve PostUserEvent(); // wakeup the concrete mainloop } -void SalGenericDisplay::CancelInternalEvent( SalFrame* pFrame, void* pData, SalEvent nEvent ) +void SalGenericDisplay::CancelInternalEvent( SalFrame const * pFrame, void const * pData, SalEvent nEvent ) { osl::MutexGuard g( m_aEventGuard ); if( ! m_aUserEvents.empty() ) diff --git a/vcl/unx/generic/app/i18n_cb.cxx b/vcl/unx/generic/app/i18n_cb.cxx index 9b8a51a693f3..361c6d032689 100644 --- a/vcl/unx/generic/app/i18n_cb.cxx +++ b/vcl/unx/generic/app/i18n_cb.cxx @@ -225,7 +225,7 @@ Preedit_InsertText(preedit_text_t *pText, XIMText *pInsertText, int where) // Handle the change of attributes in a preedit_draw_callback void -Preedit_UpdateAttributes ( preedit_text_t* ptext, XIMFeedback* feedback, +Preedit_UpdateAttributes ( preedit_text_t* ptext, XIMFeedback const * feedback, int from, int amount ) { if ( (from + amount) > (int)ptext->nLength ) diff --git a/vcl/unx/generic/app/i18n_ic.cxx b/vcl/unx/generic/app/i18n_ic.cxx index ec2f1a5fbf7d..3def7932dbc7 100644 --- a/vcl/unx/generic/app/i18n_ic.cxx +++ b/vcl/unx/generic/app/i18n_ic.cxx @@ -361,7 +361,7 @@ SalI18N_InputContext::SalI18N_InputContext ( SalFrame *pFrame ) : // unmap it the hard way void -SalI18N_InputContext::Unmap( SalFrame* pFrame ) +SalI18N_InputContext::Unmap( SalFrame const * pFrame ) { if ( maContext != nullptr ) { @@ -590,7 +590,7 @@ SalI18N_InputContext::SetICFocus( SalFrame* pFocusFrame ) } void -SalI18N_InputContext::UnsetICFocus( SalFrame* pFrame ) +SalI18N_InputContext::UnsetICFocus( SalFrame const * pFrame ) { I18NStatus& rStatus( I18NStatus::get() ); if( rStatus.getParent() == pFrame ) diff --git a/vcl/unx/generic/app/wmadaptor.cxx b/vcl/unx/generic/app/wmadaptor.cxx index 85152168aa3c..701c4ffbb3a4 100644 --- a/vcl/unx/generic/app/wmadaptor.cxx +++ b/vcl/unx/generic/app/wmadaptor.cxx @@ -1731,7 +1731,7 @@ void GnomeWMAdaptor::enableAlwaysOnTop( X11SalFrame* pFrame, bool bEnable ) cons /* * WMAdaptor::changeReferenceFrame */ -void WMAdaptor::changeReferenceFrame( X11SalFrame* pFrame, X11SalFrame* pReferenceFrame ) const +void WMAdaptor::changeReferenceFrame( X11SalFrame* pFrame, X11SalFrame const * pReferenceFrame ) const { if( ! ( pFrame->nStyle_ & SalFrameStyleFlags::PLUG ) && ! pFrame->IsOverrideRedirect() @@ -2228,7 +2228,7 @@ void NetWMAdaptor::setUserTime( X11SalFrame* i_pFrame, long i_nUserTime ) const /* * WMAdaptor::setPID */ -void WMAdaptor::setPID( X11SalFrame* i_pFrame ) const +void WMAdaptor::setPID( X11SalFrame const * i_pFrame ) const { if( m_aWMAtoms[NET_WM_PID] ) { @@ -2248,14 +2248,14 @@ void WMAdaptor::setPID( X11SalFrame* i_pFrame ) const /* * WMAdaptor::setClientMachine */ -void WMAdaptor::setClientMachine( X11SalFrame* i_pFrame ) const +void WMAdaptor::setClientMachine( X11SalFrame const * i_pFrame ) const { OString aWmClient( OUStringToOString( GetGenericData()->GetHostname(), RTL_TEXTENCODING_ASCII_US ) ); XTextProperty aClientProp = { reinterpret_cast(const_cast(aWmClient.getStr())), XA_STRING, 8, sal::static_int_cast( aWmClient.getLength() ) }; XSetWMClientMachine( m_pDisplay, i_pFrame->GetShellWindow(), &aClientProp ); } -void WMAdaptor::answerPing( X11SalFrame* i_pFrame, XClientMessageEvent* i_pEvent ) const +void WMAdaptor::answerPing( X11SalFrame const * i_pFrame, XClientMessageEvent const * i_pEvent ) const { if( m_aWMAtoms[NET_WM_PING] && i_pEvent->message_type == m_aWMAtoms[ WM_PROTOCOLS ] && diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx index a4d08b8da1d0..5738e2140238 100644 --- a/vcl/unx/generic/dtrans/X11_selection.cxx +++ b/vcl/unx/generic/dtrans/X11_selection.cxx @@ -1878,7 +1878,7 @@ bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent& rNotify ) return bHandled; } -bool SelectionManager::handleSendPropertyNotify( XPropertyEvent& rNotify ) +bool SelectionManager::handleSendPropertyNotify( XPropertyEvent const & rNotify ) { osl::MutexGuard aGuard( m_aMutex ); diff --git a/vcl/unx/generic/dtrans/X11_selection.hxx b/vcl/unx/generic/dtrans/X11_selection.hxx index 1aac1ab253a4..12d57a47b378 100644 --- a/vcl/unx/generic/dtrans/X11_selection.hxx +++ b/vcl/unx/generic/dtrans/X11_selection.hxx @@ -369,7 +369,7 @@ namespace x11 { // handle various events bool handleSelectionRequest( XSelectionRequestEvent& rRequest ); - bool handleSendPropertyNotify( XPropertyEvent& rNotify ); + bool handleSendPropertyNotify( XPropertyEvent const & rNotify ); bool handleReceivePropertyNotify( XPropertyEvent& rNotify ); bool handleSelectionNotify( XSelectionEvent& rNotify ); bool handleDragEvent( XEvent& rMessage ); diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx index 3fc0ed875b47..65e5be8c244e 100644 --- a/vcl/unx/generic/fontmanager/fontconfig.cxx +++ b/vcl/unx/generic/fontmanager/fontconfig.cxx @@ -83,7 +83,7 @@ public: void clear(); public: - FcResult LocalizedElementFromPattern(FcPattern* pPattern, FcChar8 **family, + FcResult LocalizedElementFromPattern(FcPattern const * pPattern, FcChar8 **family, const char *elementtype, const char *elementlangtype); //to-do, make private and add some cleaner accessor methods std::unordered_map< OString, OString, OStringHash > m_aFontNameToLocalized; @@ -329,7 +329,7 @@ void FontCfgWrapper::cacheLocalizedFontNames(const FcChar8 *origfontname, const m_aLocalizedToCanonical[OString(reinterpret_cast(bestfontname))] = OString(reinterpret_cast(origfontname)); } -FcResult FontCfgWrapper::LocalizedElementFromPattern(FcPattern* pPattern, FcChar8 **element, +FcResult FontCfgWrapper::LocalizedElementFromPattern(FcPattern const * pPattern, FcChar8 **element, const char *elementtype, const char *elementlangtype) { /* e. g.: ^ FC_FAMILY ^ FC_FAMILYLANG */ FcChar8 *origelement; diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx index 7d9a1d1db526..760d03336849 100644 --- a/vcl/unx/generic/gdi/salbmp.cxx +++ b/vcl/unx/generic/gdi/salbmp.cxx @@ -403,7 +403,7 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB( } XImage* X11SalBitmap::ImplCreateXImage( - SalDisplay *pSalDisp, + SalDisplay const *pSalDisp, SalX11Screen nScreen, long nDepth, const SalTwoRect& rTwoRect @@ -627,7 +627,7 @@ ImplSalDDB* X11SalBitmap::ImplGetDDB( } if( mpCache ) - mpCache->ImplRemove( const_cast(this) ); + mpCache->ImplRemove( this ); SalTwoRect aTwoRect( rTwoRect ); if( aTwoRect.mnSrcX < 0 ) @@ -1111,7 +1111,7 @@ void ImplSalBitmapCache::ImplAdd( X11SalBitmap* pBmp ) maBmpList.push_back( new ImplBmpObj( pBmp ) ); } -void ImplSalBitmapCache::ImplRemove( X11SalBitmap* pBmp ) +void ImplSalBitmapCache::ImplRemove( X11SalBitmap const * pBmp ) { for( BmpList_impl::iterator it = maBmpList.begin(); diff --git a/vcl/unx/generic/gdi/xrender_peer.hxx b/vcl/unx/generic/gdi/xrender_peer.hxx index d7387b9f69a1..ff1d7cc963d8 100644 --- a/vcl/unx/generic/gdi/xrender_peer.hxx +++ b/vcl/unx/generic/gdi/xrender_peer.hxx @@ -46,7 +46,7 @@ public: XRenderPictFormat* FindStandardFormat(int nFormat) const; // the methods below are thin wrappers for the XRENDER API - XRenderPictFormat* FindVisualFormat( Visual* ) const; + XRenderPictFormat* FindVisualFormat( Visual const * ) const; Picture CreatePicture( Drawable, const XRenderPictFormat*, unsigned long nDrawable, const XRenderPictureAttributes* ) const; void ChangePicture( Picture, unsigned long nValueMask, @@ -74,7 +74,7 @@ inline XRenderPictFormat* XRenderPeer::FindStandardFormat(int nFormat) const return XRenderFindStandardFormat(mpDisplay, nFormat); } -inline XRenderPictFormat* XRenderPeer::FindVisualFormat( Visual* pVisual ) const +inline XRenderPictFormat* XRenderPeer::FindVisualFormat( Visual const * pVisual ) const { return XRenderFindVisualFormat ( mpDisplay, pVisual ); } diff --git a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx index 6950d3b354ea..36ddf3df64cd 100644 --- a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx +++ b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx @@ -490,7 +490,7 @@ FreetypeFont::~FreetypeFont() } -void FreetypeFont::GetFontMetric(ImplFontMetricDataRef& rxTo) const +void FreetypeFont::GetFontMetric(ImplFontMetricDataRef const & rxTo) const { rxTo->FontAttributes::operator =(mpFontInfo->GetFontAttributes()); diff --git a/vcl/unx/generic/glyphs/glyphcache.cxx b/vcl/unx/generic/glyphs/glyphcache.cxx index 82bdc64bd12d..5ca4abed98fe 100644 --- a/vcl/unx/generic/glyphs/glyphcache.cxx +++ b/vcl/unx/generic/glyphs/glyphcache.cxx @@ -276,7 +276,7 @@ void GlyphCache::GarbageCollect() } } -inline void GlyphCache::UsingGlyph( GlyphData& rGlyphData ) +inline void GlyphCache::UsingGlyph( GlyphData const & rGlyphData ) { rGlyphData.SetLruValue( mnLruIndex++ ); } diff --git a/vcl/unx/generic/print/genprnpsp.cxx b/vcl/unx/generic/print/genprnpsp.cxx index bef1a71fea1d..40a12e5e6aa1 100644 --- a/vcl/unx/generic/print/genprnpsp.cxx +++ b/vcl/unx/generic/print/genprnpsp.cxx @@ -366,7 +366,7 @@ static bool createPdf( const OUString& rToFile, const OUString& rFromFile, const */ void SalGenericInstance::configurePspInfoPrinter(PspSalInfoPrinter *pPrinter, - SalPrinterQueueInfo* pQueueInfo, ImplJobSetup* pJobSetup) + SalPrinterQueueInfo const * pQueueInfo, ImplJobSetup* pJobSetup) { if( pJobSetup ) { @@ -1268,7 +1268,7 @@ class PrinterUpdate static void doUpdate(); DECL_STATIC_LINK( PrinterUpdate, UpdateTimerHdl, Timer*, void ); public: - static void update(SalGenericInstance &rInstance); + static void update(SalGenericInstance const &rInstance); static void jobStarted() { nActiveJobs++; } static void jobEnded(); }; @@ -1296,7 +1296,7 @@ IMPL_STATIC_LINK_NOARG( PrinterUpdate, UpdateTimerHdl, Timer*, void ) pPrinterUpdateIdle->Start(); } -void PrinterUpdate::update(SalGenericInstance &rInstance) +void PrinterUpdate::update(SalGenericInstance const &rInstance) { if( Application::GetSettings().GetMiscSettings().GetDisablePrinting() ) return; diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx index 9d9de0f446e0..1ebf35aefca0 100644 --- a/vcl/unx/generic/print/genpspgraphics.cxx +++ b/vcl/unx/generic/print/genpspgraphics.cxx @@ -69,8 +69,8 @@ private: Scanline mpScanAccess; sal_PtrDiff mnScanOffset; - sal_uInt32 ColorOf (BitmapColor& rColor) const; - sal_uInt8 GrayOf (BitmapColor& rColor) const; + sal_uInt32 ColorOf (BitmapColor const & rColor) const; + sal_uInt8 GrayOf (BitmapColor const & rColor) const; public: @@ -174,7 +174,7 @@ SalPrinterBmp::GetDepth () const } sal_uInt32 -SalPrinterBmp::ColorOf (BitmapColor& rColor) const +SalPrinterBmp::ColorOf (BitmapColor const & rColor) const { if (rColor.IsIndex()) return ColorOf (mpBmpBuffer->maPalette[rColor.GetIndex()]); @@ -185,7 +185,7 @@ SalPrinterBmp::ColorOf (BitmapColor& rColor) const } sal_uInt8 -SalPrinterBmp::GrayOf (BitmapColor& rColor) const +SalPrinterBmp::GrayOf (BitmapColor const & rColor) const { if (rColor.IsIndex()) return GrayOf (mpBmpBuffer->maPalette[rColor.GetIndex()]); diff --git a/vcl/unx/generic/printer/cupsmgr.cxx b/vcl/unx/generic/printer/cupsmgr.cxx index 440f33e0edba..d96a85c4a38d 100644 --- a/vcl/unx/generic/printer/cupsmgr.cxx +++ b/vcl/unx/generic/printer/cupsmgr.cxx @@ -88,7 +88,7 @@ struct GetPPDAttribs unref(); } - OString waitResult( TimeValue *pDelay ) + OString waitResult( TimeValue const *pDelay ) { m_pSyncMutex->release(); diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index cbe1ecbd7367..8140019c7e27 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -102,7 +102,7 @@ static ::Window hPresentationWindow = None, hPresFocusWindow = None; static ::std::list< ::Window > aPresentationReparentList; static int nVisibleFloats = 0; -static void doReparentPresentationDialogues( SalDisplay* pDisplay ) +static void doReparentPresentationDialogues( SalDisplay const * pDisplay ) { GetGenericData()->ErrorTrapPush(); while( !aPresentationReparentList.empty() ) @@ -308,7 +308,7 @@ static void CreateNetWmAppIcon( sal_uInt16 nIcon, NetWmIconData& netwm_icon ) netwm_icon.resize( pos ); } -static bool lcl_SelectAppIconPixmap( SalDisplay *pDisplay, SalX11Screen nXScreen, +static bool lcl_SelectAppIconPixmap( SalDisplay const *pDisplay, SalX11Screen nXScreen, sal_uInt16 nIcon, sal_uInt16 iconSize, Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) { @@ -3314,7 +3314,7 @@ long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent ) return True; } -long X11SalFrame::HandleFocusEvent( XFocusChangeEvent *pEvent ) +long X11SalFrame::HandleFocusEvent( XFocusChangeEvent const *pEvent ) { // ReflectionX in Windows mode changes focus while mouse is grabbed if( nVisibleFloats > 0 && GetDisplay()->getWMAdaptor()->getWindowManagerName() == "ReflectionX Windows" ) diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx index a57051f4c577..fab7902d588c 100644 --- a/vcl/unx/gtk/a11y/atkutil.cxx +++ b/vcl/unx/gtk/a11y/atkutil.cxx @@ -457,7 +457,7 @@ static void handle_toolbox_highlight(vcl::Window *pWindow) notify_toolbox_item_focus(pToolBox); } -static void handle_toolbox_highlightoff(vcl::Window *pWindow) +static void handle_toolbox_highlightoff(vcl::Window const *pWindow) { ToolBox* pToolBoxParent = dynamic_cast< ToolBox* >( pWindow->GetParent() ); diff --git a/vcl/unx/gtk/a11y/atkwindow.cxx b/vcl/unx/gtk/a11y/atkwindow.cxx index 24b464299de2..581e81d23db4 100644 --- a/vcl/unx/gtk/a11y/atkwindow.cxx +++ b/vcl/unx/gtk/a11y/atkwindow.cxx @@ -37,7 +37,7 @@ static void (* window_real_initialize) (AtkObject *obj, gpointer data) = nullptr static void (* window_real_finalize) (GObject *obj) = nullptr; static void -init_from_window( AtkObject *accessible, vcl::Window *pWindow ) +init_from_window( AtkObject *accessible, vcl::Window const *pWindow ) { static AtkRole aDefaultRole = ATK_ROLE_INVALID; diff --git a/vcl/unx/gtk/gtkdata.cxx b/vcl/unx/gtk/gtkdata.cxx index 6bb9f04e3bae..29f7d33be75e 100644 --- a/vcl/unx/gtk/gtkdata.cxx +++ b/vcl/unx/gtk/gtkdata.cxx @@ -162,14 +162,14 @@ GdkFilterReturn GtkSalDisplay::filterGdkEvent( GdkXEvent* sys_event ) return aFilterReturn; } -void GtkSalDisplay::screenSizeChanged( GdkScreen* pScreen ) +void GtkSalDisplay::screenSizeChanged( GdkScreen const * pScreen ) { m_pSys->countScreenMonitors(); if (pScreen) emitDisplayChanged(); } -void GtkSalDisplay::monitorsChanged( GdkScreen* pScreen ) +void GtkSalDisplay::monitorsChanged( GdkScreen const * pScreen ) { m_pSys->countScreenMonitors(); if (pScreen) @@ -671,7 +671,7 @@ extern "C" { } static gboolean sal_gtk_timeout_expired( SalGtkTimeoutSource *pTSource, - gint *nTimeoutMS, GTimeVal *pTimeNow ) + gint *nTimeoutMS, GTimeVal const *pTimeNow ) { glong nDeltaSec = pTSource->aFireTime.tv_sec - pTimeNow->tv_sec; glong nDeltaUSec = pTSource->aFireTime.tv_usec - pTimeNow->tv_usec; diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx index f004a055d544..716be616af0b 100644 --- a/vcl/unx/gtk/gtksalmenu.cxx +++ b/vcl/unx/gtk/gtksalmenu.cxx @@ -686,7 +686,7 @@ void GtkSalMenu::ReturnFocus() mbReturnFocusToDocument = false; } -gboolean GtkSalMenu::SignalKey(GdkEventKey* pEvent) +gboolean GtkSalMenu::SignalKey(GdkEventKey const * pEvent) { if (pEvent->keyval == GDK_KEY_F6) { @@ -905,7 +905,7 @@ void GtkSalMenu::NativeCheckItem( unsigned nSection, unsigned nItemPos, MenuItem g_free( aCommand ); } -void GtkSalMenu::NativeSetEnableItem( gchar* aCommand, gboolean bEnable ) +void GtkSalMenu::NativeSetEnableItem( gchar const * aCommand, gboolean bEnable ) { SolarMutexGuard aGuard; GLOActionGroup* pActionGroup = G_LO_ACTION_GROUP( mpActionGroup ); diff --git a/vcl/unx/gtk/salnativewidgets-gtk.cxx b/vcl/unx/gtk/salnativewidgets-gtk.cxx index 36f7f2e1d0a6..6b87eef78f54 100644 --- a/vcl/unx/gtk/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/salnativewidgets-gtk.cxx @@ -228,7 +228,7 @@ static tools::Rectangle NWGetTabItemRect( SalX11Screen nScreen, tools::Rectangle static tools::Rectangle NWGetEditBoxPixmapRect( SalX11Screen nScreen, tools::Rectangle aAreaRect ); -static void NWPaintOneEditBox( SalX11Screen nScreen, GdkDrawable * gdkDrawable, GdkRectangle *gdkRect, +static void NWPaintOneEditBox( SalX11Screen nScreen, GdkDrawable * gdkDrawable, GdkRectangle const *gdkRect, ControlType nType, ControlPart nPart, tools::Rectangle aEditBoxRect, ControlState nState, const ImplControlValue& aValue, const OUString& rCaption ); @@ -2321,7 +2321,7 @@ static tools::Rectangle NWGetEditBoxPixmapRect(SalX11Screen nScreen, */ static void NWPaintOneEditBox( SalX11Screen nScreen, GdkDrawable * gdkDrawable, - GdkRectangle * gdkRect, + GdkRectangle const * gdkRect, ControlType nType, ControlPart, tools::Rectangle aEditBoxRect, diff --git a/vcl/unx/gtk3/gtk3gtkdata.cxx b/vcl/unx/gtk3/gtk3gtkdata.cxx index ba56d5e6ec7f..5308d57be70f 100644 --- a/vcl/unx/gtk3/gtk3gtkdata.cxx +++ b/vcl/unx/gtk3/gtk3gtkdata.cxx @@ -123,14 +123,14 @@ GdkFilterReturn GtkSalDisplay::filterGdkEvent( GdkXEvent* ) return GDK_FILTER_CONTINUE; } -void GtkSalDisplay::screenSizeChanged( GdkScreen* pScreen ) +void GtkSalDisplay::screenSizeChanged( GdkScreen const * pScreen ) { m_pSys->countScreenMonitors(); if (pScreen) emitDisplayChanged(); } -void GtkSalDisplay::monitorsChanged( GdkScreen* pScreen ) +void GtkSalDisplay::monitorsChanged( GdkScreen const * pScreen ) { m_pSys->countScreenMonitors(); if (pScreen) @@ -633,7 +633,7 @@ extern "C" { } static gboolean sal_gtk_timeout_expired( SalGtkTimeoutSource *pTSource, - gint *nTimeoutMS, GTimeVal *pTimeNow ) + gint *nTimeoutMS, GTimeVal const *pTimeNow ) { glong nDeltaSec = pTSource->aFireTime.tv_sec - pTimeNow->tv_sec; glong nDeltaUSec = pTSource->aFireTime.tv_usec - pTimeNow->tv_usec; diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index 78fba5ec4d62..5b746b623aaa 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -2658,7 +2658,7 @@ gboolean GtkSalFrame::signalButton( GtkWidget*, GdkEventButton* pEvent, gpointer return true; } -void GtkSalFrame::LaunchAsyncScroll(GdkEvent* pEvent) +void GtkSalFrame::LaunchAsyncScroll(GdkEvent const * pEvent) { //if we don't match previous pending states, flush that queue now if (!m_aPendingScrollEvents.empty() && pEvent->scroll.state != m_aPendingScrollEvents.back()->scroll.state) diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index 5ceb6a7fd042..def90351b09b 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -1280,7 +1280,7 @@ public: } } - static BitmapEx AlphaRecovery(OutputDevice &rDev, Point aPt, BitmapEx &aSrc) + static BitmapEx AlphaRecovery(OutputDevice &rDev, Point aPt, BitmapEx const &aSrc) { // Compositing onto 2x colors beyond our control ScopedVclPtrInstance< VirtualDevice > aWhite; -- cgit v1.2.3