summaryrefslogtreecommitdiff
path: root/cppuhelper/source/compat.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-12-06 09:48:07 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-12-06 09:48:49 +0000
commitc8a733079f6718dc908edd4af8d9befeac157e80 (patch)
treedbcc510706b60f5e29ba88a770aaa787fcc7e0be /cppuhelper/source/compat.cxx
parent2f80337e5eccbb7c57493eddd1d4e62de0fb1276 (diff)
cppuhelper: add compatible symbol for obsolete method.
Diffstat (limited to 'cppuhelper/source/compat.cxx')
-rw-r--r--cppuhelper/source/compat.cxx38
1 files changed, 38 insertions, 0 deletions
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: */