Kaydet (Commit) 47709411 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)

Change-Id: I5528b17c106aefde4c58dfef00e30fdcf62f7db7
üst 108ecc45
......@@ -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" );
}
......
......@@ -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" );
}
......
......@@ -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" );
}
......
......@@ -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();
......
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment