Kaydet (Commit) b8757ee8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean up function declarations and some unused functions

Change-Id: I5817a5ad3966918cfb1920be568b7401dd6f948c
üst 732c19b8
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
#include "comphelper_module.hxx" #include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include <com/sun/star/ucb/XAnyCompareFactory.hpp> #include <com/sun/star/ucb/XAnyCompareFactory.hpp>
#include <com/sun/star/i18n/Collator.hpp> #include <com/sun/star/i18n/Collator.hpp>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
#include "comphelper_module.hxx" #include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include <com/sun/star/container/XIndexContainer.hpp> #include <com/sun/star/container/XIndexContainer.hpp>
#include <com/sun/star/uno/Sequence.h> #include <com/sun/star/uno/Sequence.h>
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "comphelper_module.hxx" #include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/uno/Sequence.h> #include <com/sun/star/uno/Sequence.h>
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "comphelper_module.hxx" #include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include "comphelper/anytostring.hxx" #include "comphelper/anytostring.hxx"
#include "comphelper/anycompare.hxx" #include "comphelper/anycompare.hxx"
#include "comphelper/componentbase.hxx" #include "comphelper/componentbase.hxx"
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
#include <typelib/typedescription.hxx> #include <typelib/typedescription.hxx>
#include <map> #include <map>
#include <boost/noncopyable.hpp>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
...@@ -111,7 +113,7 @@ namespace comphelper ...@@ -111,7 +113,7 @@ namespace comphelper
{ {
} }
private: private:
MapData& operator=( const MapData& _source ); // not implemented MapData& operator=( const MapData& _source ) SAL_DELETED_FUNCTION;
}; };
...@@ -252,7 +254,8 @@ namespace comphelper ...@@ -252,7 +254,8 @@ namespace comphelper
//= MapEnumerator //= MapEnumerator
class MapEnumerator : public IMapModificationListener class MapEnumerator:
public IMapModificationListener, private boost::noncopyable
{ {
public: public:
MapEnumerator( ::cppu::OWeakObject& _rParent, MapData& _mapData, const EnumerationType _type ) MapEnumerator( ::cppu::OWeakObject& _rParent, MapData& _mapData, const EnumerationType _type )
...@@ -292,11 +295,6 @@ namespace comphelper ...@@ -292,11 +295,6 @@ namespace comphelper
const EnumerationType m_eType; const EnumerationType m_eType;
KeyedValues::const_iterator m_mapPos; KeyedValues::const_iterator m_mapPos;
bool m_disposed; bool m_disposed;
private:
MapEnumerator(); // not implemented
MapEnumerator( const MapEnumerator& ); // not implemented
MapEnumerator& operator=( const MapEnumerator& ); // not implemented
}; };
......
...@@ -65,18 +65,12 @@ struct AttachedObject_Impl ...@@ -65,18 +65,12 @@ struct AttachedObject_Impl
Reference< XInterface > xTarget; Reference< XInterface > xTarget;
Sequence< Reference< XEventListener > > aAttachedListenerSeq; Sequence< Reference< XEventListener > > aAttachedListenerSeq;
Any aHelper; Any aHelper;
bool operator<( const AttachedObject_Impl & ) const;
bool operator==( const AttachedObject_Impl & ) const;
}; };
struct AttacherIndex_Impl struct AttacherIndex_Impl
{ {
::std::deque< ScriptEventDescriptor > aEventList; ::std::deque< ScriptEventDescriptor > aEventList;
::std::deque< AttachedObject_Impl > aObjList; ::std::deque< AttachedObject_Impl > aObjList;
bool operator<( const AttacherIndex_Impl & ) const;
bool operator==( const AttacherIndex_Impl & ) const;
}; };
......
/* -*- 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_COMPHELPER_SOURCE_INC_COMPHELPER_SERVICES_HXX
#define INCLUDED_COMPHELPER_SOURCE_INC_COMPHELPER_SERVICES_HXX
#include <sal/config.h>
void createRegistryInfo_AnyCompareFactory();
void createRegistryInfo_IndexedPropertyValuesContainer();
void createRegistryInfo_Map();
void createRegistryInfo_NamedPropertyValuesContainer();
void createRegistryInfo_OInstanceLocker();
void createRegistryInfo_OOfficeRestartManager();
void createRegistryInfo_OPropertyBag();
void createRegistryInfo_OSimpleLogRing();
void createRegistryInfo_OfficeInstallationDirectories();
void createRegistryInfo_SequenceInputStream();
void createRegistryInfo_SequenceOutputStream();
void createRegistryInfo_UNOMemoryStream();
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -19,24 +19,10 @@ ...@@ -19,24 +19,10 @@
#include "comphelper_module.hxx" #include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include <rtl/instance.hxx> #include <rtl/instance.hxx>
extern void createRegistryInfo_OPropertyBag();
extern void createRegistryInfo_SequenceOutputStream();
extern void createRegistryInfo_SequenceInputStream();
extern void createRegistryInfo_UNOMemoryStream();
extern void createRegistryInfo_IndexedPropertyValuesContainer();
extern void createRegistryInfo_NamedPropertyValuesContainer();
extern void createRegistryInfo_AnyCompareFactory();
extern void createRegistryInfo_OfficeInstallationDirectories();
extern void createRegistryInfo_OInstanceLocker();
extern void createRegistryInfo_Map();
extern void createRegistryInfo_OSimpleLogRing();
extern void createRegistryInfo_OOfficeRestartManager();
namespace comphelper { namespace module namespace comphelper { namespace module
{ {
......
...@@ -48,15 +48,7 @@ namespace comphelper { ...@@ -48,15 +48,7 @@ namespace comphelper {
class AbortContinuation : public ::cppu::WeakImplHelper1< XInteractionAbort > class AbortContinuation : public ::cppu::WeakImplHelper1< XInteractionAbort >
{ {
public: public:
inline explicit AbortContinuation() : mbSelected( false ) {} virtual void SAL_CALL select() throw( RuntimeException, std::exception ) SAL_OVERRIDE {}
inline bool isSelected() const { return mbSelected; }
inline void reset() { mbSelected = false; }
virtual void SAL_CALL select() throw( RuntimeException, std::exception ) SAL_OVERRIDE { mbSelected = true; }
private:
bool mbSelected;
}; };
...@@ -67,7 +59,6 @@ public: ...@@ -67,7 +59,6 @@ public:
inline explicit PasswordContinuation() : mbReadOnly( false ), mbSelected( false ) {} inline explicit PasswordContinuation() : mbReadOnly( false ), mbSelected( false ) {}
inline bool isSelected() const { return mbSelected; } inline bool isSelected() const { return mbSelected; }
inline void reset() { mbSelected = false; }
virtual void SAL_CALL select() throw( RuntimeException, std::exception ) SAL_OVERRIDE { mbSelected = true; } virtual void SAL_CALL select() throw( RuntimeException, std::exception ) SAL_OVERRIDE { mbSelected = true; }
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <com/sun/star/lang/IllegalArgumentException.hpp> #include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <comphelper_module.hxx> #include <comphelper_module.hxx>
#include <comphelper_services.hxx>
#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/supportsservice.hxx>
#include "documentiologring.hxx" #include "documentiologring.hxx"
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "comphelper_module.hxx" #include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/util/XCloseBroadcaster.hpp> #include <com/sun/star/util/XCloseBroadcaster.hpp>
......
...@@ -65,7 +65,6 @@ namespace comphelper ...@@ -65,7 +65,6 @@ namespace comphelper
} }
inline bool isValid() const { return m_xLogger.is(); } inline bool isValid() const { return m_xLogger.is(); }
inline const OUString& getName() const { return m_sLoggerName; }
inline const Reference< XLogger >& getLogger() const { return m_xLogger; } inline const Reference< XLogger >& getLogger() const { return m_xLogger; }
inline Reference< XComponentContext > getContext() const { return m_aContext; } inline Reference< XComponentContext > getContext() const { return m_aContext; }
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
#include <comphelper_module.hxx> #include <comphelper_module.hxx>
#include <comphelper_services.hxx>
#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/supportsservice.hxx>
#include "officerestartmanager.hxx" #include "officerestartmanager.hxx"
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <config_folders.h> #include <config_folders.h>
#include "comphelper_module.hxx" #include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/supportsservice.hxx>
/************************************************************************** /**************************************************************************
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "opropertybag.hxx" #include "opropertybag.hxx"
#include "comphelper_module.hxx" #include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include <com/sun/star/beans/PropertyAttribute.hpp> #include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/beans/NamedValue.hpp>
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "comphelper_module.hxx" #include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include <com/sun/star/io/XStream.hpp> #include <com/sun/star/io/XStream.hpp>
#include <com/sun/star/io/XSeekableInputStream.hpp> #include <com/sun/star/io/XSeekableInputStream.hpp>
......
...@@ -17,11 +17,12 @@ ...@@ -17,11 +17,12 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
// MARKER( update_precomp.py ): autogen include statement, do not remove #include <sal/config.h>
#include "comphelper_module.hxx" #include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include <sal/config.h> #include <boost/noncopyable.hpp>
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <cppuhelper/factory.hxx> #include <cppuhelper/factory.hxx>
#include <cppuhelper/implementationentry.hxx> #include <cppuhelper/implementationentry.hxx>
...@@ -43,7 +44,8 @@ class SequenceInputStreamService: ...@@ -43,7 +44,8 @@ class SequenceInputStreamService:
public ::cppu::WeakImplHelper3< public ::cppu::WeakImplHelper3<
lang::XServiceInfo, lang::XServiceInfo,
io::XSeekableInputStream, io::XSeekableInputStream,
lang::XInitialization> lang::XInitialization>,
private boost::noncopyable
{ {
public: public:
explicit SequenceInputStreamService(); explicit SequenceInputStreamService();
...@@ -74,9 +76,6 @@ public: ...@@ -74,9 +76,6 @@ public:
virtual void SAL_CALL initialize( const uno::Sequence< ::com::sun::star::uno::Any > & aArguments ) throw ( uno::RuntimeException, uno::Exception, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL initialize( const uno::Sequence< ::com::sun::star::uno::Any > & aArguments ) throw ( uno::RuntimeException, uno::Exception, std::exception ) SAL_OVERRIDE;
private: private:
SequenceInputStreamService( SequenceInputStreamService & ); // not defined
void operator =( SequenceInputStreamService & ); // not defined
virtual ~SequenceInputStreamService() {} virtual ~SequenceInputStreamService() {}
......
...@@ -17,10 +17,12 @@ ...@@ -17,10 +17,12 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <sal/config.h>
#include "comphelper_module.hxx" #include "comphelper_module.hxx"
#include "comphelper_services.hxx"
#include <sal/config.h> #include <boost/noncopyable.hpp>
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <cppuhelper/factory.hxx> #include <cppuhelper/factory.hxx>
#include <cppuhelper/implementationentry.hxx> #include <cppuhelper/implementationentry.hxx>
...@@ -37,7 +39,8 @@ using namespace ::com::sun::star; ...@@ -37,7 +39,8 @@ using namespace ::com::sun::star;
namespace { namespace {
class SequenceOutputStreamService: class SequenceOutputStreamService:
public ::cppu::WeakImplHelper2 < lang::XServiceInfo, io::XSequenceOutputStream > public cppu::WeakImplHelper2<lang::XServiceInfo, io::XSequenceOutputStream>,
private boost::noncopyable
{ {
public: public:
explicit SequenceOutputStreamService(); explicit SequenceOutputStreamService();
...@@ -61,9 +64,6 @@ public: ...@@ -61,9 +64,6 @@ public:
virtual uno::Sequence< ::sal_Int8 > SAL_CALL getWrittenBytes( ) throw ( io::NotConnectedException, io::IOException, uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual uno::Sequence< ::sal_Int8 > SAL_CALL getWrittenBytes( ) throw ( io::NotConnectedException, io::IOException, uno::RuntimeException, std::exception) SAL_OVERRIDE;
private: private:
SequenceOutputStreamService( SequenceOutputStreamService & ); //not defined
void operator =( SequenceOutputStreamService & ); //not defined
virtual ~SequenceOutputStreamService() {}; virtual ~SequenceOutputStreamService() {};
......
...@@ -30,7 +30,6 @@ namespace comphelper { ...@@ -30,7 +30,6 @@ namespace comphelper {
struct TagAttribute_Impl struct TagAttribute_Impl
{ {
TagAttribute_Impl(){}
TagAttribute_Impl( const OUString &aName, const OUString &aType, TagAttribute_Impl( const OUString &aName, const OUString &aType,
const OUString &aValue ) const OUString &aValue )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment