diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-17 10:53:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-17 11:05:59 +0100 |
commit | fa2a7c1c95f78d20ed572091e12700fd4d852835 (patch) | |
tree | c470938b9614cc81ad288c67248f3874197f9fe8 /odk/examples/cpp/custompanel | |
parent | ca4065680a402e3d0ff43e41744b24a9c980b2ef (diff) |
Keep using component_getImplementationEnvironment in extensions
...instead of relying on the implicit CPPU_CURRENT_LANGUAGE_BINDING_NAME
convention. Keeping that convention an implementation detail makes it easier to
do improvements in the future. (Theoretically, the bundled extension in mysqlc
could be considered internal code and not adapted, but just be safe.)
Change-Id: Iae41a6e072dabc2bf7c1481ba6cfed61680edf37
Diffstat (limited to 'odk/examples/cpp/custompanel')
-rw-r--r-- | odk/examples/cpp/custompanel/ctp_services.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/odk/examples/cpp/custompanel/ctp_services.cxx b/odk/examples/cpp/custompanel/ctp_services.cxx index c096a7bd710a..a8f5702ea9c5 100644 --- a/odk/examples/cpp/custompanel/ctp_services.cxx +++ b/odk/examples/cpp/custompanel/ctp_services.cxx @@ -20,6 +20,7 @@ #include "ctp_factory.hxx" #include <cppuhelper/implementationentry.hxx> +#include <uno/lbnames.h> //...................................................................................................................... namespace sd { namespace colortoolpanel @@ -52,6 +53,13 @@ extern "C" { return ::cppu::component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , ::sd::colortoolpanel::s_aServiceEntries ); } + +SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( + char const ** ppEnvTypeName, uno_Environment **) +{ + *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; +} + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |