summaryrefslogtreecommitdiff
path: root/xmlreader
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-02-19 17:06:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-02-19 21:32:21 +0000
commitef3fb927977681c3e5b5160e961e240063a8cb70 (patch)
tree0a756831c00337109ca77cc7c566b979d8701e0d /xmlreader
parent7d9a7020eb5777f5baaa8beb6af5db9a8796c7c9 (diff)
I want HAVE_SFINAE_ANONYMOUS_BROKEN here rather than RTL_FAST_STRING
Change-Id: Ie5cd55aa7ba4773f3cffbed924467787596dfc9d
Diffstat (limited to 'xmlreader')
-rw-r--r--xmlreader/inc/xmlreader/span.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlreader/inc/xmlreader/span.hxx b/xmlreader/inc/xmlreader/span.hxx
index f7cd157b0348..23df2ba99547 100644
--- a/xmlreader/inc/xmlreader/span.hxx
+++ b/xmlreader/inc/xmlreader/span.hxx
@@ -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