summaryrefslogtreecommitdiffstats
path: root/xmlsecurity/source/helper/xsecparser.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-08 14:11:35 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-08 13:16:49 +0000
commit4bf95c4c31dd871065d4042028a4b3ae476dab70 (patch)
tree2935dfd660fc2ee2b914ca27a72077e51e5862f3 /xmlsecurity/source/helper/xsecparser.cxx
parentRemove RTL_CONST* macros from codemaker - pt1 (diff)
downloadcore-4bf95c4c31dd871065d4042028a4b3ae476dab70.tar.gz
core-4bf95c4c31dd871065d4042028a4b3ae476dab70.zip
make use of startsWith()
Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679 Reviewed-on: https://gerrit.libreoffice.org/2599 Tested-by: Fridrich Strba <fridrich@documentfoundation.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'xmlsecurity/source/helper/xsecparser.cxx')
-rw-r--r--xmlsecurity/source/helper/xsecparser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlsecurity/source/helper/xsecparser.cxx b/xmlsecurity/source/helper/xsecparser.cxx
index ce6cedd5d1b7..bb8aec5a31ce 100644
--- a/xmlsecurity/source/helper/xsecparser.cxx
+++ b/xmlsecurity/source/helper/xsecparser.cxx
@@ -106,7 +106,7 @@ void SAL_CALL XSecParser::startElement(
rtl::OUString ouUri = xAttribs->getValueByName(rtl::OUString(RTL_ASCII_USTRINGPARAM(ATTR_URI)));
DBG_ASSERT( ouUri != NULL, "URI == NULL" );
- if (0 == ouUri.compareTo(rtl::OUString(RTL_ASCII_USTRINGPARAM(CHAR_FRAGMENT)),1))
+ if (ouUri.startsWith(CHAR_FRAGMENT))
{
/*
* remove the first character '#' from the attribute value