[Libreoffice-commits] core.git: sw/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 9 07:21:40 UTC 2021
sw/source/ui/index/cnttab.cxx | 8 --------
1 file changed, 8 deletions(-)
New commits:
commit 10f501dec737f3c3da21d9df2b204d0385290477
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jun 8 17:31:05 2021 +0200
Commit: Stephan Bergmann <sbergman at 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 <sbergman at 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);
More information about the Libreoffice-commits
mailing list