summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-15 10:58:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-15 12:43:21 +0200
commit3a1a448ac4a04137705ea0aaf0163358fd2e5549 (patch)
tree0a7eeeebda959b1b8e7e1af99453c3f8b0541852 /editeng
parent88a6ac9f75a4375b72111af5a3e004bef4226455 (diff)
loplugin:constvars
Change-Id: I9b35d6333afa6b305bf73fc55a7e60c8365674e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122134 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/eerdll.cxx2
-rw-r--r--editeng/source/editeng/impedit3.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/eerdll.cxx b/editeng/source/editeng/eerdll.cxx
index 5e6929ec33a1..2ec4519b6446 100644
--- a/editeng/source/editeng/eerdll.cxx
+++ b/editeng/source/editeng/eerdll.cxx
@@ -152,7 +152,7 @@ DefItems::DefItems()
DefItems::~DefItems()
{
- for (auto& rItem : mvDefItems)
+ for (const auto& rItem : mvDefItems)
delete rItem;
}
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index 7b4a96412181..94d838a4de8a 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -730,7 +730,7 @@ bool ImpEditEngine::CreateLines( sal_Int32 nPara, sal_uInt32 nStartPosY )
EditLine* pLine = &rParaPortion.GetLines()[nLine];
- static tools::Rectangle aZeroArea { Point(), Point() };
+ static const tools::Rectangle aZeroArea { Point(), Point() };
tools::Rectangle aBulletArea( aZeroArea );
if ( !nLine )
{