summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-07 13:46:19 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-07 13:46:19 +0200
commit2addd7f17a9d799042ef18992ad29b582de3d6d6 (patch)
tree006a02a0d1d17598e705f7199bb7e0f34ee99f1a /svl
parent02e0be069e57e724c51f23e2e31b77657a6a1d3d (diff)
Clean up function declarations and some unused functions
Change-Id: Id7ecd49ea03f225fc350a31437c32b4a738d7199
Diffstat (limited to 'svl')
-rw-r--r--svl/source/inc/registerservices.hxx46
-rw-r--r--svl/source/misc/inethist.cxx17
-rw-r--r--svl/source/numbers/numfmuno.cxx2
-rw-r--r--svl/source/numbers/supservs.cxx2
-rw-r--r--svl/source/numbers/supservs.hxx2
-rw-r--r--svl/source/uno/pathservice.cxx3
-rw-r--r--svl/source/uno/registerservices.cxx13
7 files changed, 57 insertions, 28 deletions
diff --git a/svl/source/inc/registerservices.hxx b/svl/source/inc/registerservices.hxx
new file mode 100644
index 000000000000..a6af0070a06c
--- /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 37e9c41fcba3..b199b01dceaf 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 35d6d73478bc..e13faaa489b6 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 26b6e2daef99..4a7591af9a4a 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 c045efdfa1b6..4df46ff6bcc7 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 a5f949ef7e85..7dc082a2ab2c 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 1df00c98eaed..a862a812abab 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"
{