diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 14:20:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 16:05:49 +0200 |
commit | f477b54e01766fabc0179beec9aa3dc31b5824e2 (patch) | |
tree | 99efa8fffed5c397b3dc7974153bb3ffa49c872d /sc/source/ui/inc | |
parent | 071c117ba551e579962ff5b70f79cb7934d96c77 (diff) |
loplugin:moveparam in sc
Change-Id: I4b9d45a6b0231841a5fe00d0193a8530b9e05559
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123389
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/csvgrid.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/inc/dataprovider.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/datatransformation.hxx | 16 | ||||
-rw-r--r-- | sc/source/ui/inc/namedefdlg.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/optsolver.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/undoblk.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/inc/undotab.hxx | 6 |
7 files changed, 18 insertions, 18 deletions
diff --git a/sc/source/ui/inc/csvgrid.hxx b/sc/source/ui/inc/csvgrid.hxx index c7857ffbb4c4..a186df02c0bb 100644 --- a/sc/source/ui/inc/csvgrid.hxx +++ b/sc/source/ui/inc/csvgrid.hxx @@ -172,13 +172,13 @@ public: /** Returns the vector with the states of all columns. */ const ScCsvColStateVec& GetColumnStates() const { return maColStates; } /** Sets all column states to the values in the passed vector. */ - void SetColumnStates( const ScCsvColStateVec& rColStates ); + void SetColumnStates( ScCsvColStateVec&& rColStates ); /** Returns the data type of the selected columns. */ sal_Int32 GetSelColumnType() const; /** Changes the data type of all selected columns. */ void SetSelColumnType( sal_Int32 nType ); /** Sets new UI data type names. */ - void SetTypeNames( const std::vector<OUString>& rTypeNames ); + void SetTypeNames( std::vector<OUString>&& rTypeNames ); /** Returns the UI type name of the specified column. */ const OUString& GetColumnTypeName( sal_uInt32 nColIndex ) const; diff --git a/sc/source/ui/inc/dataprovider.hxx b/sc/source/ui/inc/dataprovider.hxx index 9f7b2b2e3a50..e6457c48e243 100644 --- a/sc/source/ui/inc/dataprovider.hxx +++ b/sc/source/ui/inc/dataprovider.hxx @@ -49,7 +49,7 @@ class CSVFetchThread : public salhelper::Thread public: CSVFetchThread(ScDocument& rDoc, const OUString&, std::function<void()> aImportFinishedHdl, - const std::vector<std::shared_ptr<sc::DataTransformation>>& mrDataTransformations); + std::vector<std::shared_ptr<sc::DataTransformation>>&& mrDataTransformations); virtual ~CSVFetchThread() override; void RequestTerminate(); diff --git a/sc/source/ui/inc/datatransformation.hxx b/sc/source/ui/inc/datatransformation.hxx index d575be4c4785..2b7c611cf96a 100644 --- a/sc/source/ui/inc/datatransformation.hxx +++ b/sc/source/ui/inc/datatransformation.hxx @@ -68,7 +68,7 @@ class SC_DLLPUBLIC ColumnRemoveTransformation : public DataTransformation public: - ColumnRemoveTransformation(const std::set<SCCOL>& rColumns); + ColumnRemoveTransformation(std::set<SCCOL>&& rColumns); virtual ~ColumnRemoveTransformation() override; virtual void Transform(ScDocument& rDoc) const override; virtual TransformationType getTransformationType() const override; @@ -96,7 +96,7 @@ class SC_DLLPUBLIC MergeColumnTransformation : public DataTransformation public: - MergeColumnTransformation(const std::set<SCCOL>& rColumns, const OUString& rMergeString); + MergeColumnTransformation(std::set<SCCOL>&& rColumns, const OUString& rMergeString); virtual void Transform(ScDocument& rDoc) const override; virtual TransformationType getTransformationType() const override; const OUString & getMergeString() const; @@ -120,7 +120,7 @@ class SC_DLLPUBLIC TextTransformation : public DataTransformation TEXT_TRANSFORM_TYPE maType; public: - TextTransformation(const std::set<SCCOL>& nCol, const TEXT_TRANSFORM_TYPE rType); + TextTransformation(std::set<SCCOL>&& nCol, const TEXT_TRANSFORM_TYPE rType); virtual void Transform(ScDocument& rDoc) const override; virtual TransformationType getTransformationType() const override; TEXT_TRANSFORM_TYPE getTextTransformationType() const; @@ -133,7 +133,7 @@ class SC_DLLPUBLIC AggregateFunction : public DataTransformation AGGREGATE_FUNCTION maType; public: - AggregateFunction(const std::set<SCCOL>& rColumns, const AGGREGATE_FUNCTION rType); + AggregateFunction(std::set<SCCOL>&& rColumns, const AGGREGATE_FUNCTION rType); virtual void Transform(ScDocument& rDoc) const override; virtual TransformationType getTransformationType() const override; AGGREGATE_FUNCTION getAggregateType() const; @@ -147,8 +147,8 @@ class SC_DLLPUBLIC NumberTransformation : public DataTransformation int maPrecision; public: - NumberTransformation(const std::set<SCCOL>& nCol, const NUMBER_TRANSFORM_TYPE rType); - NumberTransformation(const std::set<SCCOL>& nCol, const NUMBER_TRANSFORM_TYPE rType, + NumberTransformation(std::set<SCCOL>&& nCol, const NUMBER_TRANSFORM_TYPE rType); + NumberTransformation(std::set<SCCOL>&& nCol, const NUMBER_TRANSFORM_TYPE rType, int nPrecision); virtual void Transform(ScDocument& rDoc) const override; virtual TransformationType getTransformationType() const override; @@ -163,7 +163,7 @@ class SC_DLLPUBLIC ReplaceNullTransformation : public DataTransformation OUString msReplaceWith; public: - ReplaceNullTransformation(const std::set<SCCOL>& nCol, const OUString& sReplaceWith); + ReplaceNullTransformation(std::set<SCCOL>&& nCol, const OUString& sReplaceWith); virtual void Transform(ScDocument& rDoc) const override; virtual TransformationType getTransformationType() const override; const std::set<SCCOL>& getColumn() const; @@ -176,7 +176,7 @@ class SC_DLLPUBLIC DateTimeTransformation : public DataTransformation DATETIME_TRANSFORMATION_TYPE maType; public: - DateTimeTransformation(const std::set<SCCOL>& nCol, + DateTimeTransformation(std::set<SCCOL>&& nCol, const DATETIME_TRANSFORMATION_TYPE rType); virtual void Transform(ScDocument& rDoc) const override; virtual TransformationType getTransformationType() const override; diff --git a/sc/source/ui/inc/namedefdlg.hxx b/sc/source/ui/inc/namedefdlg.hxx index f1ff30b609fd..fe05059e8007 100644 --- a/sc/source/ui/inc/namedefdlg.hxx +++ b/sc/source/ui/inc/namedefdlg.hxx @@ -72,7 +72,7 @@ protected: public: ScNameDefDlg(SfxBindings* pB, SfxChildWindow* pCW, weld::Window* pParent, - const ScViewData& rViewData, const std::map<OUString, ScRangeName*>& aRangeMap, + const ScViewData& rViewData, std::map<OUString, ScRangeName*>&& aRangeMap, const ScAddress& aCursorPos, const bool bUndo); virtual ~ScNameDefDlg() override; diff --git a/sc/source/ui/inc/optsolver.hxx b/sc/source/ui/inc/optsolver.hxx index d8f3910edca2..538a4a536009 100644 --- a/sc/source/ui/inc/optsolver.hxx +++ b/sc/source/ui/inc/optsolver.hxx @@ -71,7 +71,7 @@ class ScOptSolverSave public: ScOptSolverSave( const OUString& rObjective, bool bMax, bool bMin, bool bValue, const OUString& rTarget, const OUString& rVariable, - const std::vector<ScOptConditionRow>& rConditions, + std::vector<ScOptConditionRow>&& rConditions, const OUString& rEngine, const css::uno::Sequence<css::beans::PropertyValue>& rProperties ); diff --git a/sc/source/ui/inc/undoblk.hxx b/sc/source/ui/inc/undoblk.hxx index 39f1792a8327..39dba0afa20d 100644 --- a/sc/source/ui/inc/undoblk.hxx +++ b/sc/source/ui/inc/undoblk.hxx @@ -107,7 +107,7 @@ public: ScUndoDeleteMulti( ScDocShell* pNewDocShell, bool bNewRows, bool bNeedsRefresh, SCTAB nNewTab, - const std::vector<sc::ColRowSpan>& rSpans, + std::vector<sc::ColRowSpan>&& rSpans, ScDocumentUniquePtr pUndoDocument, std::unique_ptr<ScRefUndoData> pRefData ); virtual ~ScUndoDeleteMulti() override; @@ -361,7 +361,7 @@ public: SCCOLROW nNewStart, SCTAB nNewStartTab, SCCOLROW nNewEnd, SCTAB nNewEndTab, ScDocumentUniquePtr pNewUndoDoc, - const std::vector<sc::ColRowSpan>& rRanges, + std::vector<sc::ColRowSpan>&& rRanges, std::unique_ptr<ScOutlineTable> pNewUndoTab, ScSizeMode eNewMode, sal_uInt16 nNewSizeTwips, bool bNewWidth ); diff --git a/sc/source/ui/inc/undotab.hxx b/sc/source/ui/inc/undotab.hxx index 2f39b5002e36..2d94d69657c0 100644 --- a/sc/source/ui/inc/undotab.hxx +++ b/sc/source/ui/inc/undotab.hxx @@ -67,7 +67,7 @@ public: ScUndoInsertTables( ScDocShell* pNewDocShell, SCTAB nTabNum, - const std::vector<OUString>& newNameList); + std::vector<OUString>&& newNameList); virtual ~ScUndoInsertTables() override; virtual void Undo() override; @@ -203,7 +203,7 @@ public: const Color& aNTabBgColor); ScUndoTabColor( ScDocShell* pNewDocShell, - const ScUndoTabColorInfo::List& rUndoTabColorList); + ScUndoTabColorInfo::List&& rUndoTabColorList); virtual ~ScUndoTabColor() override; virtual void Undo() override; @@ -308,7 +308,7 @@ class ScUndoShowHideTab : public ScSimpleUndo public: ScUndoShowHideTab( ScDocShell* pShell, - const std::vector<SCTAB>& newUndoTabs, + std::vector<SCTAB>&& newUndoTabs, bool bNewShow ); virtual ~ScUndoShowHideTab() override; |