codemaker/source/netmaker/netmaker.cxx | 1 + sw/source/uibase/utlui/content.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
New commits: commit 1eb3b00c827dbfd606cbe482a2dde4c03d928c39 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Jul 25 21:13:14 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Jul 26 10:41:43 2024 +0200 cid#1608295 silence Untrusted loop bound Change-Id: I925f4a73118fbf81a48b32a096bdddf194148120 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171057 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/codemaker/source/netmaker/netmaker.cxx b/codemaker/source/netmaker/netmaker.cxx index 64e148817619..5995a115bfc9 100644 --- a/codemaker/source/netmaker/netmaker.cxx +++ b/codemaker/source/netmaker/netmaker.cxx @@ -15,6 +15,7 @@ #include "netoptions.hxx" #include "netproduce.hxx" +// coverity[tainted_data] - this is a build time tool SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { try commit 1df4e4be8c991a87c41018c0686cdad95aa8d1b8 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Jul 25 20:49:33 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Jul 26 10:41:33 2024 +0200 cid#1615138 Use of auto that causes a copy Change-Id: I5752fa3aa4bd67401194dc88aa8bf7b8d8e485c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171055 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index cf1e5e0d4843..9c73edb4a5cb 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -6930,7 +6930,7 @@ void SwContentTree::BringEntryToAttention(const weld::TreeIter& rEntry) m_pActiveShell->GetAttrPool().GetItemSurrogates(aSurrogates, RES_TXTATR_REFMARK); for (const SfxPoolItem* pItem : aSurrogates) { - const auto rRefMark = static_cast<const SwFormatRefMark&>(*pItem); + const auto& rRefMark = static_cast<const SwFormatRefMark&>(*pItem); const SwTextRefMark* pTextRef = rRefMark.GetTextRefMark(); if (pTextRef && &pTextRef->GetTextNode().GetNodes() == &m_pActiveShell->GetNodes())