summaryrefslogtreecommitdiffstats
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-17 15:15:05 +0200
committerNoel Grandin <noel@peralex.com>2015-11-18 08:35:34 +0200
commitb442d5dd3c230a8a1dabaa7cc0333911ba456859 (patch)
tree1a6ec9b9f165b95703a29e81637b1bfa91c2ed79 /sc/inc
parentuse unique_ptr for pImpl in sd/ (diff)
downloadcore-b442d5dd3c230a8a1dabaa7cc0333911ba456859.tar.gz
core-b442d5dd3c230a8a1dabaa7cc0333911ba456859.zip
use unique_ptr for pImpl in sc/
Change-Id: I2516c83f8dfca1f1217be7dcb2a28f5dcd2f704e
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/arealink.hxx3
-rw-r--r--sc/inc/bulkdatahint.hxx3
-rw-r--r--sc/inc/cellvalues.hxx5
-rw-r--r--sc/inc/documentimport.hxx3
-rw-r--r--sc/inc/documentlinkmgr.hxx3
-rw-r--r--sc/inc/formulacell.hxx3
-rw-r--r--sc/inc/listenerquery.hxx3
-rw-r--r--sc/inc/scmatrix.hxx2
-rw-r--r--sc/inc/tablink.hxx3
9 files changed, 18 insertions, 10 deletions
diff --git a/sc/inc/arealink.hxx b/sc/inc/arealink.hxx
index c014e34ba2f5..4f15f791f0cd 100644
--- a/sc/inc/arealink.hxx
+++ b/sc/inc/arealink.hxx
@@ -25,6 +25,7 @@
#include "address.hxx"
#include <sfx2/lnkbase.hxx>
#include "scdllapi.h"
+#include <memory>
class SfxObjectShell;
struct AreaLink_Impl;
@@ -33,7 +34,7 @@ class Dialog;
class SC_DLLPUBLIC ScAreaLink : public ::sfx2::SvBaseLink, public ScRefreshTimer
{
private:
- AreaLink_Impl* pImpl;
+ std::unique_ptr<AreaLink_Impl> pImpl;
OUString aFileName;
OUString aFilterName;
OUString aOptions;
diff --git a/sc/inc/bulkdatahint.hxx b/sc/inc/bulkdatahint.hxx
index 450a19f08931..4b375848f87b 100644
--- a/sc/inc/bulkdatahint.hxx
+++ b/sc/inc/bulkdatahint.hxx
@@ -11,6 +11,7 @@
#define INCLUDED_SC_BULKDATAHINT_HXX
#include <simplehintids.hxx>
+#include <memory>
class ScDocument;
@@ -21,7 +22,7 @@ class ColumnSpanSet;
class BulkDataHint : public SfxSimpleHint
{
struct Impl;
- Impl* mpImpl;
+ std::unique_ptr<Impl> mpImpl;
BulkDataHint( const BulkDataHint& ) = delete;
BulkDataHint& operator= ( const BulkDataHint& ) = delete;
diff --git a/sc/inc/cellvalues.hxx b/sc/inc/cellvalues.hxx
index 6aaf32673868..7c132b00fce2 100644
--- a/sc/inc/cellvalues.hxx
+++ b/sc/inc/cellvalues.hxx
@@ -12,6 +12,7 @@
#include "address.hxx"
#include <global.hxx>
+#include <memory>
class ScColumn;
@@ -40,7 +41,7 @@ struct CellValueSpan
*/
class CellValues
{
- CellValuesImpl* mpImpl;
+ std::unique_ptr<CellValuesImpl> mpImpl;
CellValues( const CellValues& ) = delete;
CellValues& operator= ( const CellValues& ) = delete;
@@ -86,7 +87,7 @@ class TableValues
{
struct Impl;
- Impl* mpImpl;
+ std::unique_ptr<Impl> mpImpl;
TableValues( const TableValues& ) = delete;
TableValues& operator= ( const TableValues& ) = delete;
diff --git a/sc/inc/documentimport.hxx b/sc/inc/documentimport.hxx
index 5567260c47b4..66ffaac8e6c8 100644
--- a/sc/inc/documentimport.hxx
+++ b/sc/inc/documentimport.hxx
@@ -16,6 +16,7 @@
#include <rtl/ustring.hxx>
#include <boost/noncopyable.hpp>
+#include <memory>
class EditTextObject;
class ScDocument;
@@ -39,7 +40,7 @@ enum class SvtScriptType;
*/
class SC_DLLPUBLIC ScDocumentImport : boost::noncopyable
{
- ScDocumentImportImpl* mpImpl;
+ std::unique_ptr<ScDocumentImportImpl> mpImpl;
ScDocumentImport(); // disabled
ScDocumentImport& operator=(const ScDocumentImport&); //disabled
diff --git a/sc/inc/documentlinkmgr.hxx b/sc/inc/documentlinkmgr.hxx
index 0af5cf896c63..f5ba279423a1 100644
--- a/sc/inc/documentlinkmgr.hxx
+++ b/sc/inc/documentlinkmgr.hxx
@@ -12,6 +12,7 @@
#include <boost/noncopyable.hpp>
#include <rtl/ustring.hxx>
+#include <memory>
class ScDocument;
class SfxObjectShell;
@@ -30,7 +31,7 @@ struct DocumentLinkManagerImpl;
class DocumentLinkManager : boost::noncopyable
{
- DocumentLinkManagerImpl* mpImpl;
+ std::unique_ptr<DocumentLinkManagerImpl> mpImpl;
public:
DocumentLinkManager( ScDocument& rDoc, SfxObjectShell* pShell );
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx
index 5f1c43a0fd95..5a6f87b1eb25 100644
--- a/sc/inc/formulacell.hxx
+++ b/sc/inc/formulacell.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_SC_INC_FORMULACELL_HXX
#include <set>
+#include <memory>
#include <boost/noncopyable.hpp>
@@ -56,7 +57,7 @@ struct SC_DLLPUBLIC ScFormulaCellGroup : boost::noncopyable
{
private:
struct Impl;
- Impl* mpImpl;
+ std::unique_ptr<Impl> mpImpl;
public:
diff --git a/sc/inc/listenerquery.hxx b/sc/inc/listenerquery.hxx
index afe6b8a1e090..f69283cb93a0 100644
--- a/sc/inc/listenerquery.hxx
+++ b/sc/inc/listenerquery.hxx
@@ -15,6 +15,7 @@
#include <unordered_map>
#include <vector>
+#include <memory>
class ScRangeList;
@@ -51,7 +52,7 @@ private:
class QueryRange : public SvtListener::QueryBase
{
struct Impl;
- Impl* mpImpl;
+ std::unique_ptr<Impl> mpImpl;
QueryRange( const QueryRange& ) = delete;
QueryRange& operator= ( const QueryRange& ) = delete;
diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx
index c6513815fa44..883550d77b80 100644
--- a/sc/inc/scmatrix.hxx
+++ b/sc/inc/scmatrix.hxx
@@ -115,7 +115,7 @@ class SC_DLLPUBLIC ScMatrix
{
friend class ScMatrixImpl;
- ScMatrixImpl* pImpl;
+ std::unique_ptr<ScMatrixImpl> pImpl;
mutable size_t nRefCnt; // reference count
// only delete via Delete()
diff --git a/sc/inc/tablink.hxx b/sc/inc/tablink.hxx
index 147f3d2bd8a0..de2490e86da6 100644
--- a/sc/inc/tablink.hxx
+++ b/sc/inc/tablink.hxx
@@ -25,6 +25,7 @@
#include <sfx2/lnkbase.hxx>
#include <sfx2/objsh.hxx>
+#include <memory>
class ScDocShell;
struct TableLink_Impl;
@@ -32,7 +33,7 @@ struct TableLink_Impl;
class ScTableLink : public ::sfx2::SvBaseLink, public ScRefreshTimer
{
private:
- TableLink_Impl* pImpl;
+ std::unique_ptr<TableLink_Impl> pImpl;
OUString aFileName;
OUString aFilterName;
OUString aOptions;