summaryrefslogtreecommitdiff
path: root/oox/source/vml/vmlinputstream.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-18 16:12:40 +0200
committerNoel Grandin <noel@peralex.com>2014-03-19 08:55:21 +0200
commit96710f8e466d44047ea4ac9cb8c70dc7664f5c73 (patch)
tree8c3eb8c7aaf1eec6c6248502e1fc8b43f9dc18a9 /oox/source/vml/vmlinputstream.cxx
parente80b9f344aeb88bdbb42d846c0a094d86ee327dc (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/source/vml/vmlinputstream.cxx')
-rw-r--r--oox/source/vml/vmlinputstream.cxx2
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 );