diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-19 21:58:48 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-20 09:27:20 +0100 |
commit | 2dc9f1791a24ef1858737eac3ce64c5e2c261744 (patch) | |
tree | 534e541e3a3b8854972731e1dd8c9cc030f5ebc6 /codemaker/source/cppumaker | |
parent | 04a7ac6f062e9296eb643180cf54345bcdb260c4 (diff) |
Fix declaration for ctor functions in generated headers.
Change-Id: I329ff80da68c629d7a82921253c4412563743b34
Diffstat (limited to 'codemaker/source/cppumaker')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index accb1d18b2d2..d3898d993b1b 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -3357,7 +3357,6 @@ void ServiceType::dumpHxxFile( includes.addReference(); includes.addRtlUstringH(); includes.addRtlUstringHxx(); - includes.add("com.sun.star.lang.XInitialization"); includes.add("com.sun.star.uno.DeploymentException"); includes.add("com.sun.star.uno.XComponentContext"); for (std::vector< @@ -3411,14 +3410,17 @@ void ServiceType::dumpHxxFile( includes.dump(o, 0); if (!entity_->getConstructors().empty()) { o << ("\n#if defined ANDROID || defined IOS //TODO\n" + "#include <com/sun/star/lang/XInitialization.hpp>\n" "#include <osl/detail/component-defines.h>\n#endif\n\n" "#if defined LO_URE_CURRENT_ENV && defined LO_URE_CTOR_ENV_") << name_.replaceAll(".", "_dot_") << " && (LO_URE_CURRENT_ENV) == (LO_URE_CTOR_ENV_" << name_.replaceAll(".", "_dot_") << ") && defined LO_URE_CTOR_FUN_" << name_.replaceAll(".", "_dot_") - << "\nextern \"C\" void * SAL_CALL LO_URE_CTOR_FUN_" - << name_.replaceAll(".", "_dot_") << "(void *, void *);\n#endif\n"; + << "\nextern \"C\" ::css::uno::XInterface * SAL_CALL LO_URE_CTOR_FUN_" + << name_.replaceAll(".", "_dot_") + << "(::css::uno::XComponentContext *, ::css::uno::Sequence< " + "::css::uno::Any > const &);\n#endif\n"; } o << "\n"; if (codemaker::cppumaker::dumpNamespaceOpen(o, name_, false)) { |