diff options
author | Eike Rathke <erack@redhat.com> | 2017-07-12 12:56:51 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-07-12 13:28:22 +0200 |
commit | d65567230f283a6ed228755a3be85e95cde2d677 (patch) | |
tree | 3d6f912c872384b5d271fece0a54037e5ccc8c75 /i18nutil | |
parent | 20dcd4730deeb60cb39ed28e8d0f690fdba0d482 (diff) |
Turn OSL_ENSURE() into static_assert() for NUM_PAPER_ENTRIES enum match
And remove now obsolete include of osl/diagnose.h
Change-Id: Ie75a4da463a5c51c6bd763d4a6ecf37be94ff6b2
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; |