diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-09 09:01:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-09 11:27:03 +0200 |
commit | e9f407fbf0ede1760518b2e58931eba381879717 (patch) | |
tree | f5ec5f01a3886962c05cb6c568857d6bea07edaa /sfx2/inc | |
parent | 0bbbde84b091c7969378ef9a5bbadd9706e57c5e (diff) |
can pass by const& here
no need to copy
Change-Id: I1fcc5d645a8f5278e2122a168b00c846d75bc091
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135522
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/inc')
-rw-r--r-- | sfx2/inc/sidebar/UnoDeck.hxx | 4 | ||||
-rw-r--r-- | sfx2/inc/sidebar/UnoPanel.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/inc/sidebar/UnoDeck.hxx b/sfx2/inc/sidebar/UnoDeck.hxx index 88497c03ae3d..42c975c44d3b 100644 --- a/sfx2/inc/sidebar/UnoDeck.hxx +++ b/sfx2/inc/sidebar/UnoDeck.hxx @@ -54,8 +54,8 @@ private: const OUString mDeckId; - sal_Int32 GetMaxOrderIndex(sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer aDecks); - sal_Int32 GetMinOrderIndex(sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer aDecks); + sal_Int32 GetMaxOrderIndex(const sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer& rDecks); + sal_Int32 GetMinOrderIndex(const sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer& rDecks); }; diff --git a/sfx2/inc/sidebar/UnoPanel.hxx b/sfx2/inc/sidebar/UnoPanel.hxx index 2b1197eb95f7..4e148befdf8d 100644 --- a/sfx2/inc/sidebar/UnoPanel.hxx +++ b/sfx2/inc/sidebar/UnoPanel.hxx @@ -62,8 +62,8 @@ private: VclPtr<sfx2::sidebar::Deck> mpDeck; std::weak_ptr<sfx2::sidebar::Panel> mxPanel; - sal_Int32 GetMaxOrderIndex(sfx2::sidebar::ResourceManager::PanelContextDescriptorContainer aPanels); - sal_Int32 GetMinOrderIndex(sfx2::sidebar::ResourceManager::PanelContextDescriptorContainer aPanels); + sal_Int32 GetMaxOrderIndex(const sfx2::sidebar::ResourceManager::PanelContextDescriptorContainer& rPanels); + sal_Int32 GetMinOrderIndex(const sfx2::sidebar::ResourceManager::PanelContextDescriptorContainer& rPanels); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |