diff options
Diffstat (limited to 'i18nutil')
-rw-r--r-- | i18nutil/source/utility/paper.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index 7ab91d089b3c..b2779f8b6ae9 100644 --- a/i18nutil/source/utility/paper.cxx +++ b/i18nutil/source/utility/paper.cxx @@ -18,7 +18,6 @@ */ -#include <osl/diagnose.h> #include <officecfg/Setup.hxx> #include <officecfg/System.hxx> #include <sal/config.h> @@ -348,7 +347,7 @@ PaperInfo PaperInfo::getSystemDefaultPaper() PaperInfo::PaperInfo(Paper eType) : m_eType(eType) { - OSL_ENSURE( SAL_N_ELEMENTS(aDinTab) == NUM_PAPER_ENTRIES, + static_assert( SAL_N_ELEMENTS(aDinTab) == NUM_PAPER_ENTRIES, "mismatch between array entries and enum values" ); m_nPaperWidth = aDinTab[m_eType].m_nWidth; |