[Libreoffice-commits] core.git: slideshow/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Feb 22 17:03:45 UTC 2019


 slideshow/source/engine/slideshowimpl.cxx |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

New commits:
commit bacd06e9270ab64fa2c8243181c19c977d2bb649
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri Feb 22 11:11:35 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Feb 22 18:03:06 2019 +0100

    loplugin:unusedfields in slideshow
    
    Change-Id: I98d599c40e36906022fc5d0b1d992a42c3d784ce
    Reviewed-on: https://gerrit.libreoffice.org/68201
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx
index 9865d7fa5776..3b1cccc8bd75 100644
--- a/slideshow/source/engine/slideshowimpl.cxx
+++ b/slideshow/source/engine/slideshowimpl.cxx
@@ -430,8 +430,6 @@ private:
 
     //changed for the eraser project
     boost::optional<bool>           maEraseAllInk;
-    boost::optional<bool>           maSwitchPenMode;
-    boost::optional<bool>           maSwitchEraserMode;
     boost::optional<sal_Int32>          maEraseInk;
     //end changed
 
@@ -1582,9 +1580,8 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty )
                         "setProperty(): User paint overrides invisible mouse" );
 
             if(bSwitchPenMode){
-            // Switch to Pen Mode
-            maSwitchPenMode = bSwitchPenMode;
-            maEventMultiplexer.notifySwitchPenMode();
+                // Switch to Pen Mode
+                maEventMultiplexer.notifySwitchPenMode();
             }
         }
         return true;
@@ -1598,9 +1595,8 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty )
             OSL_ENSURE( mbMouseVisible,
                         "setProperty(): User paint overrides invisible mouse" );
             if(bSwitchEraserMode){
-            // switch to Eraser mode
-            maSwitchEraserMode = bSwitchEraserMode;
-            maEventMultiplexer.notifySwitchEraserMode();
+                // switch to Eraser mode
+                maEventMultiplexer.notifySwitchEraserMode();
             }
         }
 


More information about the Libreoffice-commits mailing list