summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-05-22 13:49:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-05-22 16:35:20 +0200
commitc18e2ea2a52fc171c50fcb22d431e94c6aececc5 (patch)
treea63721b18626947e5278a51feb7fd64604e80eee /svtools
parent7cf4bcef41448218f76fa1e974f541e13dc03023 (diff)
New loplugin:data
...following up on 1453c2c8f13bac64ecd1981af7cebf1c421808ac "prefer vector::data to &vector[0]" Change-Id: I7c113747d92d144a521d49b89384dd8bf1215c01 Reviewed-on: https://gerrit.libreoffice.org/72765 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ruler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 8e39fe9beb8b..0263deacac31 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2568,7 +2568,7 @@ void Ruler::SetBorders( sal_uInt32 aBorderArraySize, const RulerBorder* pBorderA
else
{
sal_uInt32 i = aBorderArraySize;
- const RulerBorder* pAry1 = &mpData->pBorders[0];
+ const RulerBorder* pAry1 = mpData->pBorders.data();
const RulerBorder* pAry2 = pBorderArray;
while ( i )
{
@@ -2609,7 +2609,7 @@ void Ruler::SetIndents( sal_uInt32 aIndentArraySize, const RulerIndent* pIndentA
else
{
sal_uInt32 i = aIndentArraySize;
- const RulerIndent* pAry1 = &mpData->pIndents[0];
+ const RulerIndent* pAry1 = mpData->pIndents.data();
const RulerIndent* pAry2 = pIndentArray;
while ( i )
{