diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 04:51:28 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 04:51:28 +0100 |
commit | 8035a3af260729ee47a1d805811e17d06d035e3d (patch) | |
tree | e3040a30673497421525ea639add7f7b31a55a65 /sfx2 | |
parent | b5d7f9208294803cc7a2dfb4c2a4cb17d7739947 (diff) |
some further OUString cleanup
Change-Id: I13eb94092e29ececc9fbf494074acde5f893b605
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 12 | ||||
-rw-r--r-- | sfx2/source/appl/shutdowniconw32.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/filedlghelper.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/mailmodel.cxx | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index 868b3967d471..c6df67aabb77 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -524,7 +524,7 @@ IMPL_STATIC_LINK( ShutdownIcon, DialogClosedHdl_Impl, FileDialogHelper*, EMPTYAR { OUString aBaseDirURL = sFiles[0]; if ( !aBaseDirURL.isEmpty() && aBaseDirURL[aBaseDirURL.getLength()-1] != '/' ) - aBaseDirURL += OUString("/"); + aBaseDirURL += "/"; int iFiles; for ( iFiles = 1; iFiles < nFiles; iFiles++ ) @@ -786,9 +786,9 @@ static OUString getAutostartDir( bool bCreate = false ) OUString aHomeURL; osl::Security().getHomeDir( aHomeURL ); ::osl::File::getSystemPathFromFileURL( aHomeURL, aShortcut ); - aShortcut += OUString( "/.config" ); + aShortcut += "/.config"; } - aShortcut += OUString( "/autostart" ); + aShortcut += "/autostart"; if (bCreate) { OUString aShortcutUrl; @@ -813,14 +813,14 @@ rtl::OUString ShutdownIcon::getShortcutName() aShortcutName = SFX2_RESSTR(STR_QUICKSTART_LNKNAME); } #ifdef WNT - aShortcutName += OUString( ".lnk" ); + aShortcutName += ".lnk"; OUString aShortcut(GetAutostartFolderNameW32()); - aShortcut += OUString( "\\" ); + aShortcut += "\\"; aShortcut += aShortcutName; #else // UNX OUString aShortcut = getAutostartDir(); - aShortcut += OUString( "/qstart.desktop" ); + aShortcut += "/qstart.desktop"; #endif // UNX return aShortcut; #endif // ENABLE_QUICKSTART_APPLET diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx index dbef7e11233a..3220bb5c4a86 100644 --- a/sfx2/source/appl/shutdowniconw32.cxx +++ b/sfx2/source/appl/shutdowniconw32.cxx @@ -829,7 +829,7 @@ bool ShutdownIcon::IsQuickstarterInstalled() aOfficepath = aOfficepath.copy(0, i); OUString quickstartExe(aOfficepath); - quickstartExe += OUString( "\\quickstart.exe" ); + quickstartExe += "\\quickstart.exe"; return FileExistsW( reinterpret_cast<LPCWSTR>(quickstartExe.getStr()) ); } @@ -845,7 +845,7 @@ void ShutdownIcon::EnableAutostartW32( const rtl::OUString &aShortcut ) aOfficepath = aOfficepath.copy(0, i); OUString quickstartExe(aOfficepath); - quickstartExe += OUString( "\\quickstart.exe" ); + quickstartExe += "\\quickstart.exe"; CreateShortcut( quickstartExe, aOfficepath, aShortcut, OUString(), OUString() ); } diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index 8245d08b31ec..164bc7eda79f 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -497,7 +497,7 @@ void FileDialogHelper_Impl::updateExportButton() OUString sLabel = maButtonLabel; // filter with options -> append ellipses on export button label if ( CheckFilterOptionsCapability( getCurentSfxFilter() ) ) - sLabel += OUString( "..." ); + sLabel += "..."; if ( sOldLabel != sLabel ) { diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 8522a2e7fbb7..f56b4bcf7d44 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -868,7 +868,7 @@ SfxMailModel::SendMailResult SfxMailModel::Send( const css::uno::Reference< css: OUString baseName( maAttachedDocuments[0].copy( maAttachedDocuments[0].lastIndexOf( '/' ) + 1 ) ); OUString subject( baseName ); if ( maAttachedDocuments.size() > 1 ) - subject += OUString(", ..."); + subject += ", ..."; xSimpleMailMessage->setSubject( subject ); } xSimpleMailMessage->setAttachement( aAttachmentSeq ); |