summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-15 15:11:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-16 09:00:39 +0200
commit4adea88305ff22483bdc925fe782a3422a6da813 (patch)
treef5fb6692efc7acf8ba78ba2d72560e5f51bb5836 /extensions
parentb9df8ad95e56493d6868c8b820b899f27218d105 (diff)
loplugin:returnconstant in OPropertyBrowserController
Change-Id: Id5e225dbe5a1c2f27c1032cdaab35a01c78ede81 Reviewed-on: https://gerrit.libreoffice.org/59136 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx20
-rw-r--r--extensions/source/propctrlr/propcontroller.hxx2
2 files changed, 9 insertions, 13 deletions
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx
index 0db2e8be590a..8492d115e0d6 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -361,16 +361,14 @@ namespace pcr
if (!pParentWin)
throw RuntimeException("The frame is invalid. Unable to extract the container window.",*this);
- if ( Construct( pParentWin ) )
+ Construct( pParentWin );
+ try
{
- try
- {
- m_xFrame->setComponent( VCLUnoHelper::GetInterface( m_pView ), this );
- }
- catch( const Exception& )
- {
- OSL_FAIL( "OPropertyBrowserController::attachFrame: caught an exception!" );
- }
+ m_xFrame->setComponent( VCLUnoHelper::GetInterface( m_pView ), this );
+ }
+ catch( const Exception& )
+ {
+ OSL_FAIL( "OPropertyBrowserController::attachFrame: caught an exception!" );
}
startContainerWindowListening();
@@ -669,7 +667,7 @@ namespace pcr
}
- bool OPropertyBrowserController::Construct(vcl::Window* _pParentWin)
+ void OPropertyBrowserController::Construct(vcl::Window* _pParentWin)
{
DBG_ASSERT(!haveView(), "OPropertyBrowserController::Construct: already have a view!");
DBG_ASSERT(_pParentWin, "OPropertyBrowserController::Construct: invalid parent window!");
@@ -690,8 +688,6 @@ namespace pcr
impl_initializeView_nothrow();
m_pView->Show();
-
- return true;
}
diff --git a/extensions/source/propctrlr/propcontroller.hxx b/extensions/source/propctrlr/propcontroller.hxx
index f2463adeb9f4..0dbbe5cffe93 100644
--- a/extensions/source/propctrlr/propcontroller.hxx
+++ b/extensions/source/propctrlr/propcontroller.hxx
@@ -307,7 +307,7 @@ namespace pcr
*/
bool impl_findObjectProperty_nothrow( const OUString& _rName, OrderedPropertyMap::const_iterator* _pProperty = nullptr );
- bool Construct(vcl::Window* _pParentWin);
+ void Construct(vcl::Window* _pParentWin);
/** retrieves the property handler for a given property name
@param _rPropertyName