Kaydet (Commit) 4b89bd55 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Speed up xmlreader::Span::equals

Change-Id: Id1613a100e96667717cc32f44f84c0916055ea01
üst d9f303a0
......@@ -50,8 +50,10 @@ struct OOO_DLLPUBLIC_XMLREADER Span {
inline bool is() const { return begin != 0; }
inline bool equals(Span const & text) const {
return rtl_str_compare_WithLength(
begin, length, text.begin, text.length) == 0;
return length == text.length
&& (rtl_str_compare_WithLength(
begin, length, text.begin, text.length)
== 0);
}
inline bool equals(char const * textBegin, sal_Int32 textLength) const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment