diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-18 16:12:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-19 08:55:21 +0200 |
commit | 96710f8e466d44047ea4ac9cb8c70dc7664f5c73 (patch) | |
tree | 8c3eb8c7aaf1eec6c6248502e1fc8b43f9dc18a9 /oox | |
parent | e80b9f344aeb88bdbb42d846c0a094d86ee327dc (diff) |
convert OUString::match to OUString::endsWith
Convert code like:
rTxt.match( "---", rTxt.getLength()-3 )
to:
rTxt.endsWith( "---" )
Change-Id: Iada74c5e714f7234f25b326526843a36255d5599
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/vml/vmlinputstream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/vml/vmlinputstream.cxx b/oox/source/vml/vmlinputstream.cxx index f534ecf2ea0c..70896e1952ff 100644 --- a/oox/source/vml/vmlinputstream.cxx +++ b/oox/source/vml/vmlinputstream.cxx @@ -355,7 +355,7 @@ void InputStream::updateBuffer() throw (IOException, RuntimeException) if( aElement.match( maOpeningCData ) ) { // search the end tag ']]>' - while( ((aElement.getLength() < maClosingCData.getLength()) || !aElement.match( maClosingCData, aElement.getLength() - maClosingCData.getLength() )) && !mxTextStrm->isEOF() ) + while( ((aElement.getLength() < maClosingCData.getLength()) || !aElement.endsWith( maClosingCData )) && !mxTextStrm->isEOF() ) aElement += readToElementEnd(); // copy the entire CDATA part aBuffer.append( aElement ); |