summaryrefslogtreecommitdiff
path: root/canvas/source
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source')
-rw-r--r--canvas/source/cairo/cairo_textlayout.cxx4
-rw-r--r--canvas/source/tools/propertysethelper.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx
index f24405f73cfe..c9a99621a00d 100644
--- a/canvas/source/cairo/cairo_textlayout.cxx
+++ b/canvas/source/cairo/cairo_textlayout.cxx
@@ -472,7 +472,7 @@ namespace cairocanvas
<< aFont.GetFamilyName() << " - "
<< maText.Text.copy(maText.StartPosition, maText.Length));
- cairo_show_glyphs(pSCairo.get(), &cairo_glyphs[0], cairo_glyphs.size());
+ cairo_show_glyphs(pSCairo.get(), cairo_glyphs.data(), cairo_glyphs.size());
//faux bold
if (rSysFontData.bFakeBold)
@@ -488,7 +488,7 @@ namespace cairocanvas
cairo_glyph.x += (bold_dx * nSteps / total_steps) / 4;
cairo_glyph.y -= (bold_dx * nSteps / total_steps) / 4;
}
- cairo_show_glyphs(pSCairo.get(), &cairo_glyphs[0], cairo_glyphs.size());
+ cairo_show_glyphs(pSCairo.get(), cairo_glyphs.data(), cairo_glyphs.size());
}
SAL_INFO("canvas.cairo",":cairocanvas::TextLayout::draw(S,O,p,v,r): FAKEBOLD - dx:" << static_cast<int>(bold_dx));
}
diff --git a/canvas/source/tools/propertysethelper.cxx b/canvas/source/tools/propertysethelper.cxx
index c866fe9fc4b1..452aa96ab1d9 100644
--- a/canvas/source/tools/propertysethelper.cxx
+++ b/canvas/source/tools/propertysethelper.cxx
@@ -70,7 +70,7 @@ namespace canvas
EntryComparator() );
if( !maMapEntries.empty() )
- mpMap.reset( new MapType(&maMapEntries[0],
+ mpMap.reset( new MapType(maMapEntries.data(),
maMapEntries.size(),
true) );
}