summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-30 16:38:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-31 08:56:20 +0000
commit1c3e84d8192218befebcddae2ed9842d081dc6c7 (patch)
treef4fc5cddd181d6d49bf55f74e6d3d107b8ae8d18 /svtools
parente1e6cdbb1e9ff37f0bb740a70045c66953bec50c (diff)
teach lolugin:stringconstant about calling constructors
so we can remove unnecessary calls to the OUString(literal) constructor when calling constructors like this: Foo(OUString("xxx"), 1) Change-Id: I1de60ef561437c86b27dc9cb095a5deb2e103b36 Reviewed-on: https://gerrit.libreoffice.org/33698 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/apearcfg.cxx2
-rw-r--r--svtools/source/config/extcolorcfg.cxx2
-rw-r--r--svtools/source/config/fontsubstconfig.cxx2
-rw-r--r--svtools/source/config/helpopt.cxx2
-rw-r--r--svtools/source/config/menuoptions.cxx2
-rw-r--r--svtools/source/config/optionsdrawinglayer.cxx2
-rw-r--r--svtools/source/config/slidesorterbaropt.cxx2
-rw-r--r--svtools/source/config/toolpanelopt.cxx2
-rw-r--r--svtools/source/contnr/fileview.cxx2
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx2
-rw-r--r--svtools/source/misc/embedhlp.cxx2
-rw-r--r--svtools/source/uno/addrtempuno.cxx10
12 files changed, 16 insertions, 16 deletions
diff --git a/svtools/source/config/apearcfg.cxx b/svtools/source/config/apearcfg.cxx
index f25028691f12..7ccfa0f142a9 100644
--- a/svtools/source/config/apearcfg.cxx
+++ b/svtools/source/config/apearcfg.cxx
@@ -37,7 +37,7 @@ using namespace ::com::sun::star::uno;
bool SvtTabAppearanceCfg::bInitialized = false;
SvtTabAppearanceCfg::SvtTabAppearanceCfg()
- :ConfigItem(OUString("Office.Common/View"))
+ :ConfigItem("Office.Common/View")
,nDragMode ( DEFAULT_DRAGMODE )
,nSnapMode ( DEFAULT_SNAPMODE )
,nMiddleMouse ( MouseMiddleButtonAction::AutoScroll )
diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx
index ac6bce26a9f7..f42a7c038d60 100644
--- a/svtools/source/config/extcolorcfg.cxx
+++ b/svtools/source/config/extcolorcfg.cxx
@@ -194,7 +194,7 @@ OUString ExtendedColorConfig_Impl::GetComponentName(sal_uInt32 _nPos) const
bool ExtendedColorConfig_Impl::m_bLockBroadcast = false;
bool ExtendedColorConfig_Impl::m_bBroadcastWhenUnlocked = false;
ExtendedColorConfig_Impl::ExtendedColorConfig_Impl() :
- ConfigItem(OUString("Office.ExtendedColorScheme")),
+ ConfigItem("Office.ExtendedColorScheme"),
m_bIsBroadcastEnabled(true)
{
//try to register on the root node - if possible
diff --git a/svtools/source/config/fontsubstconfig.cxx b/svtools/source/config/fontsubstconfig.cxx
index 6785a3ff8497..bb4533f0538d 100644
--- a/svtools/source/config/fontsubstconfig.cxx
+++ b/svtools/source/config/fontsubstconfig.cxx
@@ -48,7 +48,7 @@ struct SvtFontSubstConfig_Impl
};
SvtFontSubstConfig::SvtFontSubstConfig() :
- ConfigItem(OUString("Office.Common/Font/Substitution")),
+ ConfigItem("Office.Common/Font/Substitution"),
bIsEnabled(false),
pImpl(new SvtFontSubstConfig_Impl)
{
diff --git a/svtools/source/config/helpopt.cxx b/svtools/source/config/helpopt.cxx
index 88787383b06c..b3d93847a7e8 100644
--- a/svtools/source/config/helpopt.cxx
+++ b/svtools/source/config/helpopt.cxx
@@ -122,7 +122,7 @@ Sequence< OUString > SvtHelpOptions_Impl::GetPropertyNames()
}
SvtHelpOptions_Impl::SvtHelpOptions_Impl()
- : ConfigItem( OUString( "Office.Common/Help" ) )
+ : ConfigItem( "Office.Common/Help" )
, bExtendedHelp( false )
, bHelpTips( true )
, bWelcomeScreen( false )
diff --git a/svtools/source/config/menuoptions.cxx b/svtools/source/config/menuoptions.cxx
index fffce29e0405..e4b9fc05e880 100644
--- a/svtools/source/config/menuoptions.cxx
+++ b/svtools/source/config/menuoptions.cxx
@@ -36,7 +36,7 @@ using namespace ::utl ;
using namespace ::osl ;
using namespace ::com::sun::star::uno ;
-#define ROOTNODE_MENU OUString("Office.Common/View/Menu" )
+#define ROOTNODE_MENU "Office.Common/View/Menu"
#define DEFAULT_DONTHIDEDISABLEDENTRIES false
#define DEFAULT_FOLLOWMOUSE true
#define DEFAULT_MENUICONS TRISTATE_INDET
diff --git a/svtools/source/config/optionsdrawinglayer.cxx b/svtools/source/config/optionsdrawinglayer.cxx
index 87189f7ef36c..418ae34c7596 100644
--- a/svtools/source/config/optionsdrawinglayer.cxx
+++ b/svtools/source/config/optionsdrawinglayer.cxx
@@ -34,7 +34,7 @@ using namespace ::utl ;
using namespace ::osl ;
using namespace ::com::sun::star::uno ;
-#define ROOTNODE_START OUString("Office.Common/Drawinglayer" )
+#define ROOTNODE_START "Office.Common/Drawinglayer"
#define DEFAULT_OVERLAYBUFFER true
#define DEFAULT_PAINTBUFFER true
#define DEFAULT_STRIPE_COLOR_A 0
diff --git a/svtools/source/config/slidesorterbaropt.cxx b/svtools/source/config/slidesorterbaropt.cxx
index ab89080b4b9d..fa694c0c73af 100644
--- a/svtools/source/config/slidesorterbaropt.cxx
+++ b/svtools/source/config/slidesorterbaropt.cxx
@@ -33,7 +33,7 @@ using namespace ::osl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star;
-#define ROOTNODE_SLIDESORTERBAR OUString("Office.Impress/MultiPaneGUI/SlideSorterBar/Visible")
+#define ROOTNODE_SLIDESORTERBAR "Office.Impress/MultiPaneGUI/SlideSorterBar/Visible"
#define PROPERTYNAME_VISIBLE_IMPRESSVIEW OUString("ImpressView")
#define PROPERTYHANDLE_VISIBLE_IMPRESSVIEW 0
diff --git a/svtools/source/config/toolpanelopt.cxx b/svtools/source/config/toolpanelopt.cxx
index 647037ad154f..82b3ca70b11b 100644
--- a/svtools/source/config/toolpanelopt.cxx
+++ b/svtools/source/config/toolpanelopt.cxx
@@ -38,7 +38,7 @@ using namespace ::osl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star;
-#define ROOTNODE_TOOLPANEL OUString("Office.Impress/MultiPaneGUI/ToolPanel/Visible")
+#define ROOTNODE_TOOLPANEL "Office.Impress/MultiPaneGUI/ToolPanel/Visible"
#define PROPERTYNAME_VISIBLE_IMPRESSVIEW OUString("ImpressView")
#define PROPERTYHANDLE_VISIBLE_IMPRESSVIEW 0
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index 104317b50141..f7fc478d7254 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -154,7 +154,7 @@ void FilterMatch::createWildCardFilterList(const OUString& _rFilterList,::std::v
else
{
// no filter is given -> match all
- _rFilters.push_back( WildCard(OUString("*")) );
+ _rFilters.push_back( WildCard("*") );
}
}
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx
index 7d59771ea77d..b07207d88332 100644
--- a/svtools/source/dialogs/addresstemplate.cxx
+++ b/svtools/source/dialogs/addresstemplate.cxx
@@ -286,7 +286,7 @@ void AssignmentPersistentData::ImplCommit()
AssignmentPersistentData::AssignmentPersistentData()
- :ConfigItem( OUString( "Office.DataAccess/AddressBook" ))
+ :ConfigItem("Office.DataAccess/AddressBook")
{
Sequence< OUString > aStoredNames = GetNodeNames("Fields");
const OUString* pStoredNames = aStoredNames.getConstArray();
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index fc8c2ff5cbb6..0ca611f5d45f 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -626,7 +626,7 @@ void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const OUSt
{
MapMode aMM( MapUnit::MapAppFont );
Size aAppFontSz = pOut->LogicToLogic( Size( 0, 8 ), &aMM, nullptr );
- vcl::Font aFnt( OUString("Helvetica"), aAppFontSz );
+ vcl::Font aFnt( "Helvetica", aAppFontSz );
aFnt.SetTransparent( true );
aFnt.SetColor( Color( COL_LIGHTRED ) );
aFnt.SetWeight( WEIGHT_BOLD );
diff --git a/svtools/source/uno/addrtempuno.cxx b/svtools/source/uno/addrtempuno.cxx
index 1138aaa5e7dc..5796b06dc7a6 100644
--- a/svtools/source/uno/addrtempuno.cxx
+++ b/svtools/source/uno/addrtempuno.cxx
@@ -156,14 +156,14 @@ namespace {
Sequence< Any > aArguments(5);
Any* pArguments = aArguments.getArray();
// the parent window
- *pArguments++ <<= PropertyValue(OUString( "ParentWindow" ), -1, makeAny( xParentWindow ), PropertyState_DIRECT_VALUE);
+ *pArguments++ <<= PropertyValue( "ParentWindow", -1, makeAny( xParentWindow ), PropertyState_DIRECT_VALUE);
// the data source to use
- *pArguments++ <<= PropertyValue(OUString( "DataSource" ), -1, makeAny( xDataSource ), PropertyState_DIRECT_VALUE);
- *pArguments++ <<= PropertyValue(OUString( "DataSourceName" ), -1, makeAny( sDataSourceName ), PropertyState_DIRECT_VALUE);
+ *pArguments++ <<= PropertyValue( "DataSource", -1, makeAny( xDataSource ), PropertyState_DIRECT_VALUE);
+ *pArguments++ <<= PropertyValue( "DataSourceName", -1, makeAny( sDataSourceName ), PropertyState_DIRECT_VALUE);
// the table to use
- *pArguments++ <<= PropertyValue(OUString( "Command" ), -1, makeAny( sCommand ), PropertyState_DIRECT_VALUE);
+ *pArguments++ <<= PropertyValue( "Command", -1, makeAny( sCommand ), PropertyState_DIRECT_VALUE);
// the title
- *pArguments++ <<= PropertyValue(OUString( "Title" ), -1, makeAny( sTitle ), PropertyState_DIRECT_VALUE);
+ *pArguments++ <<= PropertyValue( "Title", -1, makeAny( sTitle ), PropertyState_DIRECT_VALUE);
OGenericUnoDialog::initialize(aArguments);
return;
}