summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-12-06 09:48:07 +0000
committerStephan Bergmann <sbergman@redhat.com>2012-12-06 10:56:53 +0100
commit682228857d82ddc72cf359721c8855f0ff947dd9 (patch)
tree5e8e8cd70795632eb33f7e91a58b0176ac2eb691 /cppuhelper
parenta863d1e30b859c4fd8c409ed3d3c62197792d2a2 (diff)
cppuhelper: add compatible symbol for obsolete method.
(cherry picked from commit c8a733079f6718dc908edd4af8d9befeac157e80)
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/Library_cppuhelper.mk1
-rw-r--r--cppuhelper/source/compat.cxx38
2 files changed, 39 insertions, 0 deletions
diff --git a/cppuhelper/Library_cppuhelper.mk b/cppuhelper/Library_cppuhelper.mk
index a9fb3833e040..07b8a4184855 100644
--- a/cppuhelper/Library_cppuhelper.mk
+++ b/cppuhelper/Library_cppuhelper.mk
@@ -54,6 +54,7 @@ $(eval $(call gb_Library_use_static_libraries,cppuhelper,\
$(eval $(call gb_Library_add_exception_objects,cppuhelper,\
cppuhelper/source/access_control \
cppuhelper/source/bootstrap \
+ cppuhelper/source/compat \
cppuhelper/source/component_context \
cppuhelper/source/component \
cppuhelper/source/defaultbootstrap \
diff --git a/cppuhelper/source/compat.cxx b/cppuhelper/source/compat.cxx
new file mode 100644
index 000000000000..c24a8a846b39
--- /dev/null
+++ b/cppuhelper/source/compat.cxx
@@ -0,0 +1,38 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#include "sal/config.h"
+#include <rtl/ustring.hxx>
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#include <com/sun/star/reflection/XIdlClass.hpp>
+
+using namespace ::com::sun::star;
+
+// Stubs for removed functionality, to be killed when we bump sal SONAME
+
+SAL_DLLPUBLIC_EXPORT
+reflection::XIdlClass * SAL_CALL createStandardClassWithSequence(
+ const uno::Reference < lang::XMultiServiceFactory > &, const rtl::OUString &,
+ const uno::Reference < reflection::XIdlClass > &, const uno::Sequence < rtl::OUString > & )
+ SAL_THROW( () )
+{
+ for (;;) { std::abort(); } // avoid "must return a value" warnings
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */