summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 11:04:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 14:13:03 +0200
commit7de833a626cea8cd741ba1d971fea6f0c3a2660b (patch)
tree2750dbed735b4df7a9e82add532df49049cc52e8 /sw
parent6f9f9491bdef676f969898bd653db9905d14f5e8 (diff)
simplify calls OUString::copy in foo.copy(x, foo.getLength() - x)
Change-Id: I20318c77dcc3bc2a64336541ef5a3f412bfd9483 Reviewed-on: https://gerrit.libreoffice.org/39803 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/html/parcss1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/html/parcss1.cxx b/sw/source/filter/html/parcss1.cxx
index e3c6c44921be..ed043664ab97 100644
--- a/sw/source/filter/html/parcss1.cxx
+++ b/sw/source/filter/html/parcss1.cxx
@@ -1127,7 +1127,7 @@ bool CSS1Parser::ParseStyleSheet( const OUString& rIn )
sal_Unicode c;
while( !aTmp.isEmpty() &&
( ' '==(c=aTmp[0]) || '\t'==c || '\r'==c || '\n'==c ) )
- aTmp = aTmp.copy( 1, aTmp.getLength() - 1 );
+ aTmp = aTmp.copy( 1 );
while( !aTmp.isEmpty() && ( ' '==(c=aTmp[aTmp.getLength()-1])
|| '\t'==c || '\r'==c || '\n'==c ) )
@@ -1136,7 +1136,7 @@ bool CSS1Parser::ParseStyleSheet( const OUString& rIn )
// remove SGML comments
if( aTmp.getLength() >= 4 &&
aTmp.startsWith( "<!--" ) )
- aTmp = aTmp.copy( 4, aTmp.getLength() - 4 );
+ aTmp = aTmp.copy( 4 );
if( aTmp.getLength() >=3 &&
aTmp.endsWith("-->") )