summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-06-08 17:31:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-06-09 09:20:55 +0200
commit10f501dec737f3c3da21d9df2b204d0385290477 (patch)
treef8b95eb025df50a0566b774d58b8df450bde6325 /sw/source
parentdfafa053945aa9ffea347c4b9a98f255b15016bf (diff)
-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@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/ui/index/cnttab.cxx8
1 files changed, 0 insertions, 8 deletions
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);