summaryrefslogtreecommitdiff
path: root/oox/source/vml/vmlinputstream.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-10 09:06:31 +0200
committerNoel Grandin <noel@peralex.com>2013-12-12 13:15:24 +0200
commit7e72b9de5545ac3baaa44e2d7f11c2872b1677a7 (patch)
tree32365ce7da257a8973d5d9e0c71e67b18e7cf489 /oox/source/vml/vmlinputstream.cxx
parentfb847101519ad74c02183672c04ebf1d700aae83 (diff)
use OUString::endsWith where possible
Change-Id: Ie2b68f79a7f9a54899f1d727f9a1fc7cfb14d90a
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 48d0a3c42987..edd4cd4b2898 100644
--- a/oox/source/vml/vmlinputstream.cxx
+++ b/oox/source/vml/vmlinputstream.cxx
@@ -380,7 +380,7 @@ OString InputStream::readToElementBegin() throw (IOException, RuntimeException)
OString InputStream::readToElementEnd() throw (IOException, RuntimeException)
{
OString aText = OUStringToOString( mxTextStrm->readString( maClosingBracket, sal_False ), RTL_TEXTENCODING_ISO_8859_1 );
- OSL_ENSURE( !aText.isEmpty() && (aText[ aText.getLength() - 1 ] == '>'), "InputStream::readToElementEnd - missing closing bracket of XML element" );
+ OSL_ENSURE( aText.endsWith(">"), "InputStream::readToElementEnd - missing closing bracket of XML element" );
return aText;
}