summaryrefslogtreecommitdiff
path: root/include/com
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-23 20:53:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-09-24 07:17:29 +0000
commitc09a0d8516b7a53e8e9dd802ba63c17ba6ee20d3 (patch)
tree3d57ed1962f39be8bb87fedecce606e81d4bf9b6 /include/com
parent0a56da5b110d6a3329ed7ebf296856f839e9980c (diff)
fix build with coverity 7.0.2 and gcc 4.8.3
these "forbid use with ambiguous type" things already appear with deleted markup in Any.h which is included by Any.hxx WARNING: cov-emit returned with code 2 "coverity/include/com/sun/star/uno/Any.hxx", line 163: error #1810: function "com::sun::star::uno::Any::has<T>() const [with T=sal_uInt16]" (declared at line 244 of "coverity/include/com/sun/star/uno/Any.h") cannot be specialized because it is deleted bool Any::has<sal_uInt16>() const; ^ "coverity/include/com/sun/star/uno/Any.hxx", line 604: error #1810: function "com::sun::star::uno::Any::get<T>() const [with T=sal_uInt16]" (declared at line 243 of "coverity/include/com/sun/star/uno/Any.h") cannot be specialized because it is deleted sal_uInt16 Any::get<sal_uInt16>() const; Change-Id: I7d8b8ee1015c3e598143a2240297ce81a9e36987 Reviewed-on: https://gerrit.libreoffice.org/11611 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/com')
-rw-r--r--include/com/sun/star/uno/Any.hxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/com/sun/star/uno/Any.hxx b/include/com/sun/star/uno/Any.hxx
index edb0da42297b..8d5b7dd19446 100644
--- a/include/com/sun/star/uno/Any.hxx
+++ b/include/com/sun/star/uno/Any.hxx
@@ -158,11 +158,6 @@ inline bool Any::has() const
(uno_ReleaseFunc) cpp_release );
}
-// not impl: forbid use with ambiguous type (sal_Unicode, sal_uInt16)
-template <>
-bool Any::has<sal_uInt16>() const;
-
-
inline bool Any::operator == ( const Any & rAny ) const
{
return ::uno_type_equalData(
@@ -599,9 +594,6 @@ T Any::get() const
}
return value;
}
-// not impl: forbid use with ambiguous type (sal_Unicode, sal_uInt16)
-template <>
-sal_uInt16 Any::get<sal_uInt16>() const;
/**
Support for Any in std::ostream (and thus in CPPUNIT_ASSERT or SAL_INFO