diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:35:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:35:43 +0100 |
commit | 4770941171b0139c79b222b0754beca6bdc7162b (patch) | |
tree | 1d6a193b8f6eda00c07ae7e639594968b62f22ab /embeddedobj | |
parent | 108ecc45ce374b806f032218042959e4fdc90bbe (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I5528b17c106aefde4c58dfef00e30fdcf62f7db7
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/source/commonembedding/embedobj.cxx | 4 | ||||
-rw-r--r-- | embeddedobj/source/commonembedding/persistence.cxx | 8 | ||||
-rw-r--r-- | embeddedobj/source/general/docholder.cxx | 2 | ||||
-rw-r--r-- | embeddedobj/source/general/dummyobject.cxx | 4 | ||||
-rw-r--r-- | embeddedobj/source/msole/olepersist.cxx | 8 |
5 files changed, 13 insertions, 13 deletions
diff --git a/embeddedobj/source/commonembedding/embedobj.cxx b/embeddedobj/source/commonembedding/embedobj.cxx index de75e9fb18fe..e24443217eeb 100644 --- a/embeddedobj/source/commonembedding/embedobj.cxx +++ b/embeddedobj/source/commonembedding/embedobj.cxx @@ -480,7 +480,7 @@ void SAL_CALL OCommonEmbeddedObject::changeState( sal_Int32 nNewState ) // let the object window be shown if ( nNewState == embed::EmbedStates::UI_ACTIVE || nNewState == embed::EmbedStates::INPLACE_ACTIVE ) - PostEvent_Impl( OUString( "OnVisAreaChanged" ) ); + PostEvent_Impl( "OnVisAreaChanged" ); } } @@ -626,7 +626,7 @@ void SAL_CALL OCommonEmbeddedObject::update() throw embed::WrongStateException( "The object has no persistence!", static_cast< ::cppu::OWeakObject* >(this) ); - PostEvent_Impl( OUString( "OnVisAreaChanged" ) ); + PostEvent_Impl( "OnVisAreaChanged" ); } diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx index 576cbcf794f5..c7b2d7ac8110 100644 --- a/embeddedobj/source/commonembedding/persistence.cxx +++ b/embeddedobj/source/commonembedding/persistence.cxx @@ -1355,7 +1355,7 @@ void SAL_CALL OCommonEmbeddedObject::storeAsEntry( const uno::Reference< embed:: SAL_WARN( "embeddedobj.common", "Can not retrieve own storage media type!" ); } - PostEvent_Impl( OUString( "OnSaveAs" ) ); + PostEvent_Impl( "OnSaveAs" ); bool bTryOptimization = false; for ( sal_Int32 nInd = 0; nInd < lObjArgs.getLength(); nInd++ ) @@ -1478,7 +1478,7 @@ void SAL_CALL OCommonEmbeddedObject::saveCompleted( sal_Bool bUseNew ) if ( xModif.is() ) xModif->setModified( sal_False ); - PostEvent_Impl( OUString( "OnSaveAsDone" )); + PostEvent_Impl( "OnSaveAsDone"); } else { @@ -1588,7 +1588,7 @@ void SAL_CALL OCommonEmbeddedObject::storeOwn() if ( m_nObjectState == embed::EmbedStates::LOADED ) return; - PostEvent_Impl( OUString( "OnSave" ) ); + PostEvent_Impl( "OnSave" ); SAL_WARN_IF( !m_pDocHolder->GetComponent().is(), "embeddedobj.common", "If an object is activated or in running state it must have a document!" ); if ( !m_pDocHolder->GetComponent().is() ) @@ -1647,7 +1647,7 @@ void SAL_CALL OCommonEmbeddedObject::storeOwn() if ( xModif.is() ) xModif->setModified( sal_False ); - PostEvent_Impl( OUString( "OnSaveDone" ) ); + PostEvent_Impl( "OnSaveDone" ); } diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx index 601507555b63..584253804ed0 100644 --- a/embeddedobj/source/general/docholder.cxx +++ b/embeddedobj/source/general/docholder.cxx @@ -1170,7 +1170,7 @@ void SAL_CALL DocumentHolder::modified( const lang::EventObject& aEvent ) // if the component does not support document::XEventBroadcaster // the modify notifications are used as workaround, but only for running state if( aEvent.Source == m_xComponent && m_pEmbedObj && m_pEmbedObj->getCurrentState() == embed::EmbedStates::RUNNING ) - m_pEmbedObj->PostEvent_Impl( OUString( "OnVisAreaChanged" ) ); + m_pEmbedObj->PostEvent_Impl( "OnVisAreaChanged" ); } diff --git a/embeddedobj/source/general/dummyobject.cxx b/embeddedobj/source/general/dummyobject.cxx index 592820e51855..f6d8bfc3bcd6 100644 --- a/embeddedobj/source/general/dummyobject.cxx +++ b/embeddedobj/source/general/dummyobject.cxx @@ -408,7 +408,7 @@ void SAL_CALL ODummyEmbeddedObject::storeAsEntry( const uno::Reference< embed::X "The object waits for saveCompleted() call!", static_cast< ::cppu::OWeakObject* >(this) ); - PostEvent_Impl( OUString( "OnSaveAs" ) ); + PostEvent_Impl( "OnSaveAs" ); m_xParentStorage->copyElementTo( m_aEntryName, xStorage, sEntName ); @@ -443,7 +443,7 @@ void SAL_CALL ODummyEmbeddedObject::saveCompleted( sal_Bool bUseNew ) m_xParentStorage = m_xNewParentStorage; m_aEntryName = m_aNewEntryName; - PostEvent_Impl( OUString( "OnSaveAsDone" ) ); + PostEvent_Impl( "OnSaveAsDone" ); } m_xNewParentStorage.clear(); diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx index f98745135850..5a199e75cbb0 100644 --- a/embeddedobj/source/msole/olepersist.cxx +++ b/embeddedobj/source/msole/olepersist.cxx @@ -1637,13 +1637,13 @@ void SAL_CALL OleEmbeddedObject::saveCompleted( sal_Bool bUseNew ) aGuard.clear(); if ( bUseNew ) { - MakeEventListenerNotification_Impl( OUString( "OnSaveAsDone" )); + MakeEventListenerNotification_Impl( "OnSaveAsDone"); // the object can be changed only on windows // the notification should be done only if the object is not in loaded state if ( m_pOleComponent && m_nUpdateMode == embed::EmbedUpdateModes::ALWAYS_UPDATE && !bStoreLoaded ) { - MakeEventListenerNotification_Impl( OUString( "OnVisAreaChanged" )); + MakeEventListenerNotification_Impl( "OnVisAreaChanged"); } } } @@ -1821,12 +1821,12 @@ void SAL_CALL OleEmbeddedObject::storeOwn() aGuard.clear(); - MakeEventListenerNotification_Impl( OUString( "OnSaveDone" )); + MakeEventListenerNotification_Impl( "OnSaveDone"); // the object can be changed only on Windows // the notification should be done only if the object is not in loaded state if ( m_pOleComponent && m_nUpdateMode == embed::EmbedUpdateModes::ALWAYS_UPDATE && !bStoreLoaded ) - MakeEventListenerNotification_Impl( OUString( "OnVisAreaChanged" )); + MakeEventListenerNotification_Impl( "OnVisAreaChanged"); } |