Avoid potential negative array index access to cached text.
[LibreOffice.git] / cppuhelper / source / loadsharedlibcomponentfactory.hxx
blobd8c7bb55536b9b2e8ff875385e0430f9fbd9452c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 #include <sal/config.h>
14 #include <com/sun/star/uno/Reference.hxx>
16 #include "servicemanager.hxx"
18 namespace com::sun::star {
19 namespace lang { class XMultiServiceFactory; }
20 namespace uno {
21 class Environment;
22 class XInterface;
26 namespace cppuhelper::detail {
28 css::uno::Environment getEnvironment(
29 OUString const & name, std::u16string_view implementation);
31 void loadSharedLibComponentFactory(
32 OUString const & uri, OUString const & environment,
33 OUString const & prefix, OUString const & implementation,
34 OUString const & constructor,
35 css::uno::Reference<css::lang::XMultiServiceFactory> const & serviceManager,
36 WrapperConstructorFn * constructorFunction,
37 css::uno::Reference<css::uno::XInterface> * factory);
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */