summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2017-05-02 13:04:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-04 08:39:18 +0200
commit1fdb0e1897b063c7a0f29ed5a0de440ea057b2ed (patch)
treec3b81991090cefd9468fe0d3dced9da6fb073971 /vcl
parent0025fc13d805751f8eeb14febbdd0033e0a6d91e (diff)
Replace all OUString("") with OUString()
Change-Id: Ie14c4d76cb61cfbe0410103adfc1afc8ade0f3e0 Reviewed-on: https://gerrit.libreoffice.org/37146 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/svpinst.cxx2
-rw-r--r--vcl/osx/salinst.cxx2
-rw-r--r--vcl/source/app/IconThemeInfo.cxx2
-rw-r--r--vcl/source/app/svapp.cxx2
-rw-r--r--vcl/source/edit/vclmedit.cxx6
-rw-r--r--vcl/source/filter/FilterConfigCache.cxx28
-rw-r--r--vcl/unx/generic/app/salinst.cxx2
-rw-r--r--vcl/win/app/salinst.cxx2
8 files changed, 23 insertions, 23 deletions
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index e84316045ab5..8e9cdbc9543c 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -417,7 +417,7 @@ SalSession* SvpSalInstance::CreateSalSession()
OUString SvpSalInstance::GetConnectionIdentifier()
{
- return OUString("");
+ return OUString();
}
void SvpSalInstance::StopTimer()
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index 53b529e0b67e..b3b97e5ee01d 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -916,7 +916,7 @@ void AquaSalInstance::DestroyInfoPrinter( SalInfoPrinter* pPrinter )
OUString AquaSalInstance::GetConnectionIdentifier()
{
- return OUString("");
+ return OUString();
}
// We need to re-encode file urls because osl_getFileURLFromSystemPath converts
diff --git a/vcl/source/app/IconThemeInfo.cxx b/vcl/source/app/IconThemeInfo.cxx
index 3c886be55142..88171e985bc3 100644
--- a/vcl/source/app/IconThemeInfo.cxx
+++ b/vcl/source/app/IconThemeInfo.cxx
@@ -31,7 +31,7 @@ filename_from_url(const OUString& url)
{
sal_Int32 slashPosition = url.lastIndexOf( '/' );
if (slashPosition < 0) {
- return OUString("");
+ return OUString();
}
OUString filename = url.copy( slashPosition+1 );
return filename;
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 90cb5d10a7ed..b6b74b8eac6e 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1229,7 +1229,7 @@ OUString Application::GetDisplayName()
else if ( pSVData->maWinData.mpAppWin )
return pSVData->maWinData.mpAppWin->GetText();
else
- return OUString("");
+ return OUString();
}
unsigned int Application::GetScreenCount()
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index c48808c2a942..d699a74658aa 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -1220,17 +1220,17 @@ void VclMultiLineEdit::SetText( const OUString& rStr )
OUString VclMultiLineEdit::GetText() const
{
- return pImpVclMEdit ? pImpVclMEdit->GetText() : OUString("");
+ return pImpVclMEdit ? pImpVclMEdit->GetText() : OUString();
}
OUString VclMultiLineEdit::GetText( LineEnd aSeparator ) const
{
- return pImpVclMEdit ? pImpVclMEdit->GetText( aSeparator ) : OUString("");
+ return pImpVclMEdit ? pImpVclMEdit->GetText( aSeparator ) : OUString();
}
OUString VclMultiLineEdit::GetTextLines( LineEnd aSeparator ) const
{
- return pImpVclMEdit ? pImpVclMEdit->GetTextLines( aSeparator ) : OUString("");
+ return pImpVclMEdit ? pImpVclMEdit->GetTextLines( aSeparator ) : OUString();
}
void VclMultiLineEdit::Resize()
diff --git a/vcl/source/filter/FilterConfigCache.cxx b/vcl/source/filter/FilterConfigCache.cxx
index ab2196dca922..8c3fbecb1acb 100644
--- a/vcl/source/filter/FilterConfigCache.cxx
+++ b/vcl/source/filter/FilterConfigCache.cxx
@@ -313,7 +313,7 @@ OUString FilterConfigCache::GetImportFilterName( sal_uInt16 nFormat )
{
if( nFormat < aImport.size() )
return aImport[ nFormat ].sFilterName;
- return OUString("");
+ return OUString();
}
sal_uInt16 FilterConfigCache::GetImportFormatNumber( const OUString& rFormatName )
@@ -369,42 +369,42 @@ OUString FilterConfigCache::GetImportFormatName( sal_uInt16 nFormat )
{
if( nFormat < aImport.size() )
return aImport[ nFormat ].sUIName;
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetImportFormatMediaType( sal_uInt16 nFormat )
{
if( nFormat < aImport.size() )
return aImport[ nFormat ].sMediaType;
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetImportFormatShortName( sal_uInt16 nFormat )
{
if( nFormat < aImport.size() )
return aImport[ nFormat ].GetShortName();
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetImportFormatExtension( sal_uInt16 nFormat, sal_Int32 nEntry )
{
if ( (nFormat < aImport.size()) && (nEntry < aImport[ nFormat ].lExtensionList.getLength()) )
return aImport[ nFormat ].lExtensionList[ nEntry ];
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetImportFilterType( sal_uInt16 nFormat )
{
if( nFormat < aImport.size() )
return aImport[ nFormat ].sType;
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetImportFilterTypeName( sal_uInt16 nFormat )
{
if( nFormat < aImport.size() )
return aImport[ nFormat ].sFilterType;
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetExternalFilterName(sal_uInt16 nFormat, bool bExport)
@@ -419,7 +419,7 @@ OUString FilterConfigCache::GetExternalFilterName(sal_uInt16 nFormat, bool bExpo
if (nFormat < aImport.size())
return aImport[nFormat].sExternalFilterName;
}
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetImportWildcard(sal_uInt16 nFormat, sal_Int32 nEntry)
@@ -439,7 +439,7 @@ OUString FilterConfigCache::GetExportFilterName( sal_uInt16 nFormat )
{
if( nFormat < aExport.size() )
return aExport[ nFormat ].sFilterName;
- return OUString("");
+ return OUString();
}
sal_uInt16 FilterConfigCache::GetExportFormatNumber(const OUString& rFormatName)
@@ -491,35 +491,35 @@ OUString FilterConfigCache::GetExportFormatName( sal_uInt16 nFormat )
{
if( nFormat < aExport.size() )
return aExport[ nFormat ].sUIName;
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetExportFormatMediaType( sal_uInt16 nFormat )
{
if( nFormat < aExport.size() )
return aExport[ nFormat ].sMediaType;
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetExportFormatShortName( sal_uInt16 nFormat )
{
if( nFormat < aExport.size() )
return aExport[ nFormat ].GetShortName();
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetExportFormatExtension( sal_uInt16 nFormat, sal_Int32 nEntry )
{
if ( (nFormat < aExport.size()) && (nEntry < aExport[ nFormat ].lExtensionList.getLength()) )
return aExport[ nFormat ].lExtensionList[ nEntry ];
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetExportInternalFilterName( sal_uInt16 nFormat )
{
if( nFormat < aExport.size() )
return aExport[ nFormat ].sInternalFilterName;
- return OUString("");
+ return OUString();
}
OUString FilterConfigCache::GetExportWildcard( sal_uInt16 nFormat, sal_Int32 nEntry )
diff --git a/vcl/unx/generic/app/salinst.cxx b/vcl/unx/generic/app/salinst.cxx
index 1bee05ab01ac..c63274db4e4d 100644
--- a/vcl/unx/generic/app/salinst.cxx
+++ b/vcl/unx/generic/app/salinst.cxx
@@ -176,7 +176,7 @@ SalYieldResult X11SalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents,
OUString X11SalInstance::GetConnectionIdentifier()
{
static const char* pDisplay = getenv( "DISPLAY" );
- return pDisplay ? OUString::createFromAscii(pDisplay) : OUString("");
+ return pDisplay ? OUString::createFromAscii(pDisplay) : OUString();
}
SalFrame *X11SalInstance::CreateFrame( SalFrame *pParent, SalFrameStyleFlags nSalFrameStyle )
diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx
index 556199843869..e087b4d1d99b 100644
--- a/vcl/win/app/salinst.cxx
+++ b/vcl/win/app/salinst.cxx
@@ -892,7 +892,7 @@ void WinSalInstance::DestroyObject( SalObject* pObject )
OUString WinSalInstance::GetConnectionIdentifier()
{
- return OUString("");
+ return OUString();
}
/** Add a file to the system shells recent document list if there is any.