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 --- include/vcl/GraphicNativeMetadata.hxx | 2 +- include/vcl/bitmap.hxx | 6 +++--- include/vcl/bitmapaccess.hxx | 2 +- include/vcl/bitmapex.hxx | 2 +- include/vcl/button.hxx | 2 +- include/vcl/dialog.hxx | 2 +- include/vcl/dockwin.hxx | 4 ++-- include/vcl/edit.hxx | 8 ++++---- include/vcl/field.hxx | 8 ++++---- include/vcl/filter/pdfdocument.hxx | 6 +++--- include/vcl/graphicfilter.hxx | 4 ++-- include/vcl/help.hxx | 2 +- include/vcl/layout.hxx | 4 ++-- include/vcl/lazydelete.hxx | 2 +- include/vcl/longcurr.hxx | 2 +- include/vcl/menu.hxx | 6 +++--- include/vcl/outdev.hxx | 10 +++++----- include/vcl/print.hxx | 4 ++-- include/vcl/svapp.hxx | 8 ++++---- include/vcl/syswin.hxx | 2 +- include/vcl/texteng.hxx | 2 +- include/vcl/textview.hxx | 4 ++-- include/vcl/toolbox.hxx | 4 ++-- include/vcl/uitest/logger.hxx | 4 ++-- include/vcl/window.hxx | 18 +++++++++--------- include/vcl/wmf.hxx | 2 +- 26 files changed, 60 insertions(+), 60 deletions(-) (limited to 'include/vcl') diff --git a/include/vcl/GraphicNativeMetadata.hxx b/include/vcl/GraphicNativeMetadata.hxx index 7f249bcc4913..4ae29276205a 100644 --- a/include/vcl/GraphicNativeMetadata.hxx +++ b/include/vcl/GraphicNativeMetadata.hxx @@ -30,7 +30,7 @@ public: GraphicNativeMetadata(); ~GraphicNativeMetadata(); - bool read(Graphic& rGraphic); + bool read(Graphic const & rGraphic); sal_uInt16 getRotation() { return mRotation;} }; diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 80b58ca509cc..115f47664aa7 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -664,7 +664,7 @@ public: SAL_DLLPRIVATE bool ImplConvolutionPass( Bitmap& aNewBitmap, - BitmapReadAccess* pReadAcc, + BitmapReadAccess const * pReadAcc, int aNumberOfContributions, const double* pWeights, int* pPixels, @@ -672,8 +672,8 @@ public: SAL_DLLPRIVATE bool ImplMakeMono( sal_uInt8 cThreshold ); SAL_DLLPRIVATE bool ImplMakeGreyscales( sal_uInt16 nGreyscales ); - SAL_DLLPRIVATE bool ImplConvertUp( sal_uInt16 nBitCount, Color* pExtColor = nullptr ); - SAL_DLLPRIVATE bool ImplConvertDown( sal_uInt16 nBitCount, Color* pExtColor = nullptr ); + SAL_DLLPRIVATE bool ImplConvertUp( sal_uInt16 nBitCount, Color const * pExtColor = nullptr ); + SAL_DLLPRIVATE bool ImplConvertDown( sal_uInt16 nBitCount, Color const * pExtColor = nullptr ); SAL_DLLPRIVATE bool ImplConvertGhosted(); SAL_DLLPRIVATE bool ImplDitherMatrix(); SAL_DLLPRIVATE bool ImplDitherFloyd(); diff --git a/include/vcl/bitmapaccess.hxx b/include/vcl/bitmapaccess.hxx index d61d172e2166..b7995f46943e 100644 --- a/include/vcl/bitmapaccess.hxx +++ b/include/vcl/bitmapaccess.hxx @@ -238,7 +238,7 @@ protected: FncGetPixel mFncGetPixel; FncSetPixel mFncSetPixel; - SAL_DLLPRIVATE void ImplInitScanBuffer( Bitmap& rBitmap ); + SAL_DLLPRIVATE void ImplInitScanBuffer( Bitmap const & rBitmap ); SAL_DLLPRIVATE bool ImplSetAccessPointers( ScanlineFormat nFormat ); public: diff --git a/include/vcl/bitmapex.hxx b/include/vcl/bitmapex.hxx index 58395fe7d0e4..705109e2203a 100644 --- a/include/vcl/bitmapex.hxx +++ b/include/vcl/bitmapex.hxx @@ -419,7 +419,7 @@ public: */ BitmapEx ModifyBitmapEx( const basegfx::BColorModifierStack& rBColorModifierStack) const; - static BitmapEx AutoScaleBitmap( BitmapEx & aBitmap, const long aStandardSize ); + static BitmapEx AutoScaleBitmap( BitmapEx const & aBitmap, const long aStandardSize ); /// populate from a canvas implementation bool Create( diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx index c1e433edae14..b469060661bf 100644 --- a/include/vcl/button.hxx +++ b/include/vcl/button.hxx @@ -119,7 +119,7 @@ class VCL_DLLPUBLIC PushButton : public Button public: SAL_DLLPRIVATE void ImplSetDefButton( bool bSet ); SAL_DLLPRIVATE void ImplDrawPushButtonFrame(vcl::RenderContext& rRenderContext, tools::Rectangle& rRect, DrawButtonFlags nStyle); - SAL_DLLPRIVATE static bool ImplHitTestPushButton(vcl::Window* pDev, const Point& rPos); + SAL_DLLPRIVATE static bool ImplHitTestPushButton(vcl::Window const * pDev, const Point& rPos); SAL_DLLPRIVATE bool ImplIsDefButton() const; explicit PushButton( vcl::Window* pParent, WinBits nStyle = 0 ); diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx index 8c63e57c7415..49737fdc6057 100644 --- a/include/vcl/dialog.hxx +++ b/include/vcl/dialog.hxx @@ -129,7 +129,7 @@ public: void EndDialog( long nResult = 0 ); - static void EndAllDialogs( vcl::Window* pParent ); + static void EndAllDialogs( vcl::Window const * pParent ); void GetDrawWindowBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder, sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const; diff --git a/include/vcl/dockwin.hxx b/include/vcl/dockwin.hxx index a3e60b7f433f..98cded028533 100644 --- a/include/vcl/dockwin.hxx +++ b/include/vcl/dockwin.hxx @@ -119,7 +119,7 @@ public: bool ImplStartDocking( const Point& rPos ); // those methods actually call the corresponding handlers - void StartDocking( const Point& rPos, tools::Rectangle& rRect ); + void StartDocking( const Point& rPos, tools::Rectangle const & rRect ); bool Docking( const Point& rPos, tools::Rectangle& rRect ); void EndDocking( const tools::Rectangle& rRect, bool bFloatMode ); bool PrepareToggleFloatingMode(); @@ -191,7 +191,7 @@ public: // required because those methods are not virtual in Window (!!!) and must // be availbale from the toolkit - void SetPosSizePixel( vcl::Window *pWin, long nX, long nY, + void SetPosSizePixel( vcl::Window const *pWin, long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags ); tools::Rectangle GetPosSizePixel( const vcl::Window *pWin ); diff --git a/include/vcl/edit.hxx b/include/vcl/edit.hxx index caf94fbee1fe..632e9b751ee7 100644 --- a/include/vcl/edit.hxx +++ b/include/vcl/edit.hxx @@ -110,7 +110,7 @@ private: SAL_DLLPRIVATE void ImplInsertText( const OUString& rStr, const Selection* pNewSelection = nullptr, bool bIsUserInput = false ); SAL_DLLPRIVATE static OUString ImplGetValidString( const OUString& rString ); SAL_DLLPRIVATE void ImplClearBackground(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRectangle, long nXStart, long nXEnd); - SAL_DLLPRIVATE void ImplPaintBorder(vcl::RenderContext& rRenderContext, long nXStart, long nXEnd); + SAL_DLLPRIVATE void ImplPaintBorder(vcl::RenderContext const & rRenderContext, long nXStart, long nXEnd); SAL_DLLPRIVATE void ImplShowCursor( bool bOnlyIfVisible = true ); SAL_DLLPRIVATE void ImplAlign(); SAL_DLLPRIVATE void ImplAlignAndPaint(); @@ -120,8 +120,8 @@ private: SAL_DLLPRIVATE void ImplHideDDCursor(); SAL_DLLPRIVATE bool ImplHandleKeyEvent( const KeyEvent& rKEvt ); SAL_DLLPRIVATE void ImplCopyToSelectionClipboard(); - SAL_DLLPRIVATE void ImplCopy(css::uno::Reference& rxClipboard); - SAL_DLLPRIVATE void ImplPaste(css::uno::Reference& rxClipboard); + SAL_DLLPRIVATE void ImplCopy(css::uno::Reference const & rxClipboard); + SAL_DLLPRIVATE void ImplPaste(css::uno::Reference const & rxClipboard); SAL_DLLPRIVATE long ImplGetTextYPosition() const; SAL_DLLPRIVATE css::uno::Reference const & ImplGetInputSequenceChecker(); SAL_DLLPRIVATE static css::uno::Reference ImplGetBreakIterator(); @@ -157,7 +157,7 @@ protected: virtual void ApplySettings(vcl::RenderContext& rRenderContext) override; public: // public because needed in button.cxx - SAL_DLLPRIVATE bool ImplUseNativeBorder(vcl::RenderContext& rRenderContext, WinBits nStyle); + SAL_DLLPRIVATE bool ImplUseNativeBorder(vcl::RenderContext const & rRenderContext, WinBits nStyle); Edit( vcl::Window* pParent, WinBits nStyle = WB_BORDER ); virtual ~Edit() override; diff --git a/include/vcl/field.hxx b/include/vcl/field.hxx index 9a0b32d435fd..3fb0633fe3a6 100644 --- a/include/vcl/field.hxx +++ b/include/vcl/field.hxx @@ -49,7 +49,7 @@ private: bool mbDefaultLocale; protected: - SAL_DLLPRIVATE void ImplSetText( const OUString& rText, Selection* pNewSel = nullptr ); + SAL_DLLPRIVATE void ImplSetText( const OUString& rText, Selection const * pNewSel = nullptr ); SAL_DLLPRIVATE bool ImplGetEmptyFieldValue() const { return mbEmptyFieldValue; } void SetEmptyFieldValueData( bool bValue ) { mbEmptyFieldValue = bValue; } @@ -182,7 +182,7 @@ protected: SAL_DLLPRIVATE bool ImplNumericReformat( const OUString& rStr, sal_Int64& rValue, OUString& rOutStr ); SAL_DLLPRIVATE void ImplNewFieldValue( sal_Int64 nNewValue ); - SAL_DLLPRIVATE void ImplSetUserValue( sal_Int64 nNewValue, Selection* pNewSelection = nullptr ); + SAL_DLLPRIVATE void ImplSetUserValue( sal_Int64 nNewValue, Selection const * pNewSelection = nullptr ); private: SAL_DLLPRIVATE void ImplInit(); @@ -286,7 +286,7 @@ protected: SAL_DLLPRIVATE const Date& ImplGetFieldDate() const { return maFieldDate; } SAL_DLLPRIVATE bool ImplDateReformat( const OUString& rStr, OUString& rOutStr ); SAL_DLLPRIVATE void ImplSetUserDate( const Date& rNewDate, - Selection* pNewSelection = nullptr ); + Selection const * pNewSelection = nullptr ); SAL_DLLPRIVATE OUString ImplGetDateAsText( const Date& rDate ) const; SAL_DLLPRIVATE void ImplNewFieldValue( const Date& rDate ); CalendarWrapper& GetCalendarWrapper() const; @@ -374,7 +374,7 @@ protected: SAL_DLLPRIVATE bool ImplTimeReformat( const OUString& rStr, OUString& rOutStr ); SAL_DLLPRIVATE void ImplNewFieldValue( const tools::Time& rTime ); - SAL_DLLPRIVATE void ImplSetUserTime( const tools::Time& rNewTime, Selection* pNewSelection = nullptr ); + SAL_DLLPRIVATE void ImplSetUserTime( const tools::Time& rNewTime, Selection const * pNewSelection = nullptr ); SAL_DLLPRIVATE bool ImplAllowMalformedInput() const; public: diff --git a/include/vcl/filter/pdfdocument.hxx b/include/vcl/filter/pdfdocument.hxx index 09288326e921..16c4edc81f30 100644 --- a/include/vcl/filter/pdfdocument.hxx +++ b/include/vcl/filter/pdfdocument.hxx @@ -322,13 +322,13 @@ class VCL_DLLPUBLIC PDFDocument /// Write the appearance object as part of signing. sal_Int32 WriteAppearanceObject(); /// Write the annot object as part of signing. - sal_Int32 WriteAnnotObject(PDFObjectElement& rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId); + sal_Int32 WriteAnnotObject(PDFObjectElement const & rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId); /// Write the updated Page object as part of signing. bool WritePageObject(PDFObjectElement& rFirstPage, sal_Int32 nAnnotId); /// Write the updated Catalog object as part of signing. bool WriteCatalogObject(sal_Int32 nAnnotId, PDFReferenceElement*& pRoot); /// Write the updated cross-references as part of signing. - void WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement* pRoot); + void WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement const * pRoot); public: PDFDocument(); @@ -337,7 +337,7 @@ public: /// @name Low-level functions, to be used by PDFElement subclasses. //@{ /// Decode a hex dump. - static std::vector DecodeHexString(PDFHexStringElement* pElement); + static std::vector DecodeHexString(PDFHexStringElement const * pElement); static OString ReadKeyword(SvStream& rStream); static size_t FindStartXRef(SvStream& rStream); void ReadXRef(SvStream& rStream); diff --git a/include/vcl/graphicfilter.hxx b/include/vcl/graphicfilter.hxx index deed307298cf..e41583f899f8 100644 --- a/include/vcl/graphicfilter.hxx +++ b/include/vcl/graphicfilter.hxx @@ -279,7 +279,7 @@ public: SvStream& rStream, sal_uInt16 nFormat = GRFILTER_FORMAT_DONTKNOW, sal_uInt16 * pDeterminedFormat = nullptr, GraphicFilterImportFlags nImportFlags = GraphicFilterImportFlags::NONE, - WmfExternal *pExtHeader = nullptr ); + WmfExternal const *pExtHeader = nullptr ); /// Imports multiple graphics. /// @@ -291,7 +291,7 @@ public: sal_uInt16 nFormat, sal_uInt16 * pDeterminedFormat, GraphicFilterImportFlags nImportFlags, css::uno::Sequence< css::beans::PropertyValue >* pFilterData, - WmfExternal *pExtHeader = nullptr ); + WmfExternal const *pExtHeader = nullptr ); const FilterErrorEx& GetLastError() const { return *pErrorEx;} void ResetLastError(); diff --git a/include/vcl/help.hxx b/include/vcl/help.hxx index cd64b4f669db..cb1c297e9379 100644 --- a/include/vcl/help.hxx +++ b/include/vcl/help.hxx @@ -108,7 +108,7 @@ public: vcl::Window* pParent, const tools::Rectangle& rScreenRect, const OUString& rText); - static void HidePopover(vcl::Window* pParent, sal_uLong nId); + static void HidePopover(vcl::Window const * pParent, sal_uLong nId); }; #endif // INCLUDED_VCL_HELP_HXX diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index 8e9b0e02e381..e9475b3d4630 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -644,7 +644,7 @@ private: OUString m_sPrimaryString; OUString m_sSecondaryString; DECL_DLLPRIVATE_LINK(ButtonHdl, Button *, void); - void setButtonHandlers(VclButtonBox *pButtonBox); + void setButtonHandlers(VclButtonBox const *pButtonBox); short get_response(const vcl::Window *pWindow) const; void create_owned_areas(); @@ -668,7 +668,7 @@ public: virtual ~MessageDialog() override; virtual void dispose() override; - static void SetMessagesWidths(vcl::Window *pParent, VclMultiLineEdit *pPrimaryMessage, + static void SetMessagesWidths(vcl::Window const *pParent, VclMultiLineEdit *pPrimaryMessage, VclMultiLineEdit *pSecondaryMessage); }; diff --git a/include/vcl/lazydelete.hxx b/include/vcl/lazydelete.hxx index 63196185701a..4bc122457279 100644 --- a/include/vcl/lazydelete.hxx +++ b/include/vcl/lazydelete.hxx @@ -115,7 +115,7 @@ namespace vcl /** strict weak ordering function to bring objects to be destroyed lazily in correct order, e.g. for Window objects children before parents */ - static bool is_less( vcl::Window* left, vcl::Window* right ); + static bool is_less( vcl::Window const * left, vcl::Window const * right ); LazyDeletor() { LazyDelete::addDeletor( this ); } virtual ~LazyDeletor() override diff --git a/include/vcl/longcurr.hxx b/include/vcl/longcurr.hxx index 9bcbe3085e40..b7687ae32ce9 100644 --- a/include/vcl/longcurr.hxx +++ b/include/vcl/longcurr.hxx @@ -59,7 +59,7 @@ protected: LongCurrencyFormatter(); private: - friend bool ImplLongCurrencyReformat( const OUString&, BigInt const &, BigInt const &, sal_uInt16, const LocaleDataWrapper&, OUString&, LongCurrencyFormatter& ); + friend bool ImplLongCurrencyReformat( const OUString&, BigInt const &, BigInt const &, sal_uInt16, const LocaleDataWrapper&, OUString&, LongCurrencyFormatter const & ); SAL_DLLPRIVATE void ImpInit(); BigInt mnFieldValue; diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx index ddf12f629c99..10c708f830b5 100644 --- a/include/vcl/menu.hxx +++ b/include/vcl/menu.hxx @@ -179,7 +179,7 @@ protected: SAL_DLLPRIVATE sal_uInt16 ImplGetPrevVisible( sal_uInt16 nPos ) const; SAL_DLLPRIVATE sal_uInt16 ImplGetNextVisible( sal_uInt16 nPos ) const; SAL_DLLPRIVATE void ImplPaint(vcl::RenderContext& rRenderContext, - sal_uInt16 nBorder, long nOffY = 0, MenuItemData* pThisDataOnly = nullptr, + sal_uInt16 nBorder, long nOffY = 0, MenuItemData const * pThisDataOnly = nullptr, bool bHighlighted = false, bool bLayout = false, bool bRollover = false ) const; SAL_DLLPRIVATE void ImplPaintMenuTitle(vcl::RenderContext&, const tools::Rectangle& rRect) const; SAL_DLLPRIVATE void ImplSelect(); @@ -194,11 +194,11 @@ protected: // returns native check and option menu symbol height in rCheckHeight and rRadioHeight // return value is maximum width and height of checkboxes and radiobuttons - SAL_DLLPRIVATE Size ImplGetNativeCheckAndRadioSize(vcl::RenderContext& rRenderContext, long& rCheckHeight, long& rRadioHeight) const; + SAL_DLLPRIVATE Size ImplGetNativeCheckAndRadioSize(vcl::RenderContext const & rRenderContext, long& rCheckHeight, long& rRadioHeight) const; // returns native submenu arrow size and spacing from right border // return value is whether it's supported natively - SAL_DLLPRIVATE static bool ImplGetNativeSubmenuArrowSize(vcl::RenderContext& rRenderContext, Size& rArrowSize, long& rArrowSpacing); + SAL_DLLPRIVATE static bool ImplGetNativeSubmenuArrowSize(vcl::RenderContext const & rRenderContext, Size& rArrowSize, long& rArrowSpacing); SAL_DLLPRIVATE void ImplAddDel( ImplMenuDelData &rDel ); SAL_DLLPRIVATE void ImplRemoveDel( ImplMenuDelData &rDel ); diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 8f02b1928887..2bb258f95213 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -1179,7 +1179,7 @@ private: SAL_DLLPRIVATE void ImplDrawSpecialText( SalLayout& ); SAL_DLLPRIVATE void ImplDrawTextRect( long nBaseX, long nBaseY, long nX, long nY, long nWidth, long nHeight ); - SAL_DLLPRIVATE static void ImplDrawWavePixel( long nOriginX, long nOriginY, long nCurX, long nCurY, short nOrientation, SalGraphics* pGraphics, OutputDevice* pOutDev, + SAL_DLLPRIVATE static void ImplDrawWavePixel( long nOriginX, long nOriginY, long nCurX, long nCurY, short nOrientation, SalGraphics* pGraphics, OutputDevice const * pOutDev, bool bDrawPixAsRect, long nPixWidth, long nPixHeight ); SAL_DLLPRIVATE void ImplDrawWaveLine( long nBaseX, long nBaseY, long nStartX, long nStartY, long nWidth, long nHeight, long nLineWidth, short nOrientation, const Color& rColor ); SAL_DLLPRIVATE void ImplDrawWaveTextLine( long nBaseX, long nBaseY, long nX, long nY, long nWidth, FontLineStyle eTextLine, Color aColor, bool bIsAbove ); @@ -1516,8 +1516,8 @@ private: SAL_DLLPRIVATE Bitmap 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, @@ -1531,8 +1531,8 @@ private: SAL_DLLPRIVATE Bitmap 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, diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index 4de18652f0a8..94e5b9dd6ba0 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -213,7 +213,7 @@ private: SAL_DLLPRIVATE void ImplUpdateFontList(); SAL_DLLPRIVATE void ImplFindPaperFormatForUserSize( JobSetup&, bool bMatchNearest ); - SAL_DLLPRIVATE bool StartJob( const OUString& rJobName, std::shared_ptr& ); + SAL_DLLPRIVATE bool StartJob( const OUString& rJobName, std::shared_ptr const & ); static SAL_DLLPRIVATE ErrCode ImplSalPrinterErrorCodeToVCL( sal_uLong nError ); @@ -559,7 +559,7 @@ public: SAL_DLLPRIVATE css::uno::Sequence< css::beans::PropertyValue > getPageParametersProtected( int i_nPage ) const; - SAL_DLLPRIVATE DrawModeFlags removeTransparencies( GDIMetaFile& i_rIn, GDIMetaFile& o_rOut ); + SAL_DLLPRIVATE DrawModeFlags removeTransparencies( GDIMetaFile const & i_rIn, GDIMetaFile& o_rOut ); SAL_DLLPRIVATE void resetPrinterOptions( bool i_bFileOutput ); }; diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index c108d4b6d992..eddce0abf324 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -758,7 +758,7 @@ public: @see HandleKey */ - static ImplSVEvent * PostKeyEvent( VclEventId nEvent, vcl::Window *pWin, KeyEvent* pKeyEvent ); + static ImplSVEvent * PostKeyEvent( VclEventId nEvent, vcl::Window *pWin, KeyEvent const * pKeyEvent ); /** Send mouse event @@ -766,7 +766,7 @@ public: @param pWin Pointer to window to which the event is sent @param pMouseEvent Mouse event to send */ - static ImplSVEvent * PostMouseEvent( VclEventId nEvent, vcl::Window *pWin, MouseEvent* pMouseEvent ); + static ImplSVEvent * PostMouseEvent( VclEventId nEvent, vcl::Window *pWin, MouseEvent const * pMouseEvent ); /** Remove mouse and keypress events from a window... any also zoom and scroll events if the platform supports it. @@ -874,7 +874,7 @@ public: @returns Pointer to next top window. */ - static vcl::Window* GetNextTopLevelWindow( vcl::Window* pWindow ); + static vcl::Window* GetNextTopLevelWindow( vcl::Window const * pWindow ); /** Return the number of top-level windows being used by the application @@ -1064,7 +1064,7 @@ public: @see InsertAccel */ - static void RemoveAccel( Accelerator* pAccel ); + static void RemoveAccel( Accelerator const * pAccel ); /** Get the number of reserved key codes used by the application. diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx index 57624b659c58..b0528c8f8e4a 100644 --- a/include/vcl/syswin.hxx +++ b/include/vcl/syswin.hxx @@ -175,7 +175,7 @@ public: SAL_DLLPRIVATE bool isDeferredInit() const { return mbIsDefferedInit; } private: - SAL_DLLPRIVATE void ImplMoveToScreen( long& io_rX, long& io_rY, long i_nWidth, long i_nHeight, vcl::Window* i_pConfigureWin ); + SAL_DLLPRIVATE void ImplMoveToScreen( long& io_rX, long& io_rY, long i_nWidth, long i_nHeight, vcl::Window const * i_pConfigureWin ); SAL_DLLPRIVATE void setPosSizeOnContainee(Size aSize, Window &rBox); DECL_DLLPRIVATE_LINK( ImplHandleLayoutTimerHdl, Timer*, void ); diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx index 3ac8244ab45f..3980f0a98452 100644 --- a/include/vcl/texteng.hxx +++ b/include/vcl/texteng.hxx @@ -194,7 +194,7 @@ protected: sal_Int32 GetCharPos( sal_uInt32 nPara, std::vector::size_type nLine, long nDocPosX ); tools::Rectangle GetEditCursor( const TextPaM& rPaM, bool bSpecial, bool bPreferPortionStart = false ); sal_Int32 ImpFindIndex( sal_uInt32 nPortion, const Point& rPosInPara ); - long ImpGetPortionXOffset( sal_uInt32 nPara, TextLine* pLine, std::size_t nTextPortion ); + long ImpGetPortionXOffset( sal_uInt32 nPara, TextLine const * pLine, std::size_t nTextPortion ); long ImpGetXPos( sal_uInt32 nPara, TextLine* pLine, sal_Int32 nIndex, bool bPreferPortionStart = false ); long ImpGetOutputOffset( sal_uInt32 nPara, TextLine* pLine, sal_Int32 nIndex, sal_Int32 nIndex2 ); sal_uInt8 ImpGetRightToLeft( sal_uInt32 nPara, sal_Int32 nPos ); diff --git a/include/vcl/textview.hxx b/include/vcl/textview.hxx index 1d066d225886..76e8e7ccbac5 100644 --- a/include/vcl/textview.hxx +++ b/include/vcl/textview.hxx @@ -139,8 +139,8 @@ public: void Copy(); void Paste(); - void Copy( css::uno::Reference< css::datatransfer::clipboard::XClipboard >& rxClipboard ); - void Paste( css::uno::Reference< css::datatransfer::clipboard::XClipboard >& rxClipboard ); + void Copy( css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & rxClipboard ); + void Paste( css::uno::Reference< css::datatransfer::clipboard::XClipboard > const & rxClipboard ); void Undo(); void Redo(); diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx index a171b6fcc584..7412452e8948 100644 --- a/include/vcl/toolbox.hxx +++ b/include/vcl/toolbox.hxx @@ -193,7 +193,7 @@ private: SAL_DLLPRIVATE bool ImplHandleMouseButtonUp( const MouseEvent& rMEvt, bool bCancel = false ); SAL_DLLPRIVATE void ImplChangeHighlight( ImplToolItem* pItem, bool bNoGrabFocus = false ); SAL_DLLPRIVATE bool ImplChangeHighlightUpDn( bool bUp, bool bNoCycle = false ); - SAL_DLLPRIVATE ImplToolItems::size_type ImplGetItemLine( ImplToolItem* pCurrentItem ); + SAL_DLLPRIVATE ImplToolItems::size_type ImplGetItemLine( ImplToolItem const * pCurrentItem ); SAL_DLLPRIVATE ImplToolItem* ImplGetFirstValidItem( ImplToolItems::size_type nLine ); SAL_DLLPRIVATE bool ImplOpenItem( vcl::KeyCode aKeyCode ); SAL_DLLPRIVATE bool ImplActivateItem( vcl::KeyCode aKeyCode ); @@ -208,7 +208,7 @@ private: SAL_DLLPRIVATE const OUString& ImplGetHelpText( sal_uInt16 nItemId ) const; SAL_DLLPRIVATE Size ImplGetOptimalFloatingSize(); SAL_DLLPRIVATE bool ImplHasExternalMenubutton(); - SAL_DLLPRIVATE void ImplDrawFloatwinBorder(vcl::RenderContext& rRenderContext, ImplToolItem* pItem ); + SAL_DLLPRIVATE void ImplDrawFloatwinBorder(vcl::RenderContext& rRenderContext, ImplToolItem const * pItem ); DECL_DLLPRIVATE_LINK( ImplCallExecuteCustomMenu, void*, void ); DECL_DLLPRIVATE_LINK( ImplUpdateHdl, Timer*, void ); diff --git a/include/vcl/uitest/logger.hxx b/include/vcl/uitest/logger.hxx index 5cf906eb510c..997bc3be866a 100644 --- a/include/vcl/uitest/logger.hxx +++ b/include/vcl/uitest/logger.hxx @@ -26,11 +26,11 @@ public: void logCommand(const OUString& rAction); - void logAction(VclPtr& xUIElement, VclEventId nEvent); + void logAction(VclPtr const & xUIElement, VclEventId nEvent); void log(const OUString& rString); - void logKeyInput(VclPtr& xUIElement, const KeyEvent& rEvent); + void logKeyInput(VclPtr const & xUIElement, const KeyEvent& rEvent); static UITestLogger& getInstance(); diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index a7633f29c109..1422c14e4165 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -472,11 +472,11 @@ public: // transparent background for selected or checked items in toolboxes etc. // + selection Color with a text color complementing the selection background // + rounded edge - static void DrawSelectionBackground(vcl::RenderContext& rRenderContext, vcl::Window& rWindow, + static void DrawSelectionBackground(vcl::RenderContext& rRenderContext, vcl::Window const & rWindow, const tools::Rectangle& rRect, sal_uInt16 nHighlight, bool bChecked, bool bDrawBorder, bool bDrawExtBorderOnly, Color* pSelectionTextColor = nullptr, long nCornerRadius = 0, - Color* pPaintColor = nullptr); + Color const * pPaintColor = nullptr); }; class VCL_DLLPUBLIC Window : public ::OutputDevice @@ -532,7 +532,7 @@ public: DECL_DLLPRIVATE_LINK( ImplHandleResizeTimerHdl, Timer*, void ); - SAL_DLLPRIVATE static void ImplInitAppFontData( vcl::Window* pWindow ); + SAL_DLLPRIVATE static void ImplInitAppFontData( vcl::Window const * pWindow ); SAL_DLLPRIVATE vcl::Window* ImplGetFrameWindow() const; SalFrame* ImplGetFrame() const; @@ -619,7 +619,7 @@ protected: SAL_DLLPRIVATE bool ImplSetClipFlagOverlapWindows( bool bSysObjOnlySmaller = false ); SAL_DLLPRIVATE void PushPaintHelper(PaintHelper* pHelper, vcl::RenderContext& rRenderContext); - SAL_DLLPRIVATE void PopPaintHelper(PaintHelper* pHelper); + SAL_DLLPRIVATE void PopPaintHelper(PaintHelper const * pHelper); private: @@ -645,8 +645,8 @@ private: SAL_DLLPRIVATE void ImplInitResolutionSettings(); - SAL_DLLPRIVATE void ImplPointToLogic(vcl::RenderContext& rRenderContext, vcl::Font& rFont) const; - SAL_DLLPRIVATE void ImplLogicToPoint(vcl::RenderContext& rRenderContext, vcl::Font& rFont) const; + SAL_DLLPRIVATE void ImplPointToLogic(vcl::RenderContext const & rRenderContext, vcl::Font& rFont) const; + SAL_DLLPRIVATE void ImplLogicToPoint(vcl::RenderContext const & rRenderContext, vcl::Font& rFont) const; SAL_DLLPRIVATE bool ImplSysObjClip( const vcl::Region* pOldRegion ); SAL_DLLPRIVATE void ImplUpdateSysObjChildrenClip(); @@ -892,10 +892,10 @@ public: void NotifyAllChildren( DataChangedEvent& rDCEvt ); void SetPointFont(vcl::RenderContext& rRenderContext, const vcl::Font& rFont); - vcl::Font GetPointFont(vcl::RenderContext& rRenderContext) const; + vcl::Font GetPointFont(vcl::RenderContext const & rRenderContext) const; void SetZoomedPointFont(vcl::RenderContext& rRenderContext, const vcl::Font& rFont); - long GetDrawPixel( ::OutputDevice* pDev, long nPixels ) const; - vcl::Font GetDrawPixelFont( ::OutputDevice* pDev ) const; + long GetDrawPixel( ::OutputDevice const * pDev, long nPixels ) const; + vcl::Font GetDrawPixelFont( ::OutputDevice const * pDev ) const; void SetControlFont(); void SetControlFont( const vcl::Font& rFont ); diff --git a/include/vcl/wmf.hxx b/include/vcl/wmf.hxx index c172cd45e86b..d17dc7ec7fce 100644 --- a/include/vcl/wmf.hxx +++ b/include/vcl/wmf.hxx @@ -29,7 +29,7 @@ struct WmfExternal; VCL_DLLPUBLIC bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF ); -VCL_DLLPUBLIC bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem* pConfigItem, bool bPlaceable = true ); +VCL_DLLPUBLIC bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem const * pConfigItem, bool bPlaceable = true ); bool ConvertGDIMetaFileToEMF(const GDIMetaFile & rMTF, SvStream & rTargetStream); -- cgit