summaryrefslogtreecommitdiff
path: root/svx/source/form
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:37:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:37:52 +0100
commit2f88f0adf0f787ae1e1a2a5ac2156b347984fd4a (patch)
tree4c238035556820792d0909ae1dc6a7a5dae43825 /svx/source/form
parentb183742d3f8cb0edc59d4a60132ca0036d3f41c9 (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I72d11153ffccc51633aec78c802822173dd7f5ed
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/databaselocationinput.cxx2
-rw-r--r--svx/source/form/datanavi.cxx2
-rw-r--r--svx/source/form/filtnav.cxx2
-rw-r--r--svx/source/form/fmexch.cxx6
-rw-r--r--svx/source/form/fmshell.cxx4
-rw-r--r--svx/source/form/tbxform.cxx2
-rw-r--r--svx/source/form/xfm_addcondition.cxx8
7 files changed, 13 insertions, 13 deletions
diff --git a/svx/source/form/databaselocationinput.cxx b/svx/source/form/databaselocationinput.cxx
index 08c766c22d79..80d8459a9ed2 100644
--- a/svx/source/form/databaselocationinput.cxx
+++ b/svx/source/form/databaselocationinput.cxx
@@ -159,7 +159,7 @@ namespace svx
::utl::OConfigurationTreeRoot aConfig(
::utl::OConfigurationTreeRoot::createWithComponentContext(
m_xContext,
- OUString( "/org.openoffice.Setup/Office/Factories/com.sun.star.sdb.OfficeDatabaseDocument" )
+ "/org.openoffice.Setup/Office/Factories/com.sun.star.sdb.OfficeDatabaseDocument"
) );
OUString sDatabaseFilter;
OSL_VERIFY( aConfig.getNodeValue( "ooSetupFactoryActualFilter" ) >>= sDatabaseFilter );
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index 0262ecb58752..4de50cfad24b 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -3409,7 +3409,7 @@ namespace svxform
css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, 0 );
INetURLObject aFile( SvtPathOptions().GetWorkPath() );
- aDlg.AddFilter( m_sAllFilterName, OUString(FILEDIALOG_FILTER_ALL) );
+ aDlg.AddFilter( m_sAllFilterName, FILEDIALOG_FILTER_ALL );
OUString sFilterName( "XML" );
aDlg.AddFilter( sFilterName, "*.xml" );
aDlg.SetCurrentFilter( sFilterName );
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx
index 6adbb55a188c..2f2310d935e3 100644
--- a/svx/source/form/filtnav.cxx
+++ b/svx/source/form/filtnav.cxx
@@ -122,7 +122,7 @@ SotClipboardFormatId OFilterItemExchange::getFormatId()
static SotClipboardFormatId s_nFormat = static_cast<SotClipboardFormatId>(-1);
if (static_cast<SotClipboardFormatId>(-1) == s_nFormat)
{
- s_nFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"form.FilterControlExchange\""));
+ s_nFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"form.FilterControlExchange\"");
DBG_ASSERT(static_cast<SotClipboardFormatId>(-1) != s_nFormat, "OFilterExchangeHelper::getFormatId: bad exchange id!");
}
return s_nFormat;
diff --git a/svx/source/form/fmexch.cxx b/svx/source/form/fmexch.cxx
index af817752bd7c..b4fcca3c956b 100644
--- a/svx/source/form/fmexch.cxx
+++ b/svx/source/form/fmexch.cxx
@@ -320,7 +320,7 @@ namespace svxform
static SotClipboardFormatId s_nFormat = static_cast<SotClipboardFormatId>(-1);
if (static_cast<SotClipboardFormatId>(-1) == s_nFormat)
{
- s_nFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"svxform.ControlPathExchange\""));
+ s_nFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"svxform.ControlPathExchange\"");
DBG_ASSERT(static_cast<SotClipboardFormatId>(-1) != s_nFormat, "OControlExchange::getControlPathFormatId: bad exchange id!");
}
return s_nFormat;
@@ -332,7 +332,7 @@ namespace svxform
static SotClipboardFormatId s_nFormat = static_cast<SotClipboardFormatId>(-1);
if (static_cast<SotClipboardFormatId>(-1) == s_nFormat)
{
- s_nFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"svxform.HiddenControlModelsExchange\""));
+ s_nFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"svxform.HiddenControlModelsExchange\"");
DBG_ASSERT(static_cast<SotClipboardFormatId>(-1) != s_nFormat, "OControlExchange::getHiddenControlModelsFormatId: bad exchange id!");
}
return s_nFormat;
@@ -344,7 +344,7 @@ namespace svxform
static SotClipboardFormatId s_nFormat = static_cast<SotClipboardFormatId>(-1);
if (static_cast<SotClipboardFormatId>(-1) == s_nFormat)
{
- s_nFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"svxform.FieldNameExchange\""));
+ s_nFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"svxform.FieldNameExchange\"");
DBG_ASSERT(static_cast<SotClipboardFormatId>(-1) != s_nFormat, "OControlExchange::getFieldExchangeFormatId: bad exchange id!");
}
return s_nFormat;
diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx
index 629a94667b50..5cbca72bf1dd 100644
--- a/svx/source/form/fmshell.cxx
+++ b/svx/source/form/fmshell.cxx
@@ -215,7 +215,7 @@ FmFormShell::FmFormShell( SfxViewShell* _pParent, FmFormView* pView )
{
m_pImpl->acquire();
SetPool( &SfxGetpApp()->GetPool() );
- SetName( OUString("Form") );
+ SetName( "Form" );
SetView(m_pFormView);
}
@@ -763,7 +763,7 @@ void FmFormShell::Execute(SfxRequest &rReq)
}
if ( nRecord != -1 )
- rController->execute( nSlot, OUString( "Position" ), makeAny( (sal_Int32)nRecord ) );
+ rController->execute( nSlot, "Position", makeAny( (sal_Int32)nRecord ) );
rReq.Done();
} break;
diff --git a/svx/source/form/tbxform.cxx b/svx/source/form/tbxform.cxx
index dd8f6ace33f5..fbdf616121c2 100644
--- a/svx/source/form/tbxform.cxx
+++ b/svx/source/form/tbxform.cxx
@@ -76,7 +76,7 @@ void SvxFmAbsRecWin::FirePosition( bool _bForce )
aArgs[0].Name = "Position";
aPositionParam.QueryValue( a );
aArgs[0].Value = a;
- m_pController->Dispatch( OUString( ".uno:AbsoluteRecord" ),
+ m_pController->Dispatch( ".uno:AbsoluteRecord",
aArgs );
m_pController->updateStatus();
diff --git a/svx/source/form/xfm_addcondition.cxx b/svx/source/form/xfm_addcondition.cxx
index c905e9a3b8d3..b9727fc950c1 100644
--- a/svx/source/form/xfm_addcondition.cxx
+++ b/svx/source/form/xfm_addcondition.cxx
@@ -68,7 +68,7 @@ namespace svxform
:OAddConditionDialogBase( _rxORB )
{
registerProperty(
- OUString( "Binding" ),
+ "Binding",
PROPERTY_ID_BINDING,
PropertyAttribute::TRANSIENT,
&m_xBinding,
@@ -76,7 +76,7 @@ namespace svxform
);
registerProperty(
- OUString( "FacetName" ),
+ "FacetName",
PROPERTY_ID_FACET_NAME,
PropertyAttribute::TRANSIENT,
&m_sFacetName,
@@ -84,7 +84,7 @@ namespace svxform
);
registerProperty(
- OUString( "ConditionValue" ),
+ "ConditionValue",
PROPERTY_ID_CONDITION_VALUE,
PropertyAttribute::TRANSIENT,
&m_sConditionValue,
@@ -92,7 +92,7 @@ namespace svxform
);
registerProperty(
- OUString( "FormModel" ),
+ "FormModel",
PROPERTY_ID_FORM_MODEL,
PropertyAttribute::TRANSIENT,
&m_xWorkModel,