summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-21 08:35:50 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-21 11:43:37 +0200
commitc820bf8baf989814b888253525fe3f307592ba85 (patch)
treeb745d5052659211270bc42b9151e653bb4490f29 /vcl
parent7e4358a0ca2ae798e28b2713248ec77d50fdbdbc (diff)
loplugin:stringadd (macOS)
Change-Id: Ic9c23fcda4c798c1ca2de5a010da292d56b10e8b Reviewed-on: https://gerrit.libreoffice.org/81201 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/opengl/OpenGLHelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx
index 6a4234da3c19..c02f142bef26 100644
--- a/vcl/source/opengl/OpenGLHelper.cxx
+++ b/vcl/source/opengl/OpenGLHelper.cxx
@@ -213,9 +213,9 @@ namespace
OUStringToOString(aInfo.GetDriverVersion(), RTL_TEXTENCODING_UTF8) +
OString::number(aInfo.GetWindowsVersion());
#else
- return OString(reinterpret_cast<const char*>(glGetString(GL_VENDOR))) +
- OString(reinterpret_cast<const char*>(glGetString(GL_RENDERER))) +
- OString(reinterpret_cast<const char*>(glGetString(GL_VERSION)));
+ return rtl::OStringView(reinterpret_cast<const char*>(glGetString(GL_VENDOR))) +
+ reinterpret_cast<const char*>(glGetString(GL_RENDERER)) +
+ reinterpret_cast<const char*>(glGetString(GL_VERSION));
#endif
}