diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-25 20:31:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-26 08:30:42 +0100 |
commit | c83166ce7126b3c3c6aca8f6d2ab9cd9e16f5763 (patch) | |
tree | 2760b4870bf080fedcb40bf8c6f93c32030c4f7d /cui | |
parent | a553c85cbd80a045b2e4742eefaa7fcc3953cb08 (diff) |
loplugin:passstuffbyref
Change-Id: I330e0ab6c9955939dad313f9d472f93e39dbd313
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109924
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/AdditionsDialog.cxx | 2 | ||||
-rw-r--r-- | cui/source/inc/AdditionsDialog.hxx | 2 | ||||
-rw-r--r-- | cui/source/inc/cuihyperdlg.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx index 832a7314b440..a6f21fe6bdda 100644 --- a/cui/source/dialogs/AdditionsDialog.cxx +++ b/cui/source/dialogs/AdditionsDialog.cxx @@ -289,7 +289,7 @@ void LoadImage(const OUString& rPreviewFile, std::shared_ptr<AdditionsItem> pCur } // End of the anonymous namespace -SearchAndParseThread::SearchAndParseThread(AdditionsDialog* pDialog, const bool& isFirstLoading) +SearchAndParseThread::SearchAndParseThread(AdditionsDialog* pDialog, const bool isFirstLoading) : Thread("cuiAdditionsSearchThread") , m_pAdditionsDialog(pDialog) , m_bExecute(true) diff --git a/cui/source/inc/AdditionsDialog.hxx b/cui/source/inc/AdditionsDialog.hxx index f11c4ee24691..0e7620b38268 100644 --- a/cui/source/inc/AdditionsDialog.hxx +++ b/cui/source/inc/AdditionsDialog.hxx @@ -152,7 +152,7 @@ private: virtual void execute() override; public: - SearchAndParseThread(AdditionsDialog* pDialog, const bool& bIsFirstLoading); + SearchAndParseThread(AdditionsDialog* pDialog, bool bIsFirstLoading); void StopExecution() { m_bExecute = false; } }; diff --git a/cui/source/inc/cuihyperdlg.hxx b/cui/source/inc/cuihyperdlg.hxx index d5842369f45a..af0124239563 100644 --- a/cui/source/inc/cuihyperdlg.hxx +++ b/cui/source/inc/cuihyperdlg.hxx @@ -116,7 +116,7 @@ public: void AddTabPage(const OString &rId, CreatePage pCreateFunc /* != NULL */); void SetCurPageId( const OString& rId ) { msCurrentPageId = rId; SwitchPage(rId ); } - OString GetCurPageId() const { return msCurrentPageId; } + const OString & GetCurPageId() const { return msCurrentPageId; } void ShowPage( const OString& rId ); /// gives via map converted local slots if applicable |