diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-05 14:21:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-06 22:15:07 +0200 |
commit | f960d27f158372d4f2d28cd84fee74742f7fbe4d (patch) | |
tree | e33df85e217daa03b2cb1acec89b51469798d7ef /sc | |
parent | 12a94012cae2c1415d772dd6883c5a49ff46b625 (diff) |
cid#1554774 silence Use of auto that causes a copy
Change-Id: Ie562fa0c4942286cb7dec01473455234f6ebd56d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170048
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/viewuno.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx index ab3e5748bd45..d0fdb360e4bb 100644 --- a/sc/source/ui/unoobj/viewuno.cxx +++ b/sc/source/ui/unoobj/viewuno.cxx @@ -2093,8 +2093,7 @@ void ScTabViewObj::RangeSelChanged( const OUString& rText ) aEvent.RangeDescriptor = rText; // copy on the stack because listener could remove itself - auto const listener(aRangeChgListeners); - + const std::vector<css::uno::Reference<css::sheet::XRangeSelectionChangeListener>> listener(aRangeChgListeners); for (const auto& rListener : listener) rListener->descriptorChanged( aEvent ); } |