summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-04 13:36:03 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 11:21:24 +0200
commit2f2416ff060c780ad87b4d3979112f52da2ae902 (patch)
treeaad46b61dbcc9c72c18b23fd8ea6f454873f0118 /cui
parent3ef88d370e5b448c8c62a759ec073bb33a9f6965 (diff)
remove unnecessary use of OUString constructor in CUI module
Change-Id: Ib6cc0f089e9b3cbcfee67c6a780527e148f3c382
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/macropg.cxx10
-rw-r--r--cui/source/dialogs/scriptdlg.cxx10
-rw-r--r--cui/source/options/cfgchart.cxx2
-rw-r--r--cui/source/options/optaboutconfig.cxx4
-rw-r--r--cui/source/options/optinet2.cxx6
5 files changed, 16 insertions, 16 deletions
diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx
index ab01f069a0a0..acad203e47cc 100644
--- a/cui/source/customize/macropg.cxx
+++ b/cui/source/customize/macropg.cxx
@@ -635,8 +635,8 @@ long _SvxMacroTabPage::GenericHandler_Impl( _SvxMacroTabPage* pThis, PushButton*
if( pBtn == pImpl->pDeletePB )
{
// delete pressed
- sEventType = OUString( "Script" );
- sEventURL = OUString();
+ sEventType = "Script" ;
+ sEventURL = "";
if(!pThis->bAppEvents)
pThis->bDocModified = true;
}
@@ -653,7 +653,7 @@ long _SvxMacroTabPage::GenericHandler_Impl( _SvxMacroTabPage* pThis, PushButton*
short ret = pAssignDlg->Execute();
if( ret )
{
- sEventType = OUString("UNO");
+ sEventType = "UNO";
sEventURL = pAssignDlg->getURL();
if(!pThis->bAppEvents)
pThis->bDocModified = true;
@@ -669,7 +669,7 @@ long _SvxMacroTabPage::GenericHandler_Impl( _SvxMacroTabPage* pThis, PushButton*
short ret = pDlg->Execute();
if ( ret )
{
- sEventType = OUString("Script");
+ sEventType = "Script";
sEventURL = pDlg->GetScriptURL();
if(!pThis->bAppEvents)
pThis->bDocModified = true;
@@ -872,7 +872,7 @@ SvxMacroAssignDlg::~SvxMacroAssignDlg()
IMPL_LINK_NOARG(AssignComponentDialog, ButtonHandler)
{
OUString aMethodName = maMethodEdit.GetText();
- maURL = OUString();
+ maURL = "";
if( !aMethodName.isEmpty() )
{
maURL = aVndSunStarUNO;
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
index e5ffda851925..141c65fdd46e 100644
--- a/cui/source/dialogs/scriptdlg.cxx
+++ b/cui/source/dialogs/scriptdlg.cxx
@@ -587,7 +587,7 @@ void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode >& node )
return;
}
- OUString sName("Editable") ;
+ OUString sName("Editable");
if ( getBoolProperty( xProps, sName ) )
{
@@ -598,7 +598,7 @@ void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode >& node )
m_pEditButton->Disable();
}
- sName = OUString("Deletable") ;
+ sName = "Deletable";
if ( getBoolProperty( xProps, sName ) )
{
@@ -609,7 +609,7 @@ void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode >& node )
m_pDelButton->Disable();
}
- sName = OUString("Creatable") ;
+ sName = "Creatable";
if ( getBoolProperty( xProps, sName ) )
{
@@ -620,7 +620,7 @@ void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode >& node )
m_pCreateButton->Disable();
}
- sName = OUString("Renamable") ;
+ sName = "Renamable";
if ( getBoolProperty( xProps, sName ) )
{
@@ -1310,7 +1310,7 @@ OUString GetErrorMessage(
OUString language = unknown;
OUString script = unknown;
OUString line = unknown;
- OUString type = OUString();
+ OUString type = "";
OUString message = eScriptError.Message;
if ( !eScriptError.language.isEmpty() )
diff --git a/cui/source/options/cfgchart.cxx b/cui/source/options/cfgchart.cxx
index ec3acc9cf66d..2fdd1e463d7a 100644
--- a/cui/source/options/cfgchart.cxx
+++ b/cui/source/options/cfgchart.cxx
@@ -177,7 +177,7 @@ SvxChartOptions::SvxChartOptions() :
mbIsInitialized( sal_False )
{
maPropertyNames.realloc( 1 );
- maPropertyNames[ 0 ] = OUString("DefaultColor/Series");
+ maPropertyNames[ 0 ] = "DefaultColor/Series";
}
SvxChartOptions::~SvxChartOptions()
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index 9be127b90134..57e51905c2b3 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -282,7 +282,7 @@ void CuiAboutConfigTabPage::FillItems( Reference< XNameAccess >xNameAccess, OUSt
case ::com::sun::star::uno::TypeClass_SEQUENCE :
//case ::com::sun::star::uno::TypeClass_ARRAY :
{
- sValue = OUString("");
+ sValue = "";
if( OUString("[]long") ==aProp.getValueTypeName() ||
OUString("[]short")==aProp.getValueTypeName() )
{
@@ -337,7 +337,7 @@ void CuiAboutConfigTabPage::FillItems( Reference< XNameAccess >xNameAccess, OUSt
sValue = aHyp;
}
}else
- sValue = OUString("");
+ sValue = "";
}
}
}
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx
index 249fece993b8..f6a07de4b01a 100644
--- a/cui/source/options/optinet2.cxx
+++ b/cui/source/options/optinet2.cxx
@@ -201,7 +201,7 @@ SvxProxyTabPage::SvxProxyTabPage(Window* pParent, const SfxItemSet& rSet)
OUString aConfigRoot( "org.openoffice.Inet/Settings" );
beans::NamedValue aProperty;
- aProperty.Name = OUString( "nodepath" );
+ aProperty.Name = "nodepath";
aProperty.Value = makeAny( aConfigRoot );
Sequence< Any > aArgumentList( 1 );
@@ -556,7 +556,7 @@ void SvxScriptExecListBox::RequestHelp( const HelpEvent& rHEvt )
if( nPos <= nTop+nCount-1 ) // if find the matching entry, get its content.
aHelpText = GetEntry(nPos);
if( aHelpText.getLength() && GetTextWidth(aHelpText)<GetOutputSizePixel().Width() )
- aHelpText = OUString(); // if the entry is quite short, clear the helping tip content.
+ aHelpText = ""; // if the entry is quite short, clear the helping tip content.
aItemRect = Rectangle(Point(0,0),GetSizePixel());
aPt = Point(OutputToScreenPixel( aItemRect.TopLeft() ));
aItemRect.Left() = aPt.X();
@@ -1274,7 +1274,7 @@ IMPL_LINK( SvxEMailTabPage, FileDialogHdl_Impl, PushButton*, pButton )
0 );
OUString sPath = m_pMailerURLED->GetText();
if ( sPath.isEmpty() )
- sPath = OUString("/usr/bin");
+ sPath = "/usr/bin";
OUString sUrl;
::utl::LocalFileHelper::ConvertPhysicalNameToURL(sPath, sUrl);