include/svx/SvxColorIconView.hxx | 3 +-- svx/source/tbxctrls/SvxColorIconView.cxx | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-)
New commits: commit 85fd9fea29d89c7bede889fa2fa17a43a2b2eb12 Author: Stephan Bergmann <[email protected]> AuthorDate: Wed Mar 4 20:34:29 2026 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Mar 5 00:20:22 2026 +0100 -Werror=unused-but-set-parameter= ...ever since the code was introduced in e6b19f2e3590e3c4808eb2df2fa3b33cbc278eee "Switch to IconView in color selection for improved UI handling" Change-Id: Ie48862860a15a2de6b5d2af9db498c7423b84f06 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200982 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/include/svx/SvxColorIconView.hxx b/include/svx/SvxColorIconView.hxx index 1ef4f20aa3a4..794d67a18106 100644 --- a/include/svx/SvxColorIconView.hxx +++ b/include/svx/SvxColorIconView.hxx @@ -29,8 +29,7 @@ class SVXCORE_DLLPUBLIC SvxColorIconView { public: static sal_uInt32 getEntryEdgeLength(); - static void addEntriesForXColorList(weld::IconView& pIconView, const XColorList& rXColorList, - sal_uInt32 nStartIndex = 0); + static void addEntriesForXColorList(weld::IconView& pIconView, const XColorList& rXColorList); static void addEntriesForColorSet(weld::IconView& pIconView, const std::set<Color>& rColorSet, std::u16string_view rNamePrefix); diff --git a/svx/source/tbxctrls/SvxColorIconView.cxx b/svx/source/tbxctrls/SvxColorIconView.cxx index c26d24b08432..54ecf8d2b1e3 100644 --- a/svx/source/tbxctrls/SvxColorIconView.cxx +++ b/svx/source/tbxctrls/SvxColorIconView.cxx @@ -38,13 +38,12 @@ sal_uInt32 SvxColorIconView::getEntryEdgeLength() } void SvxColorIconView::addEntriesForXColorList(weld::IconView& pIconView, - const XColorList& rXColorList, - sal_uInt32 nStartIndex) + const XColorList& rXColorList) { const sal_uInt32 nColorCount(rXColorList.Count()); ScopedVclPtr<VirtualDevice> pVDev = createColorDevice(); - for (sal_uInt32 nIndex(0); nIndex < nColorCount; nIndex++, nStartIndex++) + for (sal_uInt32 nIndex(0); nIndex < nColorCount; nIndex++) { const XColorEntry* pEntry = rXColorList.GetColor(nIndex);
