From 2e5508a17660401e1b4b489dbc9f70b978745b75 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Nov 2017 13:08:01 +0200 Subject: loplugin:unnecessaryparen check for (f1()).f2 Change-Id: I93257b0ddd41c649875124d6d5c5faeaa431bae3 Reviewed-on: https://gerrit.libreoffice.org/45218 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- svx/source/styles/CommonStylePreviewRenderer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx b/svx/source/styles/CommonStylePreviewRenderer.cxx index 9928960034e1..070bdfc50980 100644 --- a/svx/source/styles/CommonStylePreviewRenderer.cxx +++ b/svx/source/styles/CommonStylePreviewRenderer.cxx @@ -205,7 +205,7 @@ bool CommonStylePreviewRenderer::render(const tools::Rectangle& aRectangle, Rend if (maFontColor != COL_AUTO) mrOutputDev.SetTextColor(maFontColor); - Size aPixelSize((m_pFont) ? maPixelSize : mrOutputDev.GetFont().GetFontSize()); + Size aPixelSize(m_pFont ? maPixelSize : mrOutputDev.GetFont().GetFontSize()); Point aFontDrawPosition = aRectangle.TopLeft(); if (eRenderAlign == RenderAlign::CENTER) -- cgit