summaryrefslogtreecommitdiff
path: root/include/rtl/strbuf.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-10 15:51:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-10 15:55:26 +0100
commit5e08f6103ba4baa3300cd18223f8f60c4d53f3f6 (patch)
tree7f05d6a2609eaca5c40aba8cd4379ef51be92e3c /include/rtl/strbuf.hxx
parentcc407e50e8a1a74f9d1ed29d444dce9bd2e9167a (diff)
Fix addition of OStringBuffer::append(bool) overload
...and while at it, improve generated documentation. Change-Id: I6b80b19f18cd41cd01e272bbb6e91aad2f7853f3
Diffstat (limited to 'include/rtl/strbuf.hxx')
-rw-r--r--include/rtl/strbuf.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/rtl/strbuf.hxx b/include/rtl/strbuf.hxx
index 9fd9c1234ca6..1586c4e544de 100644
--- a/include/rtl/strbuf.hxx
+++ b/include/rtl/strbuf.hxx
@@ -542,6 +542,8 @@ public:
@param b a <code>bool</code>.
@return this string buffer.
+
+ @since LibreOffice 4.3
*/
OStringBuffer & append(bool b)
{
@@ -549,6 +551,16 @@ public:
return append( sz, rtl_str_valueOfBoolean( sz, b ) );
}
+ /// @cond INTERNAL
+ // Pointer can be automatically converted to bool, which is unwanted here.
+ // Explicitly delete all pointer append() overloads to prevent this
+ // (except for char* overload, which is handled elsewhere).
+ template< typename T >
+ typename internal::Enable< void,
+ !internal::CharPtrDetector< T* >::ok >::Type
+ append( T* ) SAL_DELETED_FUNCTION;
+ /// @endcond
+
/**
Appends the string representation of the <code>char</code>
argument to this string buffer.