From 2b9556b3e44e5cbccfeea69cbace8bef255282f1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 2 Jun 2017 09:37:27 +0200 Subject: Improved loplugin:redundantcast static_cast handling: extensions Change-Id: I4320d9631977ed21245fc934368600c4c91668df --- .../source/propctrlr/editpropertyhandler.cxx | 12 +++--- .../source/propctrlr/formcomponenthandler.cxx | 44 +++++++++++----------- .../source/propctrlr/xsdvalidationhelper.cxx | 2 +- 3 files changed, 29 insertions(+), 29 deletions(-) (limited to 'extensions/source/propctrlr') diff --git a/extensions/source/propctrlr/editpropertyhandler.cxx b/extensions/source/propctrlr/editpropertyhandler.cxx index 073016ebda91..4d28814c1e81 100644 --- a/extensions/source/propctrlr/editpropertyhandler.cxx +++ b/extensions/source/propctrlr/editpropertyhandler.cxx @@ -232,13 +232,13 @@ namespace pcr std::vector< OUString > aSuperseded; if ( implHaveBothScrollBarProperties() ) { - aSuperseded.push_back( static_cast(PROPERTY_HSCROLL) ); - aSuperseded.push_back( static_cast(PROPERTY_VSCROLL) ); + aSuperseded.push_back( PROPERTY_HSCROLL ); + aSuperseded.push_back( PROPERTY_VSCROLL ); } if ( implHaveTextTypeProperty() ) { - aSuperseded.push_back( static_cast(PROPERTY_RICHTEXT) ); - aSuperseded.push_back( static_cast(PROPERTY_MULTILINE) ); + aSuperseded.push_back( PROPERTY_RICHTEXT ); + aSuperseded.push_back( PROPERTY_MULTILINE ); } if ( aSuperseded.empty() ) return Sequence< OUString >(); @@ -251,8 +251,8 @@ namespace pcr ::osl::MutexGuard aGuard( m_aMutex ); std::vector< OUString > aInterestingActuatingProps; if ( implHaveTextTypeProperty() ) - aInterestingActuatingProps.push_back( static_cast(PROPERTY_TEXTTYPE) ); - aInterestingActuatingProps.push_back( static_cast(PROPERTY_MULTILINE) ); + aInterestingActuatingProps.push_back( PROPERTY_TEXTTYPE ); + aInterestingActuatingProps.push_back( PROPERTY_MULTILINE ); return Sequence< OUString >( &(*aInterestingActuatingProps.begin()), aInterestingActuatingProps.size() ); } diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 729fe7d9f3f4..c9dd53ef38a8 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -898,28 +898,28 @@ namespace pcr { ::osl::MutexGuard aGuard( m_aMutex ); std::vector< OUString > aInterestingProperties; - aInterestingProperties.push_back( static_cast(PROPERTY_DATASOURCE) ); - aInterestingProperties.push_back( static_cast(PROPERTY_COMMAND) ); - aInterestingProperties.push_back( static_cast(PROPERTY_COMMANDTYPE) ); - aInterestingProperties.push_back( static_cast(PROPERTY_LISTSOURCE) ); - aInterestingProperties.push_back( static_cast(PROPERTY_LISTSOURCETYPE) ); - aInterestingProperties.push_back( static_cast(PROPERTY_SUBMIT_ENCODING) ); - aInterestingProperties.push_back( static_cast(PROPERTY_REPEAT) ); - aInterestingProperties.push_back( static_cast(PROPERTY_TABSTOP) ); - aInterestingProperties.push_back( static_cast(PROPERTY_BORDER) ); - aInterestingProperties.push_back( static_cast(PROPERTY_CONTROLSOURCE) ); - aInterestingProperties.push_back( static_cast(PROPERTY_DROPDOWN) ); - aInterestingProperties.push_back( static_cast(PROPERTY_IMAGE_URL) ); - aInterestingProperties.push_back( static_cast(PROPERTY_TARGET_URL) ); - aInterestingProperties.push_back( static_cast(PROPERTY_STRINGITEMLIST) ); - aInterestingProperties.push_back( static_cast(PROPERTY_BUTTONTYPE) ); - aInterestingProperties.push_back( static_cast(PROPERTY_ESCAPE_PROCESSING) ); - aInterestingProperties.push_back( static_cast(PROPERTY_TRISTATE) ); - aInterestingProperties.push_back( static_cast(PROPERTY_DECIMAL_ACCURACY) ); - aInterestingProperties.push_back( static_cast(PROPERTY_SHOWTHOUSANDSEP) ); - aInterestingProperties.push_back( static_cast(PROPERTY_FORMATKEY) ); - aInterestingProperties.push_back( static_cast(PROPERTY_EMPTY_IS_NULL) ); - aInterestingProperties.push_back( static_cast(PROPERTY_TOGGLE) ); + aInterestingProperties.push_back( PROPERTY_DATASOURCE ); + aInterestingProperties.push_back( PROPERTY_COMMAND ); + aInterestingProperties.push_back( PROPERTY_COMMANDTYPE ); + aInterestingProperties.push_back( PROPERTY_LISTSOURCE ); + aInterestingProperties.push_back( PROPERTY_LISTSOURCETYPE ); + aInterestingProperties.push_back( PROPERTY_SUBMIT_ENCODING ); + aInterestingProperties.push_back( PROPERTY_REPEAT ); + aInterestingProperties.push_back( PROPERTY_TABSTOP ); + aInterestingProperties.push_back( PROPERTY_BORDER ); + aInterestingProperties.push_back( PROPERTY_CONTROLSOURCE ); + aInterestingProperties.push_back( PROPERTY_DROPDOWN ); + aInterestingProperties.push_back( PROPERTY_IMAGE_URL ); + aInterestingProperties.push_back( PROPERTY_TARGET_URL ); + aInterestingProperties.push_back( PROPERTY_STRINGITEMLIST ); + aInterestingProperties.push_back( PROPERTY_BUTTONTYPE ); + aInterestingProperties.push_back( PROPERTY_ESCAPE_PROCESSING ); + aInterestingProperties.push_back( PROPERTY_TRISTATE ); + aInterestingProperties.push_back( PROPERTY_DECIMAL_ACCURACY ); + aInterestingProperties.push_back( PROPERTY_SHOWTHOUSANDSEP ); + aInterestingProperties.push_back( PROPERTY_FORMATKEY ); + aInterestingProperties.push_back( PROPERTY_EMPTY_IS_NULL ); + aInterestingProperties.push_back( PROPERTY_TOGGLE ); return Sequence< OUString >( &(*aInterestingProperties.begin()), aInterestingProperties.size() ); } diff --git a/extensions/source/propctrlr/xsdvalidationhelper.cxx b/extensions/source/propctrlr/xsdvalidationhelper.cxx index 6e43c5b3f122..77ed22992ab2 100644 --- a/extensions/source/propctrlr/xsdvalidationhelper.cxx +++ b/extensions/source/propctrlr/xsdvalidationhelper.cxx @@ -258,7 +258,7 @@ namespace pcr Reference< XPropertySet > xNewType( getDataType( _rName ), UNO_QUERY ); // fire any changes in the properties which result from this new type - std::set< OUString > aFilter; aFilter.insert( static_cast(PROPERTY_NAME) ); + std::set< OUString > aFilter; aFilter.insert( PROPERTY_NAME ); firePropertyChanges( xOldType, xNewType, aFilter ); // fire the change in the Data Type property -- cgit