summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-19 11:02:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-19 21:18:15 +0200
commit32778ad663f9f96816366aaaea2131273ce01d18 (patch)
treebfc71f97d043f3d780355513ed7a19623e7fa1e8 /cui/source
parentb38387aaf03c0183a4cec6ed7ef1a1cd7fc6f09f (diff)
turn #error into static_assert
Change-Id: Iddd4b344d77e43866975ce28797ff643055bfd04 Reviewed-on: https://gerrit.libreoffice.org/53160 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/dialogs/hangulhanjadlg.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index 1564a6fb33bb..64be36bab3da 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -1750,9 +1750,7 @@ namespace svx
m_aDeletePB->SetClickHdl( LINK( this, HangulHanjaEditDictDialog, DeletePBPushHdl ) );
m_aDeletePB->Enable( false );
- #if( MAXNUM_SUGGESTIONS <= 4 )
- #error number of suggestions should not under-run the value of 5
- #endif
+ static_assert(MAXNUM_SUGGESTIONS > 5, "number of suggestions should not under-run the value of 5");
Link<ScrollBar*,void> aScrLk( LINK( this, HangulHanjaEditDictDialog, ScrollHdl ) );
m_aScrollSB->SetScrollHdl( aScrLk );