From 102a94c9de3c8c4d1326022dd14a300d6b72e222 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 20 Aug 2019 15:53:25 +0200 Subject: loplugin:constvars in sw Change-Id: Ic1f11240561ba8fffc51710c9a49933c3ab3849d Reviewed-on: https://gerrit.libreoffice.org/77826 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/uno/unotxdoc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/uibase/uno') diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 19d88c7e018b..3299a6f043e9 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3306,7 +3306,7 @@ OUString SwXTextDocument::getTrackedChanges() SwRects* pRects(&aCursor); std::vector aRects; - for (SwRect& rNextRect : *pRects) + for (const SwRect& rNextRect : *pRects) aRects.push_back(rNextRect.SVRect().toString()); const OString sRects = comphelper::string::join("; ", aRects); -- cgit