Kaydet (Commit) 32778ad6 authored tarafından Caolán McNamara's avatar Caolán McNamara

turn #error into static_assert

Change-Id: Iddd4b344d77e43866975ce28797ff643055bfd04
Reviewed-on: https://gerrit.libreoffice.org/53160Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst b38387aa
...@@ -1750,9 +1750,7 @@ namespace svx ...@@ -1750,9 +1750,7 @@ namespace svx
m_aDeletePB->SetClickHdl( LINK( this, HangulHanjaEditDictDialog, DeletePBPushHdl ) ); m_aDeletePB->SetClickHdl( LINK( this, HangulHanjaEditDictDialog, DeletePBPushHdl ) );
m_aDeletePB->Enable( false ); m_aDeletePB->Enable( false );
#if( MAXNUM_SUGGESTIONS <= 4 ) static_assert(MAXNUM_SUGGESTIONS > 5, "number of suggestions should not under-run the value of 5");
#error number of suggestions should not under-run the value of 5
#endif
Link<ScrollBar*,void> aScrLk( LINK( this, HangulHanjaEditDictDialog, ScrollHdl ) ); Link<ScrollBar*,void> aScrLk( LINK( this, HangulHanjaEditDictDialog, ScrollHdl ) );
m_aScrollSB->SetScrollHdl( aScrLk ); m_aScrollSB->SetScrollHdl( aScrLk );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment