diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-03-01 10:22:17 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-03-01 15:28:31 +0200 |
commit | 51216852e0431d679d2bcfb428f2a2dd32fda3b0 (patch) | |
tree | 4bdb896d237abcfdbd3a481cb694d16af41003c1 /sw | |
parent | f9883185a4acedfb074eba4ee0269e919c74c767 (diff) |
WaE: use of logical '||' with constant operand
Until now the code has by accident added a property with the attribute
MAYBEVOID (which is that one which has the value 1), while the
intention obviously was to use BOUND|REMOVABLE. Whether this has
caused unintended consequences, or been harmless, and whether this fix
now then will cause unintended consequences, no idea.
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index 59345249abee..3ac1645b39ba 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -2466,7 +2466,7 @@ static void lcl_AddToPropertyContainer uno::Any aAny(C2U("")); xPropContainer->addProperty (rPropertyName, - static_cast<sal_Int16>(beans::PropertyAttribute::BOUND || + static_cast<sal_Int16>(beans::PropertyAttribute::BOUND | beans::PropertyAttribute::REMOVABLE), aAny); } |