From 5d5f447e738f159297b3d7bf10220c3cdfe7e2fa Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 16 Apr 2015 22:18:45 +0100 Subject: UnoControls, toolkit, uuoi, xmlsecurity: convert new to ::Create. Change-Id: I7b8c7ece656589c50fb066e9fa1565fd59f930da --- UnoControls/source/controls/progressmonitor.cxx | 2 +- UnoControls/source/controls/statusindicator.cxx | 2 +- UnoControls/source/inc/progressbar.hxx | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'UnoControls') diff --git a/UnoControls/source/controls/progressmonitor.cxx b/UnoControls/source/controls/progressmonitor.cxx index e752b006031e..709ea0fe207b 100644 --- a/UnoControls/source/controls/progressmonitor.cxx +++ b/UnoControls/source/controls/progressmonitor.cxx @@ -57,7 +57,7 @@ ProgressMonitor::ProgressMonitor( const css::uno::Reference< XComponentContext > m_xTopic_Bottom = css::uno::Reference< XFixedText > ( rxContext->getServiceManager()->createInstanceWithContext( FIXEDTEXT_SERVICENAME, rxContext ), UNO_QUERY ); m_xText_Bottom = css::uno::Reference< XFixedText > ( rxContext->getServiceManager()->createInstanceWithContext( FIXEDTEXT_SERVICENAME, rxContext ), UNO_QUERY ); m_xButton = css::uno::Reference< XButton > ( rxContext->getServiceManager()->createInstanceWithContext( BUTTON_SERVICENAME, rxContext ), UNO_QUERY ); - m_xProgressBar = new ProgressBar(rxContext); + m_xProgressBar = VclPtr::Create(rxContext); // ... cast controls to Reference< XControl > (for "setModel"!) ... css::uno::Reference< XControl > xRef_Topic_Top ( m_xTopic_Top , UNO_QUERY ); diff --git a/UnoControls/source/controls/statusindicator.cxx b/UnoControls/source/controls/statusindicator.cxx index 240d148743a9..f4e54570f23c 100644 --- a/UnoControls/source/controls/statusindicator.cxx +++ b/UnoControls/source/controls/statusindicator.cxx @@ -47,7 +47,7 @@ StatusIndicator::StatusIndicator( const css::uno::Reference< XComponentContext > // Create instances for fixedtext and progress ... m_xText = css::uno::Reference< XFixedText > ( rxContext->getServiceManager()->createInstanceWithContext( FIXEDTEXT_SERVICENAME, rxContext ), UNO_QUERY ); - m_xProgressBar = new ProgressBar(rxContext); + m_xProgressBar = VclPtr::Create(rxContext); // ... cast controls to css::uno::Reference< XControl > and set model ... // ( ProgressBar has no model !!! ) css::uno::Reference< XControl > xTextControl ( m_xText , UNO_QUERY ); diff --git a/UnoControls/source/inc/progressbar.hxx b/UnoControls/source/inc/progressbar.hxx index 11994533af19..2b1dee2de696 100644 --- a/UnoControls/source/inc/progressbar.hxx +++ b/UnoControls/source/inc/progressbar.hxx @@ -23,6 +23,8 @@ #include #include +#include + #include "basecontrol.hxx" // namespaces -- cgit /co-24.04.11 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2016-05-30com::sun::star->css in connectivityNoel Grandin
2016-02-09Remove excess newlinesChris Sherlock
2015-10-30use uno::Reference::set method instead of assignmentNoel Grandin
2014-06-04connectivity: fix includesThomas Arnhold
2014-02-27Remove visual noise from connectivityAlexander Wilms
2013-10-12Bin bogus use of UNX (in not compiled test code)Tor Lillqvist
2013-06-29remove OUString wrap for string literalsThomas Arnhold
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
2012-06-12re-base on ALv2 code.Michael Meeks
2012-06-02targeted string re-workNorbert Thiebaud
2012-03-21chmod -xTor Lillqvist