sw/source/ui/index/cnttab.cxx | 8 -------- 1 file changed, 8 deletions(-)
New commits: commit 10f501dec737f3c3da21d9df2b204d0385290477 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Tue Jun 8 17:31:05 2021 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Wed Jun 9 09:20:55 2021 +0200 -Werror,-Wunused-but-set-variable (Clang 13 trunk) ...since the (only) read of sText got removed with 4e6be990eaf6a524740299e8d00fb5401c1a21c0 "weld SwTOXEntryTabPage" Change-Id: I24bceb37c106cc840cef60d6a08953ca25cc3d15 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116854 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index 71ed6cb64e2d..30c9407064d3 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -2167,48 +2167,40 @@ void SwTOXEntryTabPage::SetFocus2theAllBtn() // put here the UI dependent initializations IMPL_LINK(SwTOXEntryTabPage, InsertTokenHdl, weld::Button&, rBtn, void) { - OUString sText; FormTokenType eTokenType = TOKEN_ENTRY_NO; OUString sCharStyle; sal_uInt16 nChapterFormat = CF_NUMBER; // i89791 if (&rBtn == m_xEntryNoPB.get()) { - sText = SwForm::GetFormEntryNum(); eTokenType = TOKEN_ENTRY_NO; } else if (&rBtn == m_xEntryPB.get()) { if( TOX_CONTENT == m_pCurrentForm->GetTOXType() ) { - sText = SwForm::GetFormEntryText(); eTokenType = TOKEN_ENTRY_TEXT; } else { - sText = SwForm::GetFormEntry(); eTokenType = TOKEN_ENTRY; } } else if (&rBtn == m_xChapterInfoPB.get()) { - sText = SwForm::GetFormChapterMark(); eTokenType = TOKEN_CHAPTER_INFO; nChapterFormat = CF_NUM_NOPREPST_TITLE; // i89791 } else if (&rBtn == m_xPageNoPB.get()) { - sText = SwForm::GetFormPageNums(); eTokenType = TOKEN_PAGE_NUMS; } else if (&rBtn == m_xHyperLinkPB.get()) { - sText = SwForm::GetFormLinkStt(); eTokenType = TOKEN_LINK_START; sCharStyle = SwResId(STR_POOLCHR_TOXJUMP); } else if (&rBtn == m_xTabPB.get()) { - sText = SwForm::GetFormTab(); eTokenType = TOKEN_TAB_STOP; } SwFormToken aInsert(eTokenType); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits