From f960d27f158372d4f2d28cd84fee74742f7fbe4d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 5 Jul 2024 14:21:03 +0100 Subject: cid#1554774 silence Use of auto that causes a copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie562fa0c4942286cb7dec01473455234f6ebd56d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170048 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sc/source/ui/unoobj/viewuno.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sc') 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> listener(aRangeChgListeners); for (const auto& rListener : listener) rListener->descriptorChanged( aEvent ); } -- cgit