diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-12-06 09:48:07 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-12-06 09:48:49 +0000 |
commit | c8a733079f6718dc908edd4af8d9befeac157e80 (patch) | |
tree | dbcc510706b60f5e29ba88a770aaa787fcc7e0be /cppuhelper | |
parent | 2f80337e5eccbb7c57493eddd1d4e62de0fb1276 (diff) |
cppuhelper: add compatible symbol for obsolete method.
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/Library_cppuhelper.mk | 1 | ||||
-rw-r--r-- | cppuhelper/source/compat.cxx | 38 |
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: */ |