diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-30 15:28:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-30 19:00:57 +0200 |
commit | 7183b3ba237dc7718501acb512d5ae1c5d0d5f6b (patch) | |
tree | ea8b5535f6dbed45f54fa27c8dd492a327644626 /include/vcl/textview.hxx | |
parent | b1f085d66c1d354485edec527fda6abf539af325 (diff) |
loplugin:constmethod handle more cases
remove some of the naming limitations, and handle pointer parameters
better.
I only let the plugin run up till vcl/
Change-Id: Ice916e0157031ab531c47f10778f406b07966251
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122892
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/textview.hxx')
-rw-r--r-- | include/vcl/textview.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/textview.hxx b/include/vcl/textview.hxx index 116d4d59e1e5..0983fa8eb660 100644 --- a/include/vcl/textview.hxx +++ b/include/vcl/textview.hxx @@ -93,7 +93,7 @@ class VCL_DLLPUBLIC TextView final : public vcl::unohelper::DragAndDropClient TextSelection const & ImpMoveCursor( const KeyEvent& rKeyEvent ); TextPaM ImpDelete( sal_uInt8 nMode, sal_uInt8 nDelMode ); - bool IsInSelection( const TextPaM& rPaM ); + bool IsInSelection( const TextPaM& rPaM ) const; void ImpPaint(vcl::RenderContext& rRenderContext, const Point& rStartPos, tools::Rectangle const* pPaintArea, TextSelection const* pSelection); void ImpPaint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect); @@ -105,7 +105,7 @@ class VCL_DLLPUBLIC TextView final : public vcl::unohelper::DragAndDropClient void ImpShowDDCursor(); bool ImplTruncateNewText( OUString& rNewText ) const; - bool ImplCheckTextLen( const OUString& rNewText ); + bool ImplCheckTextLen( const OUString& rNewText ) const; // DragAndDropClient virtual void dragGestureRecognized( const css::datatransfer::dnd::DragGestureEvent& dge ) override; @@ -141,8 +141,8 @@ public: void SetSelection( const TextSelection& rNewSel, bool bGotoCursor ); bool HasSelection() const; - OUString GetSelected(); - OUString GetSelected( LineEnd aSeparator ); + OUString GetSelected() const; + OUString GetSelected( LineEnd aSeparator ) const; void DeleteSelected(); void InsertText( const OUString& rNew ); |