summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2023-02-15 14:20:27 +0200
committerTor Lillqvist <tml@collabora.com>2023-02-15 14:45:33 +0000
commitd88fa033f02b70e28dbef6b42a4e73abc24c3a60 (patch)
treefbabe642dcf337efe75f6a0680b213cb0fb232d1 /linguistic
parenta36be102d6e94fd4b2a379a1bbfe2aefd0614d6b (diff)
Make a few warning messages a bit more useful
Change-Id: Ie533e76532f2ee6477cce8042d958d36bf9ebb9a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147082 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/lngprophelp.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx
index 543685dc33c4..57483d062e55 100644
--- a/linguistic/source/lngprophelp.cxx
+++ b/linguistic/source/lngprophelp.cxx
@@ -412,7 +412,7 @@ bool PropertyHelper_Spell::propertyChange_Impl( const PropertyChangeEvent& rEvt
break;
}
default:
- SAL_WARN( "linguistic", "unknown property" );
+ SAL_WARN( "linguistic", "unknown property handle " << rEvt.PropertyHandle << " (check in include/unotools/linguprops.hxx)" );
}
if (pbVal)
rEvt.NewValue >>= *pbVal;
@@ -474,7 +474,7 @@ void PropertyHelper_Spell::SetTmpPropVals( const PropertyValues &rPropVals )
case UPH_IS_SPELL_CLOSED_COMPOUND : pbResVal = &bResIsSpellClosedCompound; break;
case UPH_IS_SPELL_HYPHENATED_COMPOUND : pbResVal = &bResIsSpellHyphenatedCompound; break;
default:
- SAL_WARN( "linguistic", "unknown property" );
+ SAL_WARN( "linguistic", "unknown property handle " << rVal.Handle << " (check in include/unotools/linguprops.hxx)" );
}
if (pbResVal)
rVal.Value >>= *pbResVal;
@@ -577,7 +577,7 @@ bool PropertyHelper_Hyphen::propertyChange_Impl( const PropertyChangeEvent& rEvt
case UPH_HYPH_MIN_WORD_LENGTH : pnVal = &nHyphMinWordLength; break;
case UPH_HYPH_NO_CAPS : pbVal = &bNoHyphenateCaps; break;
default:
- SAL_WARN( "linguistic", "unknown property" );
+ SAL_WARN( "linguistic", "unknown property handle " << rEvt.PropertyHandle << " (check in include/unotools/linguprops.hxx)");
}
if (pnVal)
rEvt.NewValue >>= *pnVal;
@@ -629,7 +629,7 @@ void PropertyHelper_Hyphen::SetTmpPropVals( const PropertyValues &rPropVals )
else if ( rVal.Name == UPN_HYPH_NO_CAPS )
pbResVal = &bResNoHyphenateCaps;
- DBG_ASSERT( pnResVal || pbResVal, "unknown property" );
+ SAL_WARN_IF( !(pnResVal || pbResVal), "linguistic", "unknown property '" << rVal.Name << "'");
if (pnResVal)
rVal.Value >>= *pnResVal;