diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-14 17:45:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-08-15 09:11:37 +0200 |
commit | d6740be71dec92644a14ebda4ad87b6678c6b95a (patch) | |
tree | 5ce511c32db07e34aed62c03d499b48d0a81efdb /svtools | |
parent | e4915084e55ed06378486cdb943efdbb2b744048 (diff) |
convert include/svtools/inetimg.hxx from String to OUString
Change-Id: I1ccca64a1e66e178e7dc35f926fefff26ab0598e
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/urlobj/inetimg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/urlobj/inetimg.cxx b/svtools/source/urlobj/inetimg.cxx index e57c194b8870..17591c7158f0 100644 --- a/svtools/source/urlobj/inetimg.cxx +++ b/svtools/source/urlobj/inetimg.cxx @@ -115,16 +115,16 @@ sal_Bool INetImage::Read( SvStream& rIStm, sal_uLong nFormat ) rIStm.Seek( nFilePos + nAltOffset ); aAlternateText = read_zeroTerminated_uInt8s_ToOUString(rIStm, eSysCSet); } - else if( aAlternateText.Len() ) - aAlternateText.Erase(); + else if( !aAlternateText.isEmpty() ) + aAlternateText = ""; if( nAnchorOffset ) { rIStm.Seek( nFilePos + nAnchorOffset ); aTargetURL = read_zeroTerminated_uInt8s_ToOUString(rIStm, eSysCSet); } - else if( aTargetURL.Len() ) - aTargetURL.Erase(); + else if( !aTargetURL.isEmpty() ) + aTargetURL = ""; bRet = 0 == rIStm.GetError(); } |