summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2024-04-12 09:13:53 +0200
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-12 18:05:48 +0200
commitf017fe99f7e7a1beb2c7809b04e069831e706afb (patch)
tree81443d41ef58ed723f1e3d8f8c15d5d2c1268873
parent804caab067acaedca85abb9e83170e1a3f01b185 (diff)
sc: fix -Werror,-Wunused-but-set-variable
Pointed out by clang-15: sc/source/core/data/PivotTableFormatOutput.cxx:256:12: error: variable 'nEntryIndex' set but not used [-Werror,-Wunused-but-set-variable] size_t nEntryIndex = 0; ^ Change-Id: I3abf7fe6d4ed330cd713472ce4102eeef6aea4dc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166022 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--sc/source/core/data/PivotTableFormatOutput.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sc/source/core/data/PivotTableFormatOutput.cxx b/sc/source/core/data/PivotTableFormatOutput.cxx
index 350aef597ebd..c3732a888ae7 100644
--- a/sc/source/core/data/PivotTableFormatOutput.cxx
+++ b/sc/source/core/data/PivotTableFormatOutput.cxx
@@ -253,7 +253,6 @@ void FormatOutput::apply(ScDocument& rDocument)
if (!mpFormats)
return;
- size_t nEntryIndex = 0;
for (auto const& rOutputEntry : maFormatOutputEntries)
{
if (!rOutputEntry.onTab || !rOutputEntry.pPattern)
@@ -339,7 +338,6 @@ void FormatOutput::apply(ScDocument& rDocument)
{
rDocument.ApplyPattern(*oColumn, *oRow, *rOutputEntry.onTab, *rOutputEntry.pPattern);
}
- nEntryIndex++;
}
}