diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-20 11:27:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-21 07:34:57 +0100 |
commit | e7191f32cb699f229f429edbefde237eb3f5fbfb (patch) | |
tree | 065b8cbbec15e0d518fdffb30a6e11c381bd1c17 /toolkit | |
parent | a07a638229f28ad7b7369646f6348da2fc70671d (diff) |
loplugin:subtlezeroinit: toolkit
Change-Id: I2e300c3e884440c60fef692a9083498dcdeba8df
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxaccessiblecomponent.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/awt/vclxprinter.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/dialogcontrol.cxx | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx index 7d3600bc93c7..1f8aeb8195a0 100644 --- a/toolkit/source/awt/vclxaccessiblecomponent.cxx +++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx @@ -44,7 +44,7 @@ using namespace ::com::sun::star; using namespace ::comphelper; VCLXAccessibleComponent::VCLXAccessibleComponent( VCLXWindow* pVCLXWindow ) - : OAccessibleExtendedComponentHelper( new VCLExternalSolarLock() ) + : OAccessibleExtendedComponentHelper( new VCLExternalSolarLock ) , OAccessibleImplementationAccess( ) { m_xVCLXWindow = pVCLXWindow; diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx index d89c32d975e7..fe4a8f089fe1 100644 --- a/toolkit/source/awt/vclxprinter.cxx +++ b/toolkit/source/awt/vclxprinter.cxx @@ -403,7 +403,7 @@ stardiv_Toolkit_VCLXPrinterServer_get_implementation( css::uno::XComponentContext *, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new VCLXPrinterServer()); + return cppu::acquire(new VCLXPrinterServer); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx index b7f719313943..382cf55c0941 100644 --- a/toolkit/source/controls/dialogcontrol.cxx +++ b/toolkit/source/controls/dialogcontrol.cxx @@ -201,7 +201,7 @@ UnoControlDialogModel::UnoControlDialogModel( const Reference< XComponentContext ImplRegisterProperty( BASEPROPERTY_MOVEABLE, aBool ); ImplRegisterProperty( BASEPROPERTY_CLOSEABLE, aBool ); // #TODO separate class for 'UserForm' ( instead of re-using Dialog ? ) - uno::Reference< XNameContainer > xNameCont = new SimpleNamedThingContainer< XControlModel >(); + uno::Reference< XNameContainer > xNameCont = new SimpleNamedThingContainer< XControlModel >; ImplRegisterProperty( BASEPROPERTY_USERFORMCONTAINEES, uno::makeAny( xNameCont ) ); } @@ -210,7 +210,7 @@ UnoControlDialogModel::UnoControlDialogModel( const UnoControlDialogModel& rMode { // need to clone BASEPROPERTY_USERFORMCONTAINEES too Reference< XNameContainer > xSrcNameCont( const_cast< UnoControlDialogModel& >(rModel).getPropertyValue( GetPropertyName( BASEPROPERTY_USERFORMCONTAINEES ) ), UNO_QUERY ); - Reference<XNameContainer > xNameCont( new SimpleNamedThingContainer< XControlModel >() ); + Reference<XNameContainer > xNameCont( new SimpleNamedThingContainer< XControlModel > ); uno::Sequence< OUString > sNames = xSrcNameCont->getElementNames(); OUString* pName = sNames.getArray(); @@ -871,7 +871,7 @@ UnoMultiPageModel::UnoMultiPageModel( const Reference< XComponentContext >& rxCo // MultiPage Control has the tab stop property. And the default value is True. ImplRegisterProperty( BASEPROPERTY_TABSTOP, aBool ); - uno::Reference< XNameContainer > xNameCont = new SimpleNamedThingContainer< XControlModel >(); + uno::Reference< XNameContainer > xNameCont = new SimpleNamedThingContainer< XControlModel >; ImplRegisterProperty( BASEPROPERTY_USERFORMCONTAINEES, uno::makeAny( xNameCont ) ); } @@ -989,7 +989,7 @@ UnoPageModel::UnoPageModel( const Reference< XComponentContext >& rxContext ) : ImplRegisterProperty( BASEPROPERTY_CLOSEABLE, aBool ); //ImplRegisterProperty( BASEPROPERTY_TABSTOP, aBool ); - uno::Reference< XNameContainer > xNameCont = new SimpleNamedThingContainer< XControlModel >(); + uno::Reference< XNameContainer > xNameCont = new SimpleNamedThingContainer< XControlModel >; ImplRegisterProperty( BASEPROPERTY_USERFORMCONTAINEES, uno::makeAny( xNameCont ) ); } @@ -1152,7 +1152,7 @@ UnoFrameModel::UnoFrameModel( const Reference< XComponentContext >& rxContext ) ImplRegisterProperty( BASEPROPERTY_SCROLLLEFT ); - uno::Reference< XNameContainer > xNameCont = new SimpleNamedThingContainer< XControlModel >(); + uno::Reference< XNameContainer > xNameCont = new SimpleNamedThingContainer< XControlModel >; ImplRegisterProperty( BASEPROPERTY_USERFORMCONTAINEES, uno::makeAny( xNameCont ) ); } @@ -1194,7 +1194,7 @@ uno::Any UnoFrameModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const return uno::Any( sal_Int32(0) ); case BASEPROPERTY_USERFORMCONTAINEES: { - uno::Reference< XNameContainer > xNameCont = new SimpleNamedThingContainer< XControlModel >(); + uno::Reference< XNameContainer > xNameCont = new SimpleNamedThingContainer< XControlModel >; return makeAny( xNameCont ); } } |