diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-05 11:21:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-07 13:32:30 +0200 |
commit | 5b112c8f8843613873181fce50990a8feef837ca (patch) | |
tree | 9ebd9d01d49a0c6a058de954dc167fd4ccb4ff5c /sc/source/ui/inc/undostyl.hxx | |
parent | 799753cb80f4c81a6e87bf016924e0f2a29f03f0 (diff) |
clang-tidy modernize-pass-by-value in sc
Change-Id: Ia7ff651d1cbc119b36a9f8052594d03650988f59
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137848
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/inc/undostyl.hxx')
-rw-r--r-- | sc/source/ui/inc/undostyl.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/inc/undostyl.hxx b/sc/source/ui/inc/undostyl.hxx index 6c169c43e32b..39b55c0bda81 100644 --- a/sc/source/ui/inc/undostyl.hxx +++ b/sc/source/ui/inc/undostyl.hxx @@ -74,7 +74,7 @@ public: class ScUndoApplyPageStyle: public ScSimpleUndo { public: - ScUndoApplyPageStyle( ScDocShell* pDocSh, const OUString& rNewStyle ); + ScUndoApplyPageStyle( ScDocShell* pDocSh, OUString aNewStyle ); virtual ~ScUndoApplyPageStyle() override; void AddSheetAction( SCTAB nTab, const OUString& rOld ); @@ -91,7 +91,7 @@ private: { SCTAB mnTab; OUString maOldStyle; - explicit ApplyStyleEntry( SCTAB nTab, const OUString& rOldStyle ); + explicit ApplyStyleEntry( SCTAB nTab, OUString aOldStyle ); }; typedef ::std::vector< ApplyStyleEntry > ApplyStyleVec; |