summaryrefslogtreecommitdiff
path: root/svx/source/dialog/rubydialog.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:37:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:37:52 +0100
commit2f88f0adf0f787ae1e1a2a5ac2156b347984fd4a (patch)
tree4c238035556820792d0909ae1dc6a7a5dae43825 /svx/source/dialog/rubydialog.cxx
parentb183742d3f8cb0edc59d4a60132ca0036d3f41c9 (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I72d11153ffccc51633aec78c802822173dd7f5ed
Diffstat (limited to 'svx/source/dialog/rubydialog.cxx')
-rw-r--r--svx/source/dialog/rubydialog.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx
index 49faa4561a17..e1a7b9d8b8e6 100644
--- a/svx/source/dialog/rubydialog.cxx
+++ b/svx/source/dialog/rubydialog.cxx
@@ -881,7 +881,7 @@ void RubyPreview::Paint(vcl::RenderContext& rRenderContext, const Rectangle& /*r
break;
case RubyAdjust_INDENT_BLOCK:
{
- long nCharWidth = GetTextWidth(OUString("X"));
+ long nCharWidth = GetTextWidth("X");
if (nOutTextWidth < (nRightEnd - nLeftStart - nCharWidth))
{
nCharWidth /= 2;