summaryrefslogtreecommitdiffstats
path: root/extensions/source/propctrlr/propcontroller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/propctrlr/propcontroller.cxx')
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx
index 4fd878441f90..f6a37893a11b 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -37,7 +37,7 @@
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/util/VetoException.hpp>
#include <tools/debug.hxx>
-#include <tools/diagnose_ex.h>
+#include <comphelper/diagnose_ex.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
@@ -55,9 +55,7 @@ namespace pcr
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::beans;
- using namespace ::com::sun::star::script;
using namespace ::com::sun::star::lang;
- using namespace ::com::sun::star::container;
using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::util;
using namespace ::com::sun::star::inspection;
@@ -443,7 +441,7 @@ namespace pcr
Any SAL_CALL OPropertyBrowserController::getViewData( )
{
- return makeAny( m_sPageSelection );
+ return Any( m_sPageSelection );
}
@@ -490,6 +488,9 @@ namespace pcr
m_aInspectedObjects.clear();
impl_bindToNewModel_nothrow( nullptr );
+ m_xModel.clear();
+ m_xInteractiveHandler.clear();
+ m_xFrame.clear();
}
void SAL_CALL OPropertyBrowserController::addEventListener( const Reference< XEventListener >& _rxListener )
@@ -956,7 +957,7 @@ namespace pcr
}
// append these properties to our "all properties" array
- aProperties.reserve( aProperties.size() + aThisHandlersProperties.size() );
+ aProperties.reserve( std::max<size_t>(aProperties.size() + aThisHandlersProperties.size(), aProperties.size() * 2) );
for (const auto & aThisHandlersProperty : aThisHandlersProperties)
{
auto noPrevious = std::none_of(
@@ -1111,7 +1112,7 @@ namespace pcr
{
weld::Widget* m_pControlWindow = pTunnel->getWidget();
if (m_pControlWindow)
- m_pControlWindow->set_buildable_name(m_pControlWindow->get_buildable_name() + "-" + _rDescriptor.DisplayName.toUtf8());
+ m_pControlWindow->set_buildable_name(m_pControlWindow->get_buildable_name() + "-" + _rDescriptor.DisplayName);
}
}
@@ -1178,7 +1179,7 @@ namespace pcr
// this category does not yet exist. This is allowed, as an inspector model might be lazy, and not provide
// any category information of its own. In this case, we have a fallback ...
m_aPageIds[ aDescriptor.Category ] =
- getPropertyBox().AppendPage( aDescriptor.Category, OString() );
+ getPropertyBox().AppendPage(aDescriptor.Category, {});
nTargetPageId = impl_getPageIdForCategory_nothrow( aDescriptor.Category );
}
@@ -1398,7 +1399,7 @@ namespace pcr
if ( m_xModel.is() )
aHandlerFactories = m_xModel->getHandlerFactories();
- for ( auto const & handlerFactory : std::as_const(aHandlerFactories) )
+ for (auto const& handlerFactory : aHandlerFactories)
{
if ( _rObjects.size() == 1 )
{ // we're inspecting only one object -> one handler