diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-09-27 23:14:45 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-09-27 23:14:45 +0200 |
commit | 97da89451c1de4a85a8f02b496441cb712652e5a (patch) | |
tree | 199750a533a6a8008261c7fb4a714e19d152a780 /svtools | |
parent | 75fe8129a6355e2f56e40ae2be01822d8ca015ab (diff) |
cppcheck: redundantAssignment
Change-Id: I0e43c8920a3f439bff4835aadd5e69c322cc0730
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/transfer2.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/misc/transfer2.cxx b/svtools/source/misc/transfer2.cxx index 4da84002652c..7eac621ebf8e 100644 --- a/svtools/source/misc/transfer2.cxx +++ b/svtools/source/misc/transfer2.cxx @@ -136,7 +136,6 @@ void SAL_CALL DropTargetHelper::DropTargetListener::drop( const DropTargetDropEv { AcceptDropEvent aAcceptEvent; ExecuteDropEvent aExecuteEvt( rDTDE.DropAction & ~DNDConstants::ACTION_DEFAULT, Point( rDTDE.LocationX, rDTDE.LocationY ), rDTDE ); - sal_Int8 nRet = DNDConstants::ACTION_NONE; aExecuteEvt.mbDefault = ( ( rDTDE.DropAction & DNDConstants::ACTION_DEFAULT ) != 0 ); @@ -152,7 +151,7 @@ void SAL_CALL DropTargetHelper::DropTargetListener::drop( const DropTargetDropEv aAcceptEvent.mbLeaving = sal_False; aAcceptEvent.mbDefault = aExecuteEvt.mbDefault; - nRet = mrParent.AcceptDrop( aAcceptEvent ); + sal_Int8 nRet = mrParent.AcceptDrop( aAcceptEvent ); if( DNDConstants::ACTION_NONE != nRet ) { |