linguistic/source/lngprophelp.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit d25de4a04671c2f380fc86a58259b073c49dfe19
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Jun 10 08:52:29 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Mon Jun 10 12:04:17 2024 +0200

    silence unknown property 'HyphNoLastWord'... etc warnings
    
    warn: linguistic:3688232:3688232:linguistic/source/lngprophelp.cxx:636: 
unknown property 'HyphNoLastWord'
    warn: linguistic:3688232:3688232:linguistic/source/lngprophelp.cxx:636: 
unknown property 'HyphKeepType'
    warn: linguistic:3688232:3688232:linguistic/source/lngprophelp.cxx:636: 
unknown property 'HyphKeep'
    Change-Id: I4f99961e17bd4e0f90925b8530e25729d964d42e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168600
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins

diff --git a/linguistic/source/lngprophelp.cxx 
b/linguistic/source/lngprophelp.cxx
index e3d09665625e..ce479ee851d8 100644
--- a/linguistic/source/lngprophelp.cxx
+++ b/linguistic/source/lngprophelp.cxx
@@ -632,6 +632,13 @@ void PropertyHelper_Hyphen::SetTmpPropVals( const 
PropertyValues &rPropVals )
             pnResVal = &nResHyphTextHyphenZone;
         else if ( rVal.Name == UPN_HYPH_NO_CAPS )
             pbResVal = &bResNoHyphenateCaps;
+        else if (rVal.Name == UPN_HYPH_NO_LAST_WORD ||
+                 rVal.Name == UPN_HYPH_KEEP ||
+                 rVal.Name == UPN_HYPH_KEEP_TYPE)
+        {
+            // skip these known ones without warnings
+            continue;
+        }
 
         SAL_WARN_IF( !(pnResVal || pbResVal), "linguistic", "unknown property 
'" << rVal.Name << "'");
 

Reply via email to