diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-01-18 13:20:28 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-01-18 19:51:51 +0100 |
commit | c645ea801b4e06ab7be7e4a2912e6b1261015522 (patch) | |
tree | 252b91e8887daaadcf8b933f6b7c67b75b587c06 /sw | |
parent | 4d0f2d5ec9f7f988a1493916ae35bac1986c95a8 (diff) |
-Werror,-Wunused-but-set-variable (Emscripten)
Change-Id: I5e0ce1137a09583d5d180ad922fba4ec27f8a6c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162252
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/tabfrm.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 033f692f47cc..71f677d613f5 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -6045,7 +6045,9 @@ void SwCellFrame::SwClientNotify(const SwModify& rMod, const SfxHint& rHint) { auto pLegacy = static_cast<const sw::LegacyModifyHint*>(&rHint); const SfxPoolItem* pVertOrientItem = nullptr; +#if !ENABLE_WASM_STRIP_ACCESSIBILITY const SfxPoolItem* pProtectItem = nullptr; +#endif const SfxPoolItem* pFrameDirItem = nullptr; const SfxPoolItem* pBoxItem = nullptr; const auto nWhich = pLegacy->m_pNew ? pLegacy->m_pNew->Which() : 0; @@ -6055,7 +6057,9 @@ void SwCellFrame::SwClientNotify(const SwModify& rMod, const SfxHint& rHint) { auto& rChgSet = *static_cast<const SwAttrSetChg*>(pLegacy->m_pNew)->GetChgSet(); pVertOrientItem = rChgSet.GetItemIfSet(RES_VERT_ORIENT, false); +#if !ENABLE_WASM_STRIP_ACCESSIBILITY pProtectItem = rChgSet.GetItemIfSet(RES_PROTECT, false); +#endif pFrameDirItem = rChgSet.GetItemIfSet(RES_FRAMEDIR, false); pBoxItem = rChgSet.GetItemIfSet(RES_BOX, false); break; @@ -6064,7 +6068,9 @@ void SwCellFrame::SwClientNotify(const SwModify& rMod, const SfxHint& rHint) pVertOrientItem = pLegacy->m_pNew; break; case RES_PROTECT: +#if !ENABLE_WASM_STRIP_ACCESSIBILITY pProtectItem = pLegacy->m_pNew; +#endif break; case RES_FRAMEDIR: pFrameDirItem = pLegacy->m_pNew; |