summaryrefslogtreecommitdiffstats
path: root/sc/inc/paramisc.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-11 14:05:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-13 11:39:21 +0000
commit414ede0435645a2ebf8f1476435b6ec3bb248f33 (patch)
tree97f4fc1f1f3a3b9c077ae11348baa6fed6852f9b /sc/inc/paramisc.hxx
parentmake this a tiny bit less unreadable (diff)
downloadcore-414ede0435645a2ebf8f1476435b6ec3bb248f33.tar.gz
core-414ede0435645a2ebf8f1476435b6ec3bb248f33.zip
new loplugin: useuniqueptr: sc part 1
Change-Id: Ic96fd3b56b2063df0882168a7d02725d3c50515f Reviewed-on: https://gerrit.libreoffice.org/32961 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/paramisc.hxx')
-rw-r--r--sc/inc/paramisc.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/paramisc.hxx b/sc/inc/paramisc.hxx
index 0a21a1db83a6..5853051a4abd 100644
--- a/sc/inc/paramisc.hxx
+++ b/sc/inc/paramisc.hxx
@@ -25,9 +25,9 @@
struct ScSolveParam
{
- ScAddress aRefFormulaCell;
- ScAddress aRefVariableCell;
- OUString* pStrTargetVal;
+ ScAddress aRefFormulaCell;
+ ScAddress aRefVariableCell;
+ std::unique_ptr<OUString> pStrTargetVal;
ScSolveParam();
ScSolveParam( const ScSolveParam& r );
@@ -36,7 +36,7 @@ struct ScSolveParam
const OUString& rTargetValStr );
~ScSolveParam();
- ScSolveParam& operator= ( const ScSolveParam& r );
+ ScSolveParam& operator= ( const ScSolveParam& r );
bool operator== ( const ScSolveParam& r ) const;
};