summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-17 12:17:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-18 15:13:51 +0100
commit5819bec966782b844eb2953f6636a84a01212234 (patch)
tree13d291ba52f014cf6f948379c4bab8ac44b45035 /sd
parent0e0aca151b36462cf5f5592fa7e7d21b5c96472d (diff)
ditch last (?) String::String(const sal_Unicode*)
Change-Id: I47ce16581a9923729a7e5e1e5cedaf91e4b215ac
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/epptso.cxx5
1 files changed, 2 insertions, 3 deletions
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;
}