cui/source/dialogs/hangulhanjadlg.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 32778ad663f9f96816366aaaea2131273ce01d18
Author: Caolán McNamara <caol...@redhat.com>
Date:   Thu Apr 19 11:02:56 2018 +0100

    turn #error into static_assert
    
    Change-Id: Iddd4b344d77e43866975ce28797ff643055bfd04
    Reviewed-on: https://gerrit.libreoffice.org/53160
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

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 );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to