Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #include <sal/config.h>
21 :
22 : #include <cstdlib>
23 :
24 : #include <com/sun/star/uno/Exception.hpp>
25 : #include <com/sun/star/uno/Reference.hxx>
26 : #include <com/sun/star/uno/Sequence.hxx>
27 : #include <osl/module.h>
28 : #include <sal/types.h>
29 :
30 : namespace com { namespace sun { namespace star {
31 : namespace lang {
32 : class XMultiComponentFactory;
33 : class XMultiServiceFactory;
34 : class XTypeProvider;
35 : }
36 : namespace reflection { class XIdlClass; }
37 : namespace registry {
38 : class XRegistryKey;
39 : class XSimpleRegistry;
40 : }
41 : namespace uno {
42 : class XComponentContext;
43 : class XInterface;
44 : }
45 : } } }
46 : namespace rtl { class OUString; }
47 :
48 : // Stubs for removed functionality, to be killed when we bump cppuhelper SONAME
49 :
50 : namespace cppu {
51 :
52 : SAL_DLLPUBLIC_EXPORT
53 0 : css::uno::Reference< css::lang::XMultiComponentFactory > bootstrapInitialSF(
54 : rtl::OUString const &)
55 : {
56 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
57 : }
58 :
59 : SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::uno::XComponentContext > SAL_CALL
60 0 : bootstrap_InitialComponentContext(
61 : css::uno::Reference< css::registry::XSimpleRegistry > const &,
62 : rtl::OUString const &)
63 : {
64 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
65 : }
66 :
67 : SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::registry::XSimpleRegistry >
68 0 : SAL_CALL createNestedRegistry(rtl::OUString const &) {
69 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
70 : }
71 :
72 : SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::lang::XMultiServiceFactory >
73 0 : SAL_CALL createRegistryServiceFactory(
74 : rtl::OUString const &, rtl::OUString const &, sal_Bool,
75 : rtl::OUString const &)
76 : {
77 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
78 : }
79 :
80 : SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::registry::XSimpleRegistry >
81 0 : SAL_CALL createSimpleRegistry(rtl::OUString const &) {
82 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
83 : }
84 :
85 : SAL_DLLPUBLIC_EXPORT css::reflection::XIdlClass * SAL_CALL
86 0 : createStandardClassWithSequence(
87 : css::uno::Reference< css::lang::XMultiServiceFactory > const &,
88 : rtl::OUString const &,
89 : css::uno::Reference< css::reflection::XIdlClass > const &,
90 : css::uno::Sequence< rtl::OUString > const &)
91 : {
92 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
93 : }
94 :
95 : SAL_DLLPUBLIC_EXPORT css::uno::Reference<css::uno::XInterface> SAL_CALL
96 0 : invokeStaticComponentFactory(
97 : oslGenericFunction, rtl::OUString const &,
98 : css::uno::Reference<css::lang::XMultiServiceFactory> const &,
99 : css::uno::Reference<css::registry::XRegistryKey> const &,
100 : rtl::OUString const &)
101 : {
102 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
103 : }
104 :
105 : SAL_DLLPUBLIC_EXPORT css::uno::Reference<css::uno::XInterface> SAL_CALL
106 0 : loadSharedLibComponentFactory(
107 : rtl::OUString const &, rtl::OUString const &, rtl::OUString const &,
108 : css::uno::Reference<css::lang::XMultiServiceFactory> const &,
109 : css::uno::Reference<css::registry::XRegistryKey> const &,
110 : rtl::OUString const &)
111 : {
112 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
113 : }
114 :
115 : struct SAL_DLLPUBLIC_EXPORT ClassData {
116 : css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId();
117 :
118 : css::uno::Sequence<css::uno::Type> SAL_CALL getTypes();
119 :
120 : void SAL_CALL initTypeProvider();
121 :
122 : css::uno::Any SAL_CALL query(
123 : css::uno::Type const &, css::lang::XTypeProvider *);
124 :
125 : void SAL_CALL writeTypeOffset(css::uno::Type const &, sal_Int32);
126 : };
127 :
128 0 : css::uno::Sequence<sal_Int8> ClassData::getImplementationId() {
129 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
130 : }
131 :
132 0 : css::uno::Sequence<css::uno::Type> ClassData::getTypes() {
133 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
134 : }
135 :
136 0 : void ClassData::initTypeProvider() {
137 0 : std::abort();
138 : }
139 :
140 0 : css::uno::Any ClassData::query(
141 : css::uno::Type const &, css::lang::XTypeProvider *)
142 : {
143 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
144 : }
145 :
146 0 : void ClassData::writeTypeOffset(css::uno::Type const &, sal_Int32) {
147 0 : std::abort();
148 : }
149 :
150 : SAL_WNOUNREACHABLE_CODE_PUSH
151 : struct SAL_DLLPUBLIC_EXPORT ClassDataBase {
152 : ClassDataBase();
153 :
154 : explicit ClassDataBase(sal_Int32);
155 :
156 : ~ClassDataBase();
157 : };
158 :
159 0 : ClassDataBase::ClassDataBase() {
160 0 : std::abort();
161 : }
162 :
163 0 : ClassDataBase::ClassDataBase(sal_Int32) {
164 0 : std::abort();
165 : }
166 :
167 0 : ClassDataBase::~ClassDataBase() {
168 0 : std::abort();
169 : }
170 : SAL_WNOUNREACHABLE_CODE_POP
171 :
172 : }
173 :
174 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|