summaryrefslogtreecommitdiffstats
path: root/linguistic
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-11-04 17:06:47 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-11-04 16:57:59 +0100
commit628e96ce1fce194b30a5c2912feb8b7ec0328db0 (patch)
tree7a901d6da7d0dea1da3ac55ebe96fc33fc904150 /linguistic
parentReplace preprocessor macro with short function definitions (diff)
downloadcore-628e96ce1fce194b30a5c2912feb8b7ec0328db0.tar.gz
core-628e96ce1fce194b30a5c2912feb8b7ec0328db0.zip
tdf#120703 PVS: V547 Expression is always true/false
Change-Id: I3432afca1ee9bf9e8adce1d55d58d57bf1a09cb4 Reviewed-on: https://gerrit.libreoffice.org/62847 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/lngprophelp.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx
index fd633f4671f5..7c061be2a621 100644
--- a/linguistic/source/lngprophelp.cxx
+++ b/linguistic/source/lngprophelp.cxx
@@ -584,8 +584,6 @@ bool PropertyHelper_Hyphen::propertyChange_Impl( const PropertyChangeEvent& rEvt
if (!bRes && GetPropSet().is() && rEvt.Source == GetPropSet())
{
- sal_Int16 nLngSvcFlags = LinguServiceEventFlags::HYPHENATE_AGAIN;
-
sal_Int16 *pnVal = nullptr;
switch (rEvt.PropertyHandle)
{
@@ -601,11 +599,8 @@ bool PropertyHelper_Hyphen::propertyChange_Impl( const PropertyChangeEvent& rEvt
bRes = (pnVal != nullptr);
if (bRes)
{
- if (nLngSvcFlags)
- {
- LinguServiceEvent aEvt( GetEvtObj(), nLngSvcFlags );
- LaunchEvent( aEvt );
- }
+ LinguServiceEvent aEvt(GetEvtObj(), LinguServiceEventFlags::HYPHENATE_AGAIN);
+ LaunchEvent(aEvt);
}
}