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

Caolán McNamara caolanm at redhat.com
Sat Jun 10 14:09:26 UTC 2017


 extensions/source/propctrlr/browserline.cxx |   21 +++++++--------------
 extensions/source/propctrlr/browserline.hxx |    2 +-
 2 files changed, 8 insertions(+), 15 deletions(-)

New commits:
commit 2802dca10eef67554a81cb2347d5f648fa6fcd63
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Jun 10 15:06:20 2017 +0100

    coverity#1405937 rework to silence Uncaught exception
    
    Change-Id: I89be5a53b5282130fd399a17ebe1a03ea75009e5

diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx
index b9fe58839c72..32c9cb680780 100644
--- a/extensions/source/propctrlr/browserline.cxx
+++ b/extensions/source/propctrlr/browserline.cxx
@@ -69,8 +69,8 @@ namespace pcr
 
     OBrowserLine::~OBrowserLine()
     {
-        implHideBrowseButton( true, false );
-        implHideBrowseButton( false, false );
+        implHideBrowseButton(true);
+        implHideBrowseButton(false);
         m_aFtTitle.disposeAndClear();
     }
 
@@ -410,8 +410,7 @@ namespace pcr
         }
 
         rButton.SetModeImage( aImage );
-   }
-
+    }
 
     void OBrowserLine::ShowBrowseButton( const Image& _rImage, bool _bPrimary )
     {
@@ -420,14 +419,12 @@ namespace pcr
             rButton.SetModeImage( _rImage );
     }
 
-
     void OBrowserLine::ShowBrowseButton( bool _bPrimary )
     {
         impl_ensureButton( _bPrimary );
     }
 
-
-    void OBrowserLine::implHideBrowseButton( bool _bPrimary, bool _bReLayout )
+    void OBrowserLine::implHideBrowseButton(bool _bPrimary)
     {
         VclPtr<PushButton>& rpButton = _bPrimary ? m_pBrowseButton : m_pAdditionalBrowseButton;
 
@@ -436,18 +433,14 @@ namespace pcr
             rpButton->Hide();
             rpButton.disposeAndClear();
         }
-
-        if ( _bReLayout )
-            impl_layoutComponents();
     }
 
-
-    void OBrowserLine::HideBrowseButton( bool _bPrimary )
+    void OBrowserLine::HideBrowseButton(bool _bPrimary)
     {
-        implHideBrowseButton( _bPrimary, true );
+        implHideBrowseButton(_bPrimary);
+        impl_layoutComponents();
     }
 
-
     void OBrowserLine::SetTitleWidth(sal_uInt16 nWidth)
     {
         if (m_nNameWidth != nWidth+10)
diff --git a/extensions/source/propctrlr/browserline.hxx b/extensions/source/propctrlr/browserline.hxx
index 656d86b94b71..f71f9578cd86 100644
--- a/extensions/source/propctrlr/browserline.hxx
+++ b/extensions/source/propctrlr/browserline.hxx
@@ -116,7 +116,7 @@ namespace pcr
         DECL_LINK( OnButtonClicked, Button*, void );
         DECL_LINK( OnButtonFocus, Control&, void );
 
-        void    implHideBrowseButton( bool _bPrimary, bool _bReLayout );
+        void    implHideBrowseButton(bool _bPrimary);
         void    implUpdateEnabledDisabled();
 
         void    impl_layoutComponents();


More information about the Libreoffice-commits mailing list