diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-06-10 08:52:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-06-10 12:04:17 +0200 |
commit | d25de4a04671c2f380fc86a58259b073c49dfe19 (patch) | |
tree | e07480b995e3ba26b035655d65af0185c8e151ac /linguistic/source/lngprophelp.cxx | |
parent | 3c41e714497fdb13cdcbc4d6ba31887d4aaa4b61 (diff) |
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.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'linguistic/source/lngprophelp.cxx')
-rw-r--r-- | linguistic/source/lngprophelp.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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 << "'"); |