[Libreoffice-commits] .: sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Dec 13 14:46:49 PST 2012


 sd/source/ui/func/fuoltext.cxx |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

New commits:
commit aaa77d7473023fa9e5879d897230ff6dcb091f20
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Thu Dec 13 23:44:05 2012 +0100

    Some cppcheck cleaning
    
    Change-Id: Iaa53d523436d36483b901a913c2c66edbb451f6c

diff --git a/sd/source/ui/func/fuoltext.cxx b/sd/source/ui/func/fuoltext.cxx
index 7f7e385..4def931 100644
--- a/sd/source/ui/func/fuoltext.cxx
+++ b/sd/source/ui/func/fuoltext.cxx
@@ -106,11 +106,9 @@ FunctionReference FuOutlineText::Create( ViewShell* pViewSh, ::sd::Window* pWin,
 
 sal_Bool FuOutlineText::MouseButtonDown(const MouseEvent& rMEvt)
 {
-    sal_Bool bReturn = sal_False;
-
     mpWindow->GrabFocus();
 
-    bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseButtonDown(rMEvt);
+    sal_Bool bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseButtonDown(rMEvt);
 
     if (bReturn)
     {
@@ -133,9 +131,7 @@ sal_Bool FuOutlineText::MouseButtonDown(const MouseEvent& rMEvt)
 
 sal_Bool FuOutlineText::MouseMove(const MouseEvent& rMEvt)
 {
-    sal_Bool bReturn = sal_False;
-
-    bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseMove(rMEvt);
+    sal_Bool bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseMove(rMEvt);
 
     if (!bReturn)
     {
@@ -153,9 +149,7 @@ sal_Bool FuOutlineText::MouseMove(const MouseEvent& rMEvt)
 
 sal_Bool FuOutlineText::MouseButtonUp(const MouseEvent& rMEvt)
 {
-    sal_Bool bReturn = sal_False;
-
-    bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseButtonUp(rMEvt);
+    sal_Bool bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseButtonUp(rMEvt);
 
     if (bReturn)
     {


More information about the Libreoffice-commits mailing list