summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-02 09:37:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-02 09:37:27 +0200
commit2b9556b3e44e5cbccfeea69cbace8bef255282f1 (patch)
tree6990b5413f7c3dc8509935ac778fa8768595dafc /extensions/source/propctrlr
parent746de8119cb5824cfcbe195313e1de258d3b8d24 (diff)
Improved loplugin:redundantcast static_cast handling: extensions
Change-Id: I4320d9631977ed21245fc934368600c4c91668df
Diffstat (limited to 'extensions/source/propctrlr')
-rw-r--r--extensions/source/propctrlr/editpropertyhandler.cxx12
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx44
-rw-r--r--extensions/source/propctrlr/xsdvalidationhelper.cxx2
3 files changed, 29 insertions, 29 deletions
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<const OUString&>(PROPERTY_HSCROLL) );
- aSuperseded.push_back( static_cast<const OUString&>(PROPERTY_VSCROLL) );
+ aSuperseded.push_back( PROPERTY_HSCROLL );
+ aSuperseded.push_back( PROPERTY_VSCROLL );
}
if ( implHaveTextTypeProperty() )
{
- aSuperseded.push_back( static_cast<const OUString&>(PROPERTY_RICHTEXT) );
- aSuperseded.push_back( static_cast<const OUString&>(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<const OUString&>(PROPERTY_TEXTTYPE) );
- aInterestingActuatingProps.push_back( static_cast<const OUString&>(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<const OUString&>(PROPERTY_DATASOURCE) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_COMMAND) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_COMMANDTYPE) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_LISTSOURCE) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_LISTSOURCETYPE) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_SUBMIT_ENCODING) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_REPEAT) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_TABSTOP) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_BORDER) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_CONTROLSOURCE) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_DROPDOWN) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_IMAGE_URL) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_TARGET_URL) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_STRINGITEMLIST) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_BUTTONTYPE) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_ESCAPE_PROCESSING) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_TRISTATE) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_DECIMAL_ACCURACY) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_SHOWTHOUSANDSEP) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_FORMATKEY) );
- aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_EMPTY_IS_NULL) );
- aInterestingProperties.push_back( static_cast<const OUString&>(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<const OUString&>(PROPERTY_NAME) );
+ std::set< OUString > aFilter; aFilter.insert( PROPERTY_NAME );
firePropertyChanges( xOldType, xNewType, aFilter );
// fire the change in the Data Type property