[Libreoffice-commits] core.git: svtools/source
Julien Nabet
serval2412 at yahoo.fr
Wed May 8 11:17:42 PDT 2013
svtools/source/brwbox/datwin.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit 5630b301689f2ccb459b42c4503b95bc61891dce
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Wed May 8 20:17:02 2013 +0200
cppcheck: variables reassigned before using old value
Change-Id: I5108253859eac682ab423843f8812c8c8c6ce9fa
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx
index 2f2543c..29ae1b5 100644
--- a/svtools/source/brwbox/datwin.cxx
+++ b/svtools/source/brwbox/datwin.cxx
@@ -365,8 +365,7 @@ BrowseEvent BrowserDataWin::CreateBrowseEvent( const Point& rPosPixel )
sal_Int8 BrowserDataWin::AcceptDrop( const AcceptDropEvent& _rEvt )
{
bCallingDropCallback = sal_True;
- sal_Int8 nReturn = DND_ACTION_NONE;
- nReturn = GetParent()->AcceptDrop( BrowserAcceptDropEvent( this, _rEvt ) );
+ sal_Int8 nReturn = GetParent()->AcceptDrop( BrowserAcceptDropEvent( this, _rEvt ) );
bCallingDropCallback = sal_False;
return nReturn;
}
@@ -375,8 +374,7 @@ sal_Int8 BrowserDataWin::AcceptDrop( const AcceptDropEvent& _rEvt )
sal_Int8 BrowserDataWin::ExecuteDrop( const ExecuteDropEvent& _rEvt )
{
bCallingDropCallback = sal_True;
- sal_Int8 nReturn = DND_ACTION_NONE;
- nReturn = GetParent()->ExecuteDrop( BrowserExecuteDropEvent( this, _rEvt ) );
+ sal_Int8 nReturn = GetParent()->ExecuteDrop( BrowserExecuteDropEvent( this, _rEvt ) );
bCallingDropCallback = sal_False;
return nReturn;
}
More information about the Libreoffice-commits
mailing list