diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:18:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:18:19 +0100 |
commit | 05db2098032f17085b7c3b47d02f617371eeddc0 (patch) | |
tree | 1a376ceb44185bf4a109102f0a67107eecff66e5 /reportdesign/source/ui/report/ReportSection.cxx | |
parent | 5a3bb76cd384fa3760fe8481ce008791258595ad (diff) |
More loplugin:cstylecast: reportdesign
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I690ddd7eeb5fbac979292a382074e9b29c065416
Diffstat (limited to 'reportdesign/source/ui/report/ReportSection.cxx')
-rw-r--r-- | reportdesign/source/ui/report/ReportSection.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx index 759b74027a85..99f93cc72455 100644 --- a/reportdesign/source/ui/report/ReportSection.cxx +++ b/reportdesign/source/ui/report/ReportSection.cxx @@ -213,7 +213,7 @@ void OReportSection::fill() m_pView->SetDragStripes( true ); m_pView->SetPageVisible(); sal_Int32 nColor = m_xSection->getBackColor(); - if ( nColor == (sal_Int32)COL_TRANSPARENT ) + if ( nColor == static_cast<sal_Int32>(COL_TRANSPARENT) ) nColor = getStyleProperty<sal_Int32>(m_xSection->getReportDefinition(),PROPERTY_BACKCOLOR); m_pView->SetApplicationDocumentColor(nColor); @@ -468,7 +468,7 @@ void OReportSection::_propertyChanged(const beans::PropertyChangeEvent& _rEvent) if ( _rEvent.Source == m_xSection || PROPERTY_BACKCOLOR == _rEvent.PropertyName ) { sal_Int32 nColor = m_xSection->getBackColor(); - if ( nColor == (sal_Int32)COL_TRANSPARENT ) + if ( nColor == static_cast<sal_Int32>(COL_TRANSPARENT) ) nColor = getStyleProperty<sal_Int32>(m_xSection->getReportDefinition(),PROPERTY_BACKCOLOR); m_pView->SetApplicationDocumentColor(nColor); Invalidate(InvalidateFlags::NoChildren|InvalidateFlags::NoErase); |