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

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

Change-Id: Ib9c9daa113fecff495a51dca1bfaace1239b6ebc
üst b2d54b09
...@@ -76,12 +76,12 @@ PlacesListBox::PlacesListBox( vcl::Window* pParent, SvtFileDialog* pFileDlg, con ...@@ -76,12 +76,12 @@ PlacesListBox::PlacesListBox( vcl::Window* pParent, SvtFileDialog* pFileDlg, con
mpImpl->SetDoubleClickHdl( LINK( this, PlacesListBox, DoubleClick ) ) ; mpImpl->SetDoubleClickHdl( LINK( this, PlacesListBox, DoubleClick ) ) ;
mpAddBtn.reset( VclPtr<ImageButton>::Create( this, 0 ) ); mpAddBtn.reset( VclPtr<ImageButton>::Create( this, 0 ) );
mpAddBtn->SetText( OUString( "+" ) ); mpAddBtn->SetText( "+" );
mpAddBtn->SetPosSizePixel( Point( 0, 0 ), Size( 22, 22 ) ); mpAddBtn->SetPosSizePixel( Point( 0, 0 ), Size( 22, 22 ) );
mpAddBtn->Show(); mpAddBtn->Show();
mpDelBtn.reset( VclPtr<ImageButton>::Create( this, 0 ) ); mpDelBtn.reset( VclPtr<ImageButton>::Create( this, 0 ) );
mpDelBtn->SetText( OUString( "-" ) ); mpDelBtn->SetText( "-" );
mpDelBtn->SetPosSizePixel( Point( 0, 0 ), Size( 22, 22 ) ); mpDelBtn->SetPosSizePixel( Point( 0, 0 ), Size( 22, 22 ) );
mpDelBtn->Show(); mpDelBtn->Show();
} }
......
...@@ -305,7 +305,7 @@ void RemoteFilesDialog::dispose() ...@@ -305,7 +305,7 @@ void RemoteFilesDialog::dispose()
sSize = sSize + OUString::number( aSize.Height() ) + "|"; sSize = sSize + OUString::number( aSize.Height() ) + "|";
OUString sUserData = m_pFileView->GetConfigString(); OUString sUserData = m_pFileView->GetConfigString();
aDlgOpt.SetUserItem( OUString( "UserData" ), aDlgOpt.SetUserItem( "UserData",
makeAny( sSize + sUserData ) ); makeAny( sSize + sUserData ) );
} }
...@@ -438,7 +438,7 @@ void RemoteFilesDialog::InitSize() ...@@ -438,7 +438,7 @@ void RemoteFilesDialog::InitSize()
{ {
SetWindowState( OUStringToOString( aDlgOpt.GetWindowState(), osl_getThreadTextEncoding() ) ); SetWindowState( OUStringToOString( aDlgOpt.GetWindowState(), osl_getThreadTextEncoding() ) );
Any aUserData = aDlgOpt.GetUserItem( OUString( "UserData" ) ); Any aUserData = aDlgOpt.GetUserItem( "UserData" );
OUString sCfgStr; OUString sCfgStr;
if( aUserData >>= sCfgStr ) if( aUserData >>= sCfgStr )
{ {
......
...@@ -56,13 +56,13 @@ namespace svt ...@@ -56,13 +56,13 @@ namespace svt
{ {
// the two properties we have // the two properties we have
registerProperty( registerProperty(
OUString( "HelpURL" ), PROPERTY_ID_HELPURL, "HelpURL", PROPERTY_ID_HELPURL,
PropertyAttribute::TRANSIENT, PropertyAttribute::TRANSIENT,
&m_sHelpURL, cppu::UnoType<decltype(m_sHelpURL)>::get() &m_sHelpURL, cppu::UnoType<decltype(m_sHelpURL)>::get()
); );
registerProperty( registerProperty(
OUString( "Window" ), PROPERTY_ID_WINDOW, "Window", PROPERTY_ID_WINDOW,
PropertyAttribute::TRANSIENT | PropertyAttribute::READONLY, PropertyAttribute::TRANSIENT | PropertyAttribute::READONLY,
&m_xWindow, cppu::UnoType<decltype(m_xWindow)>::get() &m_xWindow, cppu::UnoType<decltype(m_xWindow)>::get()
); );
......
...@@ -515,7 +515,7 @@ void SvtFileDialog::dispose() ...@@ -515,7 +515,7 @@ void SvtFileDialog::dispose()
SvtViewOptions aDlgOpt( E_DIALOG, _pImp->_aIniKey ); SvtViewOptions aDlgOpt( E_DIALOG, _pImp->_aIniKey );
aDlgOpt.SetWindowState(OStringToOUString(GetWindowState(), osl_getThreadTextEncoding())); aDlgOpt.SetWindowState(OStringToOUString(GetWindowState(), osl_getThreadTextEncoding()));
OUString sUserData = _pFileView->GetConfigString(); OUString sUserData = _pFileView->GetConfigString();
aDlgOpt.SetUserItem( OUString( "UserData" ), aDlgOpt.SetUserItem( "UserData",
makeAny( sUserData ) ); makeAny( sUserData ) );
} }
...@@ -758,7 +758,7 @@ void SvtFileDialog::Init_Impl ...@@ -758,7 +758,7 @@ void SvtFileDialog::Init_Impl
/// read our settings from the configuration /// read our settings from the configuration
m_aConfiguration = OConfigurationTreeRoot::createWithComponentContext( m_aConfiguration = OConfigurationTreeRoot::createWithComponentContext(
::comphelper::getProcessComponentContext(), ::comphelper::getProcessComponentContext(),
OUString( "/org.openoffice.Office.UI/FilePicker" ) "/org.openoffice.Office.UI/FilePicker"
); );
_pContainer->init(_pImp, _pFileView, _pSplitter, _pImp->_pBtnNewFolder, _pImp->_pEdFileName); _pContainer->init(_pImp, _pFileView, _pSplitter, _pImp->_pBtnNewFolder, _pImp->_pEdFileName);
...@@ -2043,7 +2043,7 @@ short SvtFileDialog::PrepareExecute() ...@@ -2043,7 +2043,7 @@ short SvtFileDialog::PrepareExecute()
// if applicable set respectively create filter for all files // if applicable set respectively create filter for all files
if ( !bHasAll ) if ( !bHasAll )
{ {
SvtFileDialogFilter_Impl* pAllFilter = implAddFilter( aAll, OUString(FILEDIALOG_FILTER_ALL) ); SvtFileDialogFilter_Impl* pAllFilter = implAddFilter( aAll, FILEDIALOG_FILTER_ALL );
_pImp->InsertFilterListEntry( pAllFilter ); _pImp->InsertFilterListEntry( pAllFilter );
_pImp->SetCurFilter( pAllFilter, aAll ); _pImp->SetCurFilter( pAllFilter, aAll );
} }
...@@ -2295,7 +2295,7 @@ void SvtFileDialog::InitSize() ...@@ -2295,7 +2295,7 @@ void SvtFileDialog::InitSize()
{ {
SetWindowState(OUStringToOString(aDlgOpt.GetWindowState(), osl_getThreadTextEncoding())); SetWindowState(OUStringToOString(aDlgOpt.GetWindowState(), osl_getThreadTextEncoding()));
Any aUserData = aDlgOpt.GetUserItem( OUString( "UserData" )); Any aUserData = aDlgOpt.GetUserItem( "UserData");
OUString sCfgStr; OUString sCfgStr;
if ( aUserData >>= sCfgStr ) if ( aUserData >>= sCfgStr )
_pFileView->SetConfigString( sCfgStr ); _pFileView->SetConfigString( sCfgStr );
......
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