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