sw: replace boost::noncopyable with C++11 delete
Change-Id: Iac20763c7d1db467420f9c2fbb3cd636839d4c80
This commit is contained in:
@@ -52,7 +52,6 @@
|
|||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <boost/noncopyable.hpp>
|
|
||||||
#include <boost/numeric/conversion/cast.hpp>
|
#include <boost/numeric/conversion/cast.hpp>
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
#include <boost/optional/optional.hpp>
|
#include <boost/optional/optional.hpp>
|
||||||
|
@@ -61,7 +61,6 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <boost/intrusive_ptr.hpp>
|
#include <boost/intrusive_ptr.hpp>
|
||||||
#include <boost/noncopyable.hpp>
|
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
#include <osl/diagnose.h>
|
#include <osl/diagnose.h>
|
||||||
#include <osl/doublecheckedlocking.h>
|
#include <osl/doublecheckedlocking.h>
|
||||||
|
@@ -41,8 +41,6 @@
|
|||||||
#include <fmtornt.hxx>
|
#include <fmtornt.hxx>
|
||||||
#include <editsh.hxx>
|
#include <editsh.hxx>
|
||||||
|
|
||||||
#include <boost/noncopyable.hpp>
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@@ -130,7 +128,7 @@ namespace
|
|||||||
|
|
||||||
See also: BeginSwBlock and EndSwBlock.
|
See also: BeginSwBlock and EndSwBlock.
|
||||||
*/
|
*/
|
||||||
class WriterSpecificAutoFormatBlock : private ::boost::noncopyable
|
class WriterSpecificAutoFormatBlock
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit WriterSpecificAutoFormatBlock(SvStream &rStream) : _rStream(rStream)
|
explicit WriterSpecificAutoFormatBlock(SvStream &rStream) : _rStream(rStream)
|
||||||
@@ -144,6 +142,9 @@ namespace
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
WriterSpecificAutoFormatBlock(WriterSpecificAutoFormatBlock const&) = delete;
|
||||||
|
WriterSpecificAutoFormatBlock& operator=(WriterSpecificAutoFormatBlock const&) = delete;
|
||||||
|
|
||||||
SvStream &_rStream;
|
SvStream &_rStream;
|
||||||
sal_uInt64 _whereToWriteEndOfBlock;
|
sal_uInt64 _whereToWriteEndOfBlock;
|
||||||
};
|
};
|
||||||
|
@@ -91,7 +91,6 @@
|
|||||||
|
|
||||||
#include <o3tl/make_unique.hxx>
|
#include <o3tl/make_unique.hxx>
|
||||||
|
|
||||||
#include <boost/noncopyable.hpp>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <swuiexp.hxx>
|
#include <swuiexp.hxx>
|
||||||
|
|
||||||
@@ -157,7 +156,7 @@ struct DB_Column
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct DB_ColumnConfigData: private boost::noncopyable
|
struct DB_ColumnConfigData
|
||||||
{
|
{
|
||||||
SwInsDBColumns aDBColumns;
|
SwInsDBColumns aDBColumns;
|
||||||
OUString sSource;
|
OUString sSource;
|
||||||
@@ -171,6 +170,9 @@ struct DB_ColumnConfigData: private boost::noncopyable
|
|||||||
bIsHeadlineOn : 1,
|
bIsHeadlineOn : 1,
|
||||||
bIsEmptyHeadln : 1;
|
bIsEmptyHeadln : 1;
|
||||||
|
|
||||||
|
DB_ColumnConfigData(DB_ColumnConfigData const&) = delete;
|
||||||
|
DB_ColumnConfigData& operator=(DB_ColumnConfigData const&) = delete;
|
||||||
|
|
||||||
DB_ColumnConfigData()
|
DB_ColumnConfigData()
|
||||||
{
|
{
|
||||||
bIsTable = bIsHeadlineOn = true;
|
bIsTable = bIsHeadlineOn = true;
|
||||||
|
@@ -12,12 +12,11 @@
|
|||||||
|
|
||||||
#include <sal/config.h>
|
#include <sal/config.h>
|
||||||
|
|
||||||
#include <boost/noncopyable.hpp>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace sw { class Filters; }
|
namespace sw { class Filters; }
|
||||||
|
|
||||||
class SwDLL: private boost::noncopyable
|
class SwDLL
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void RegisterFactories();
|
static void RegisterFactories();
|
||||||
@@ -30,6 +29,9 @@ public:
|
|||||||
sw::Filters & getFilters();
|
sw::Filters & getFilters();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
SwDLL(SwDLL const&) = delete;
|
||||||
|
SwDLL& operator=(SwDLL const&) = delete;
|
||||||
|
|
||||||
std::unique_ptr< sw::Filters > filters_;
|
std::unique_ptr< sw::Filters > filters_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -37,7 +37,6 @@
|
|||||||
#include <cppuhelper/basemutex.hxx>
|
#include <cppuhelper/basemutex.hxx>
|
||||||
#include <cppuhelper/supportsservice.hxx>
|
#include <cppuhelper/supportsservice.hxx>
|
||||||
|
|
||||||
#include <boost/noncopyable.hpp>
|
|
||||||
|
|
||||||
using namespace css;
|
using namespace css;
|
||||||
using namespace css::uno;
|
using namespace css::uno;
|
||||||
@@ -49,10 +48,13 @@ typedef ::cppu::WeakComponentImplHelper <
|
|||||||
> PanelFactoryInterfaceBase;
|
> PanelFactoryInterfaceBase;
|
||||||
|
|
||||||
class SwPanelFactory
|
class SwPanelFactory
|
||||||
: private ::boost::noncopyable,
|
: private ::cppu::BaseMutex
|
||||||
private ::cppu::BaseMutex,
|
, public PanelFactoryInterfaceBase
|
||||||
public PanelFactoryInterfaceBase
|
|
||||||
{
|
{
|
||||||
|
private:
|
||||||
|
SwPanelFactory(SwPanelFactory const&) = delete;
|
||||||
|
SwPanelFactory& operator=(SwPanelFactory const&) = delete;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SwPanelFactory();
|
SwPanelFactory();
|
||||||
virtual ~SwPanelFactory();
|
virtual ~SwPanelFactory();
|
||||||
|
@@ -70,7 +70,6 @@
|
|||||||
|
|
||||||
#include <unomid.h>
|
#include <unomid.h>
|
||||||
|
|
||||||
#include <boost/noncopyable.hpp>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
using namespace ::com::sun::star;
|
using namespace ::com::sun::star;
|
||||||
@@ -184,8 +183,7 @@ static bool LoadFromURL_impl(
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
class DelayedFileDeletion : public ::cppu::WeakImplHelper< util::XCloseListener >,
|
class DelayedFileDeletion : public ::cppu::WeakImplHelper<util::XCloseListener>
|
||||||
private boost::noncopyable
|
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
::osl::Mutex m_aMutex;
|
::osl::Mutex m_aMutex;
|
||||||
@@ -194,6 +192,9 @@ namespace
|
|||||||
OUString m_sTemporaryFile;
|
OUString m_sTemporaryFile;
|
||||||
sal_Int32 m_nPendingDeleteAttempts;
|
sal_Int32 m_nPendingDeleteAttempts;
|
||||||
|
|
||||||
|
DelayedFileDeletion(DelayedFileDeletion const&) = delete;
|
||||||
|
DelayedFileDeletion& operator=(DelayedFileDeletion const&) = delete;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DelayedFileDeletion( const Reference< XModel >& _rxModel,
|
DelayedFileDeletion( const Reference< XModel >& _rxModel,
|
||||||
const OUString& _rTemporaryFile );
|
const OUString& _rTemporaryFile );
|
||||||
@@ -409,7 +410,8 @@ SwXMailMerge::~SwXMailMerge()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Guarantee object consistence in case of an exception
|
// Guarantee object consistence in case of an exception
|
||||||
class MailMergeExecuteFinalizer: private boost::noncopyable {
|
class MailMergeExecuteFinalizer
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
explicit MailMergeExecuteFinalizer(SwXMailMerge *mailmerge)
|
explicit MailMergeExecuteFinalizer(SwXMailMerge *mailmerge)
|
||||||
: m_pMailMerge(mailmerge)
|
: m_pMailMerge(mailmerge)
|
||||||
@@ -423,6 +425,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
MailMergeExecuteFinalizer(MailMergeExecuteFinalizer const&) = delete;
|
||||||
|
MailMergeExecuteFinalizer& operator=(MailMergeExecuteFinalizer const&) = delete;
|
||||||
|
|
||||||
SwXMailMerge *m_pMailMerge;
|
SwXMailMerge *m_pMailMerge;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user