Kaydet (Commit) 720759ad authored tarafından Michael Meeks's avatar Michael Meeks

Pre-load key UNO mappings.

Change-Id: I415e07d737c734d63ac969783464babcbb9ea884
Reviewed-on: https://gerrit.libreoffice.org/48365Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst f215096c
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <sal/log.hxx> #include <sal/log.hxx>
#include <uno/environment.hxx> #include <uno/environment.hxx>
#include <uno/mapping.hxx>
#include "loadsharedlibcomponentfactory.hxx" #include "loadsharedlibcomponentfactory.hxx"
...@@ -1992,6 +1993,25 @@ void cppuhelper::ServiceManager::preloadImplementations() { ...@@ -1992,6 +1993,25 @@ void cppuhelper::ServiceManager::preloadImplementations() {
} }
} }
std::cerr << std::endl; std::cerr << std::endl;
// Various rather important uno mappings.
struct {
const char *mpFrom;
const char *mpTo;
const char *mpPurpose;
} aMappingLoad[] = {
{ "gcc3", "uno", "" },
{ "uno", "gcc3", "" },
};
static std::vector<css::uno::Mapping> maMaps;
for (auto &it : aMappingLoad)
{
maMaps.push_back(css::uno::Mapping(
OUString::createFromAscii(it.mpFrom),
OUString::createFromAscii(it.mpTo),
OUString::createFromAscii(it.mpPurpose)));
}
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment