diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-10-19 09:20:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-10-19 11:48:41 +0200 |
commit | a3f93ced82f8d4d122468cc4a1c4298141d67507 (patch) | |
tree | 31dd908f52b74e963991c77d606cf28f8586f694 /vcl | |
parent | 699372466384113cf015be714e0067e857f8fa5c (diff) |
Simplify single-wchar_t LPCWSTR argument to ExtTextOutW
Change-Id: I5c66408297ab03da29494d00ce222b3ef1e0ef13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104515
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/gdi/winlayout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx index 884b1be6e670..3438e3b79deb 100644 --- a/vcl/win/gdi/winlayout.cxx +++ b/vcl/win/gdi/winlayout.cxx @@ -266,7 +266,7 @@ bool ExTextOutRenderer::operator ()(GenericSalLayout const &rLayout, const GlyphItem* pGlyph; while (rLayout.GetNextGlyph(&pGlyph, aPos, nStart)) { - WORD glyphWStr[] = { pGlyph->glyphId() }; + wchar_t glyphWStr = pGlyph->glyphId(); if (hAltFont && pGlyph->IsVertical() == bUseAltFont) { bUseAltFont = !bUseAltFont; @@ -275,7 +275,7 @@ bool ExTextOutRenderer::operator ()(GenericSalLayout const &rLayout, if (bShift && pGlyph->IsVertical()) SetTextAlign(hDC, TA_TOP|TA_LEFT); - ExtTextOutW(hDC, aPos.X(), aPos.Y(), ETO_GLYPH_INDEX, nullptr, LPCWSTR(&glyphWStr), 1, nullptr); + ExtTextOutW(hDC, aPos.X(), aPos.Y(), ETO_GLYPH_INDEX, nullptr, &glyphWStr, 1, nullptr); if (bShift && pGlyph->IsVertical()) SetTextAlign(hDC, nTextAlign); |