diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-28 22:27:53 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-28 23:00:54 +0200 |
commit | bf68985627a7e0520674a8eb0d0f037e71f432fe (patch) | |
tree | ace77377c1a2a45753127de723ea303619095e42 /sal | |
parent | 60573363d87bb1335ff8ac0c0623f0ec3e0dc319 (diff) |
string literal overload in the right place
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/rtl/ustrbuf.hxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx index a89d87716fe5..ee17f77d3815 100644 --- a/sal/inc/rtl/ustrbuf.hxx +++ b/sal/inc/rtl/ustrbuf.hxx @@ -375,6 +375,19 @@ public: } /** + @overload + This function accepts an ASCII string literal as its argument. + @since LibreOffice 3.6 + */ + template< typename T > + typename internal::ConstCharArrayDetector< T, OUStringBuffer& >::Type append( T& literal ) + { + rtl_uStringbuffer_insert_ascii( &pData, &nCapacity, getLength(), literal, + internal::ConstCharArrayDetector< T, void >::size - 1 ); + return *this; + } + + /** Appends a 8-Bit ASCII character string to this string buffer. Since this method is optimized for performance. the ASCII @@ -420,19 +433,6 @@ public: } /** - @overload - This function accepts an ASCII string literal as its argument. - @since LibreOffice 3.6 - */ - template< typename T > - typename internal::ConstCharArrayDetector< T, OUStringBuffer& >::Type append( T& literal ) - { - rtl_uStringbuffer_insert_ascii( &pData, &nCapacity, getLength(), literal, - internal::ConstCharArrayDetector< T, void >::size - 1 ); - return *this; - } - - /** Appends the string representation of the <code>sal_Bool</code> argument to the string buffer. |