diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 08:43:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 08:43:56 +0200 |
commit | 99661d3f5f902a004883a4be21649245de68a2fa (patch) | |
tree | 0ad57fae91dfe6ab7ed5ee807ed38422f0d32aad /codemaker | |
parent | 42c848c506b53a6de21c3b0129fd11d2f74e20b2 (diff) |
Deprecate getCppuType et al in favor of cppu::UnoType
...which doesn't suffer from the sal_uInt16 vs. sal_Unicode ambiguity.
Change-Id: I4de265145e720615652e88b6a68e03903ad8cba2
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index d8e3ea7c6ef1..0b3e9fd9b6b4 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -357,7 +357,7 @@ void CppuType::dumpGetCppuTypePostamble(FileStream & out) { } } dumpTemplateHead(out); - out << ("inline ::css::uno::Type const & SAL_CALL" + out << ("SAL_DEPRECATED(\"use cppu::UnoType\") inline ::css::uno::Type const & SAL_CALL" " getCppuType(SAL_UNUSED_PARAMETER "); dumpType(out, name_); dumpTemplateParameters(out); @@ -560,7 +560,7 @@ void CppuType::dumpHFileContent( } out << "\n"; dumpTemplateHead(out); - out << "inline ::css::uno::Type const & SAL_CALL getCppuType("; + out << "SAL_DEPRECATED(\"use cppu::UnoType\") inline ::css::uno::Type const & SAL_CALL getCppuType("; dumpType(out, name_, true); dumpTemplateParameters(out); out << " *);\n\n#endif\n"; @@ -569,7 +569,7 @@ void CppuType::dumpHFileContent( void CppuType::dumpGetCppuType(FileStream & out) { if (name_ == "com.sun.star.uno.XInterface") { out << indent() - << ("inline ::css::uno::Type const & SAL_CALL" + << ("SAL_DEPRECATED(\"use cppu::UnoType\") inline ::css::uno::Type const & SAL_CALL" " getCppuType(SAL_UNUSED_PARAMETER "); dumpType(out, name_, true); out << " *) {\n"; @@ -581,7 +581,7 @@ void CppuType::dumpGetCppuType(FileStream & out) { out << indent() << "}\n"; } else if (name_ == "com.sun.star.uno.Exception") { out << indent() - << ("inline ::css::uno::Type const & SAL_CALL" + << ("SAL_DEPRECATED(\"use cppu::UnoType\") inline ::css::uno::Type const & SAL_CALL" " getCppuType(SAL_UNUSED_PARAMETER "); dumpType(out, name_, true); out << " *) {\n"; @@ -1110,9 +1110,9 @@ void InterfaceType::dumpHxxFile( << codemaker::cpp::scopedCppName(u2b(name_)) << "::static_type(SAL_UNUSED_PARAMETER void *) {\n"; inc(); - out << indent() << "return ::getCppuType(static_cast< "; - dumpType(out, name_); - out << " * >(0));\n"; + out << indent() << "return ::cppu::UnoType< "; + dumpType(out, name_, false, false, true); + out << " >::get();\n"; dec(); out << "}\n\n#endif // "<< headerDefine << "\n"; } |