summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-02-24 12:06:16 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-02-24 14:49:15 +0100
commitcf22475a22d7839aace779262b34e8fd98a51afb (patch)
tree60852f6f9f53de05d077f62ee0d6f9ef94921f53
parentfcea709798c82105c229f7f7800e2be9be540289 (diff)
sw: make sure g_DefaultAnchor is in sync with aPropNames
This was already the case for one setting, but the same was not done when the default anchor setting was added, fix this now. Change-Id: Ia0cfa20468673117ff6580b270801e6605537ab6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111473 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
-rw-r--r--sw/source/uibase/config/usrpref.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/config/usrpref.cxx b/sw/source/uibase/config/usrpref.cxx
index a376d29eaad1..2dbc4b74d966 100644
--- a/sw/source/uibase/config/usrpref.cxx
+++ b/sw/source/uibase/config/usrpref.cxx
@@ -112,6 +112,7 @@ Sequence<OUString> SwContentViewConfig::GetPropertyNames() const
#if defined(__GNUC__) && !defined(__clang__)
// clang 8.0.0 says strcmp isn't constexpr
static_assert(std::strcmp("Update/Link", aPropNames[g_UpdateLinkIndex]) == 0);
+ static_assert(std::strcmp("Display/DefaultAnchor", aPropNames[g_DefaultAnchor]) == 0);
#endif
const int nCount = m_bWeb ? 12 : SAL_N_ELEMENTS(aPropNames);
Sequence<OUString> aNames(nCount);