svl/source/inc/registerservices.hxx | 46 ++++++++++++++++++++++++++++++++++++ svl/source/misc/inethist.cxx | 17 +------------ svl/source/numbers/numfmuno.cxx | 2 + svl/source/numbers/supservs.cxx | 2 + svl/source/numbers/supservs.hxx | 2 + svl/source/uno/pathservice.cxx | 3 -- svl/source/uno/registerservices.cxx | 13 +--------- 7 files changed, 57 insertions(+), 28 deletions(-)
New commits: commit 2addd7f17a9d799042ef18992ad29b582de3d6d6 Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Apr 7 13:46:19 2014 +0200 Clean up function declarations and some unused functions Change-Id: Id7ecd49ea03f225fc350a31437c32b4a738d7199 diff --git a/svl/source/inc/registerservices.hxx b/svl/source/inc/registerservices.hxx new file mode 100644 index 0000000..a6af007 --- /dev/null +++ b/svl/source/inc/registerservices.hxx @@ -0,0 +1,46 @@ +/* -*- 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 . + */ + +#ifndef INCLUDED_SVL_SOURCE_INC_REGISTERSERVICES_HXX +#define INCLUDED_SVL_SOURCE_INC_REGISTERSERVICES_HXX + +#include <sal/config.h> + +#include <com/sun/star/uno/Reference.hxx> +#include <sal/types.h> + +namespace com { namespace sun { namespace star { + namespace lang { class XMultiServiceFactory; } + namespace uno { class XInterface; } +} } } + +css::uno::Reference<css::uno::XInterface> SAL_CALL PathService_CreateInstance( + css::uno::Reference<css::lang::XMultiServiceFactory> const &); + +css::uno::Reference<css::uno::XInterface> SAL_CALL +SvNumberFormatsSupplierServiceObject_CreateInstance( + css::uno::Reference<css::lang::XMultiServiceFactory> const &); + +css::uno::Reference<css::uno::XInterface> SAL_CALL +SvNumberFormatterServiceObj_CreateInstance( + css::uno::Reference<css::lang::XMultiServiceFactory> const &); + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx index 37e9c41..b199b01 100644 --- a/svl/source/misc/inethist.cxx +++ b/svl/source/misc/inethist.cxx @@ -22,6 +22,7 @@ #include <algorithm> #include <string.h> +#include <boost/noncopyable.hpp> #include "rtl/instance.hxx" #include "rtl/crc.h" #include <tools/solar.h> @@ -50,7 +51,7 @@ IMPL_PTRHINT (INetURLHistoryHint, const INetURLObject); * INetURLHistory_Impl interface. * *======================================================================*/ -class INetURLHistory_Impl +class INetURLHistory_Impl: private boost::noncopyable { /** head_entry. */ @@ -93,15 +94,6 @@ class INetURLHistory_Impl /** Comparison. */ - bool operator== (const hash_entry &rOther) const - { - return (m_nHash == rOther.m_nHash); - } - bool operator< (const hash_entry &rOther) const - { - return (m_nHash < rOther.m_nHash); - } - bool operator== (sal_uInt32 nHash) const { return (m_nHash == nHash); @@ -189,11 +181,6 @@ class INetURLHistory_Impl rThis.m_nPrev = nThis; } - /** Not implemented. - */ - INetURLHistory_Impl (const INetURLHistory_Impl&); - INetURLHistory_Impl& operator= (const INetURLHistory_Impl&); - public: INetURLHistory_Impl (void); ~INetURLHistory_Impl (void); diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx index 35d6d73..e13faaa 100644 --- a/svl/source/numbers/numfmuno.cxx +++ b/svl/source/numbers/numfmuno.cxx @@ -32,6 +32,8 @@ #include <svl/zformat.hxx> #include <svl/itemprop.hxx> +#include <registerservices.hxx> + using namespace com::sun::star; #define PROPERTYNAME_FMTSTR "FormatString" diff --git a/svl/source/numbers/supservs.cxx b/svl/source/numbers/supservs.cxx index 26b6e2d..4a7591a 100644 --- a/svl/source/numbers/supservs.cxx +++ b/svl/source/numbers/supservs.cxx @@ -28,6 +28,8 @@ #include <svl/strmadpt.hxx> #include <svl/instrm.hxx> +#include <registerservices.hxx> + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::io; diff --git a/svl/source/numbers/supservs.hxx b/svl/source/numbers/supservs.hxx index c045efd..4df46ff 100644 --- a/svl/source/numbers/supservs.hxx +++ b/svl/source/numbers/supservs.hxx @@ -26,6 +26,8 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/io/XPersistObject.hpp> +#include <registerservices.hxx> + /** * SvNumberFormatsSupplierServiceObject - a number formats supplier which * - can be instantiated as an service diff --git a/svl/source/uno/pathservice.cxx b/svl/source/uno/pathservice.cxx index a5f949e..7dc082a 100644 --- a/svl/source/uno/pathservice.cxx +++ b/svl/source/uno/pathservice.cxx @@ -25,8 +25,7 @@ #include <com/sun/star/frame/XConfigManager.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> - - +#include <registerservices.hxx> class PathService : public ::cppu::WeakImplHelper2< css::frame::XConfigManager, css::lang::XServiceInfo > { diff --git a/svl/source/uno/registerservices.cxx b/svl/source/uno/registerservices.cxx index 1df00c9..a862a81 100644 --- a/svl/source/uno/registerservices.cxx +++ b/svl/source/uno/registerservices.cxx @@ -25,20 +25,11 @@ #include <com/sun/star/registry/XRegistryKey.hpp> #include <svl/svldllapi.h> +#include <registerservices.hxx> + using css::uno::Reference; using css::uno::Sequence; - - -#define DECLARE_CREATEINSTANCE( ImplName ) \ - Reference< css::uno::XInterface > SAL_CALL ImplName##_CreateInstance( const Reference< css::lang::XMultiServiceFactory >& ); - -DECLARE_CREATEINSTANCE( SvNumberFormatterServiceObj ) -DECLARE_CREATEINSTANCE( SvNumberFormatsSupplierServiceObject ) -DECLARE_CREATEINSTANCE( PathService ) - - - extern "C" { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits