summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-21 08:43:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-21 09:39:21 +0200
commit5e4b4eecb1b2b7113f45e9468574624d30c7097c (patch)
tree701fc89158bfbffab65fc222e062a927aa769120 /svx
parent182a74d937088f0f08850014a7b918719e106b7d (diff)
loplugin:unusedfields in sfx2
Change-Id: Id6666065bf3b27388d87aa2605229e83f1aed79a Reviewed-on: https://gerrit.libreoffice.org/40255 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/styles/CommonStylePreviewRenderer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx b/svx/source/styles/CommonStylePreviewRenderer.cxx
index bb27770bcf75..ab1d05fb94ed 100644
--- a/svx/source/styles/CommonStylePreviewRenderer.cxx
+++ b/svx/source/styles/CommonStylePreviewRenderer.cxx
@@ -185,7 +185,7 @@ Size CommonStylePreviewRenderer::getRenderSize()
bool CommonStylePreviewRenderer::render(const tools::Rectangle& aRectangle, RenderAlign eRenderAlign)
{
- const OUString& rText = msRenderText.isEmpty() ? maStyleName : msRenderText;
+ const OUString& rText = maStyleName;
// setup the device & draw
vcl::Font aOldFont(mrOutputDev.GetFont());