From 5819bec966782b844eb2953f6636a84a01212234 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 17 Jun 2012 12:17:35 +0100 Subject: ditch last (?) String::String(const sal_Unicode*) Change-Id: I47ce16581a9923729a7e5e1e5cedaf91e4b215ac --- sd/source/filter/eppt/epptso.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sd') diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index 70cf9a420e2b..dcb752f6a9ed 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -1209,9 +1209,8 @@ void PPTWriter::ImplWriteTextStyleAtom( SvStream& rOut, int nTextInstance, sal_u aFile = aUrl.PathToFileName(); else if ( INET_PROT_SMB == aUrl.GetProtocol() ) { - // Convert smb notation to '\\' - aFile = aUrl.GetMainURL( INetURLObject::NO_DECODE ); - aFile = String( aFile.GetBuffer() + 4 ); // skip the 'smb:' part + // Convert smb notation to '\\' and skip the 'smb:' part + aFile = aUrl.GetMainURL(INetURLObject::NO_DECODE).copy(4); aFile.SearchAndReplaceAll( '/', '\\' ); aTarget = aFile; } -- cgit v1.2.3