diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-01-09 19:38:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-09 20:21:59 +0100 |
commit | 6efffbbfce9c27439f54970f7a569b069ce46eba (patch) | |
tree | cecff16ae5325875c3e6471170040c38859bff56 /forms | |
parent | 2ab481b038b62b1ff576ac4d49d03c1798cd7f84 (diff) |
Improve loplugin:redundantcast for sal_Int... vs. ::sal_Int...
Change-Id: I1548a76fdc03afee68f1e5c01bc665e616f2edf2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86501
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/FormattedField.cxx | 4 | ||||
-rw-r--r-- | forms/source/component/formcontrolfont.cxx | 22 |
2 files changed, 13 insertions, 13 deletions
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx index fb84dcb2e531..8788cde414b6 100644 --- a/forms/source/component/FormattedField.cxx +++ b/forms/source/component/FormattedField.cxx @@ -564,9 +564,9 @@ void OFormattedModel::onConnectedDbColumn( const Reference< XInterface >& _rxFor { Locale aApplicationLocale = Application::GetSettings().GetUILanguageTag().getLocale(); if (m_bOriginalNumeric) - aFmtKey <<= static_cast<sal_Int32>(xTypes->getStandardFormat(NumberFormat::NUMBER, aApplicationLocale)); + aFmtKey <<= xTypes->getStandardFormat(NumberFormat::NUMBER, aApplicationLocale); else - aFmtKey <<= static_cast<sal_Int32>(xTypes->getStandardFormat(NumberFormat::TEXT, aApplicationLocale)); + aFmtKey <<= xTypes->getStandardFormat(NumberFormat::TEXT, aApplicationLocale); } } aSupplier >>= m_xOriginalFormatter; diff --git a/forms/source/component/formcontrolfont.cxx b/forms/source/component/formcontrolfont.cxx index cbb19a741cc2..1399e2b94971 100644 --- a/forms/source/component/formcontrolfont.cxx +++ b/forms/source/component/formcontrolfont.cxx @@ -57,11 +57,11 @@ namespace frm break; case PROPERTY_ID_FONT_FAMILY: - aValue <<= static_cast<sal_Int16>(_rFont.Family); + aValue <<= _rFont.Family; break; case PROPERTY_ID_FONT_CHARSET: - aValue <<= static_cast<sal_Int16>(_rFont.CharSet); + aValue <<= _rFont.CharSet; break; case PROPERTY_ID_FONT_CHARWIDTH: @@ -101,11 +101,11 @@ namespace frm break; case PROPERTY_ID_FONT_UNDERLINE: - aValue <<= static_cast<sal_Int16>(_rFont.Underline); + aValue <<= _rFont.Underline; break; case PROPERTY_ID_FONT_STRIKEOUT: - aValue <<= static_cast<sal_Int16>(_rFont.Strikeout); + aValue <<= _rFont.Strikeout; break; case PROPERTY_ID_FONT_WORDLINEMODE: @@ -287,11 +287,11 @@ namespace frm break; case PROPERTY_ID_FONT_FAMILY: - bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, static_cast<sal_Int16>(m_aFont.Family) ); + bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, m_aFont.Family ); break; case PROPERTY_ID_FONT_CHARSET: - bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, static_cast<sal_Int16>(m_aFont.CharSet) ); + bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, m_aFont.CharSet ); break; case PROPERTY_ID_FONT_CHARWIDTH: @@ -307,15 +307,15 @@ namespace frm break; case PROPERTY_ID_FONT_PITCH: - bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, static_cast<sal_Int16>(m_aFont.Pitch) ); + bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, m_aFont.Pitch ); break; case PROPERTY_ID_FONT_TYPE: - bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, static_cast<sal_Int16>(m_aFont.Type) ); + bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, m_aFont.Type ); break; case PROPERTY_ID_FONT_WIDTH: - bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, static_cast<sal_Int16>(m_aFont.Width) ); + bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, m_aFont.Width ); break; case PROPERTY_ID_FONT_HEIGHT: @@ -331,11 +331,11 @@ namespace frm break; case PROPERTY_ID_FONT_UNDERLINE: - bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, static_cast<sal_Int16>(m_aFont.Underline) ); + bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, m_aFont.Underline ); break; case PROPERTY_ID_FONT_STRIKEOUT: - bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, static_cast<sal_Int16>(m_aFont.Strikeout) ); + bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, m_aFont.Strikeout ); break; case PROPERTY_ID_FONT_WORDLINEMODE: |