summaryrefslogtreecommitdiff
path: root/canvas/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-01 10:12:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-01 13:20:30 +0200
commita3e29642b9c118674ad88785500ce164aa103de9 (patch)
treecc56b0087f4e3529b75865f6bad0f9e5a2119f1d /canvas/source
parent720af01132d9e623389b82b5251c1687240d3569 (diff)
loplugin:data (clang-cl)
Change-Id: Ib8b2bc1c5f7b27a646036ce23cae2b6a06edd038 Reviewed-on: https://gerrit.libreoffice.org/79922 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'canvas/source')
-rw-r--r--canvas/source/directx/dx_canvashelper.cxx2
-rw-r--r--canvas/source/directx/dx_canvashelper_texturefill.cxx8
-rw-r--r--canvas/source/directx/dx_impltools.cxx8
3 files changed, 9 insertions, 9 deletions
diff --git a/canvas/source/directx/dx_canvashelper.cxx b/canvas/source/directx/dx_canvashelper.cxx
index d606aab9a621..927f838244ab 100644
--- a/canvas/source/directx/dx_canvashelper.cxx
+++ b/canvas/source/directx/dx_canvashelper.cxx
@@ -365,7 +365,7 @@ namespace dxcanvas
strokeAttributes.DashArray ) );
if( !rDashArray.empty() )
{
- aPen.SetDashPattern( &rDashArray[0],
+ aPen.SetDashPattern( rDashArray.data(),
rDashArray.size() );
}
aPen.SetLineCap( gdiCapFromCap(strokeAttributes.StartCapType),
diff --git a/canvas/source/directx/dx_canvashelper_texturefill.cxx b/canvas/source/directx/dx_canvashelper_texturefill.cxx
index df0d27f154ef..33a6c018670e 100644
--- a/canvas/source/directx/dx_canvashelper_texturefill.cxx
+++ b/canvas/source/directx/dx_canvashelper_texturefill.cxx
@@ -68,8 +68,8 @@ namespace dxcanvas
rColors[0],
rColors[1] );
- aBrush.SetInterpolationColors(&rColors[0],
- &rStops[0],
+ aBrush.SetInterpolationColors(rColors.data(),
+ rStops.data(),
rColors.size());
// render background color, as LinearGradientBrush does not
@@ -378,8 +378,8 @@ namespace dxcanvas
pGradientBrush.reset(
new Gdiplus::PathGradientBrush( pGradientPath.get() ) );
- pGradientBrush->SetInterpolationColors( &rColors[0],
- &rStops[0],
+ pGradientBrush->SetInterpolationColors( rColors.data(),
+ rStops.data(),
rStops.size() );
// explicitly setup center point. Since the center of GDI+
diff --git a/canvas/source/directx/dx_impltools.cxx b/canvas/source/directx/dx_impltools.cxx
index 55bf94919cb3..416b46034408 100644
--- a/canvas/source/directx/dx_impltools.cxx
+++ b/canvas/source/directx/dx_impltools.cxx
@@ -232,7 +232,7 @@ namespace dxcanvas
}
else
{
- rOutput->AddBeziers( &rPoints[0], nCurrOutput );
+ rOutput->AddBeziers( rPoints.data(), nCurrOutput );
}
}
else
@@ -254,7 +254,7 @@ namespace dxcanvas
}
else
{
- rOutput->AddBeziers( &rPoints[0], nCurrOutput-2 );
+ rOutput->AddBeziers( rPoints.data(), nCurrOutput-2 );
}
}
}
@@ -288,7 +288,7 @@ namespace dxcanvas
}
else
{
- rOutput->AddLines( &rPoints[0], nPoints );
+ rOutput->AddLines( rPoints.data(), nPoints );
}
}
@@ -423,7 +423,7 @@ namespace dxcanvas
aPoints.begin(),
implGdiPlusPointFromRealPoint2D );
- pRes->AddLines( &aPoints[0], nCurrSize );
+ pRes->AddLines( aPoints.data(), nCurrSize );
}
}