Kaydet (Commit) ef3fb927 authored tarafından Caolán McNamara's avatar Caolán McNamara

I want HAVE_SFINAE_ANONYMOUS_BROKEN here rather than RTL_FAST_STRING

Change-Id: Ie5cd55aa7ba4773f3cffbed924467787596dfc9d
üst 7d9a7020
......@@ -59,7 +59,7 @@ struct OOO_DLLPUBLIC_XMLREADER Span {
begin, length, text.getStr(), text.getLength()) == 0;
}
#ifdef RTL_FAST_STRING
#ifndef HAVE_SFINAE_ANONYMOUS_BROKEN
/**
@overload
This function accepts an ASCII string literal as its argument.
......@@ -68,7 +68,7 @@ struct OOO_DLLPUBLIC_XMLREADER Span {
equals( T& literal, typename rtl::internal::ConstCharArrayDetector< T, rtl::internal::Dummy >::Type = rtl::internal::Dummy() ) SAL_THROW(())
{
assert( strlen( literal ) == rtl::internal::ConstCharArrayDetector< T >::size - 1 );
return rtl_str_compare_WithLength( begin, length, literal, rtl::internal::ConstCharArrayDetector< T, void >::size - 1 );
return rtl_str_compare_WithLength( begin, length, literal, rtl::internal::ConstCharArrayDetector< T, void >::size - 1 ) == 0;
}
#endif
......
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