sc/source/ui/dbgui/dbtabledlg.cxx | 2 +- sc/source/ui/undo/undodat.cxx | 2 +- sc/source/ui/view/cellsh2.cxx | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-)
New commits: commit 3b86fa007e69e449a23db5569c15d6b4f30d30b4 Author: Stephan Bergmann <[email protected]> AuthorDate: Thu Nov 27 15:37:50 2025 +0100 Commit: Balazs Varga <[email protected]> CommitDate: Wed Jan 7 17:17:43 2026 +0100 -Werror,-Wunused-but-set-variable ...in code introduced in c14cc57ac94a71e9453ec7b5ee261bd0460b2c99 "Table Style: introduce insert/delete Table... command available from" Change-Id: Ibf6de99215d7e6abd4b648c56f06a33e6a61d87a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194714 Reviewed-by: Balazs Varga <[email protected]> Reviewed-by: Michael Stahl <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196771 Tested-by: Balazs Varga <[email protected]> diff --git a/sc/source/ui/dbgui/dbtabledlg.cxx b/sc/source/ui/dbgui/dbtabledlg.cxx index 76ac9a624f10..292c6cf5a1ba 100644 --- a/sc/source/ui/dbgui/dbtabledlg.cxx +++ b/sc/source/ui/dbgui/dbtabledlg.cxx @@ -142,7 +142,7 @@ IMPL_LINK_NOARG(ScDbTableDlg, OkBtnHdl, weld::Button&, void) for (const ScDBData* pDBData : aDBData) { - if (const ScTableStyleParam* pTableStyleInfo = pDBData->GetTableStyleInfo()) + if (pDBData->GetTableStyleInfo()) { bInvalid = true; theCurArea = ScRange(); diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx index 1d346ec357e0..866f6c0ec7b8 100644 --- a/sc/source/ui/view/cellsh2.cxx +++ b/sc/source/ui/view/cellsh2.cxx @@ -1431,8 +1431,7 @@ void ScCellShell::GetDBState( SfxItemSet& rSet ) nStartCol, nStartRow, nEndCol, nEndRow, nStartTab); for (const ScDBData* pDBData : aDBData) { - if (const ScTableStyleParam* pTableStyleInfo - = pDBData->GetTableStyleInfo()) + if (pDBData->GetTableStyleInfo()) { bDisable = true; break; commit 46cac1653a1393cb692d311e26fff61a54e03ab1 Author: Miklos Vajna <[email protected]> AuthorDate: Wed Nov 26 12:07:29 2025 +0100 Commit: Balazs Varga <[email protected]> CommitDate: Wed Jan 7 17:17:33 2026 +0100 sc: fix -Werror,-Wunused-but-set-variable Seen with clang-19. Change-Id: I25d970f005dfcf3f09b066843b1cba57f83b2698 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194620 Reviewed-by: Caolán McNamara <[email protected]> Code-Style: Caolán McNamara <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196770 Reviewed-by: Michael Stahl <[email protected]> Tested-by: Balazs Varga <[email protected]> diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx index d78e530f4300..bd283fe8a000 100644 --- a/sc/source/ui/undo/undodat.cxx +++ b/sc/source/ui/undo/undodat.cxx @@ -1293,7 +1293,7 @@ void ScUndoDBData::DoChange( const bool bUndo ) } } - if (const ScTableStyleParam* pTableStyleInfo = pDBData->GetTableStyleInfo()) + if (pDBData->GetTableStyleInfo()) { ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell && aOldRange.IsValid())
