summaryrefslogtreecommitdiff
path: root/sc/inc/prnsave.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-23 12:47:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-27 08:21:33 +0200
commit26ebaae4f1e43d43646cf132379058b4b78065af (patch)
tree455d21361005cf1f60b990a0ff910dda6a4ef803 /sc/inc/prnsave.hxx
parent449d416335802b23cf0f8f4725042f92138019cd (diff)
loplugin:useuniqueptr in ScPrintSaverTab
Change-Id: I51ef59e97e9b46cf9496dbefaabcc15471e9cdae Reviewed-on: https://gerrit.libreoffice.org/51902 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/prnsave.hxx')
-rw-r--r--sc/inc/prnsave.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/prnsave.hxx b/sc/inc/prnsave.hxx
index 463a424451ad..f5137aefebd9 100644
--- a/sc/inc/prnsave.hxx
+++ b/sc/inc/prnsave.hxx
@@ -31,8 +31,8 @@ class ScPrintSaverTab
typedef ::std::vector< ScRange > ScRangeVec;
ScRangeVec maPrintRanges; ///< Array
- ScRange* mpRepeatCol; ///< single
- ScRange* mpRepeatRow; ///< single
+ std::unique_ptr<ScRange> mpRepeatCol; ///< single
+ std::unique_ptr<ScRange> mpRepeatRow; ///< single
bool mbEntireSheet;
public:
@@ -44,8 +44,8 @@ public:
const ScRangeVec& GetPrintRanges() const { return maPrintRanges; }
bool IsEntireSheet() const { return mbEntireSheet; }
- const ScRange* GetRepeatCol() const { return mpRepeatCol; }
- const ScRange* GetRepeatRow() const { return mpRepeatRow; }
+ const ScRange* GetRepeatCol() const { return mpRepeatCol.get(); }
+ const ScRange* GetRepeatRow() const { return mpRepeatRow.get(); }
bool operator==( const ScPrintSaverTab& rCmp ) const;
};