diff options
-rw-r--r-- | cui/source/dialogs/hangulhanjadlg.cxx | 4 |
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 ); |