[Libreoffice-commits] core.git: sfx2/source
Michael Stahl
mstahl at redhat.com
Tue Jul 2 04:20:18 PDT 2013
sfx2/source/doc/docfile.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 6098d0283b47b36011075f3595fe21b300046a33
Author: Michael Stahl <mstahl at redhat.com>
Date: Tue Jul 2 13:14:18 2013 +0200
SfxMedium: fix -Werror=address (wrong TempFile ctor called)
Change-Id: I1bafc953f21c7e139da5fc4594b37d6d75ed88de
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 121b132..f35d49e 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -3639,7 +3639,9 @@ OUString SfxMedium::SwitchDocumentToTempFile()
if ( !aOrigURL.isEmpty() )
{
sal_Int32 nPrefixLen = aOrigURL.lastIndexOf( '.' );
- String aExt = ( nPrefixLen == -1 ) ? String() : String( aOrigURL.copy( nPrefixLen ) );
+ OUString const aExt = (nPrefixLen == -1)
+ ? OUString()
+ : aOrigURL.copy(nPrefixLen);
OUString aNewURL = ::utl::TempFile( String(), &aExt ).GetURL();
// TODO/LATER: In future the aLogicName should be set to shared folder URL
More information about the Libreoffice-commits
mailing list