[Libreoffice-commits] core.git: xmlreader/inc
Caolán McNamara
caolanm at redhat.com
Tue Feb 19 13:32:41 PST 2013
xmlreader/inc/xmlreader/span.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ef3fb927977681c3e5b5160e961e240063a8cb70
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Feb 19 17:06:39 2013 +0000
I want HAVE_SFINAE_ANONYMOUS_BROKEN here rather than RTL_FAST_STRING
Change-Id: Ie5cd55aa7ba4773f3cffbed924467787596dfc9d
diff --git a/xmlreader/inc/xmlreader/span.hxx b/xmlreader/inc/xmlreader/span.hxx
index f7cd157..23df2ba 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
More information about the Libreoffice-commits
mailing list