summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-11-09 22:18:34 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-11-16 16:54:39 +0100
commita080c8f34d80b8c70764e7bde934f43c2fe4a109 (patch)
treed8f1437812eeb6cb744762616e54a1a9ed32f3d6 /sw/source/ui/vba
parent2abe293f085fc66eeaeeae85c9714a41a874cbcd (diff)
sw: avoid 'condition ? sal_True : sal_False' expressions
Change-Id: Idd6c9f9752659fc5da575e5a3f0ffc15ce5dbe1c
Diffstat (limited to 'sw/source/ui/vba')
-rw-r--r--sw/source/ui/vba/vbaselection.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx
index f2af13a09a08..a8b12eca1566 100644
--- a/sw/source/ui/vba/vbaselection.cxx
+++ b/sw/source/ui/vba/vbaselection.cxx
@@ -131,7 +131,7 @@ SwVbaSelection::HomeKey( const uno::Any& _unit, const uno::Any& _extend ) throw
sal_Int32 nExtend = word::WdMovementType::wdMove;
_unit >>= nUnit;
_extend >>= nExtend;
- bool bExtend = ( nExtend == word::WdMovementType::wdExtend ) ? sal_True : sal_False;
+ bool bExtend = nExtend == word::WdMovementType::wdExtend;
switch( nUnit )
{
@@ -166,7 +166,7 @@ SwVbaSelection::EndKey( const uno::Any& _unit, const uno::Any& _extend ) throw (
sal_Int32 nExtend = word::WdMovementType::wdMove;
_unit >>= nUnit;
_extend >>= nExtend;
- bool bExtend = ( nExtend == word::WdMovementType::wdExtend ) ? sal_True : sal_False;
+ bool bExtend = nExtend == word::WdMovementType::wdExtend;
switch( nUnit )
{