Kaydet (Commit) c2139caf authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:simplifyconstruct in accessibility..bridges

Change-Id: I08f6a64b50f03d1b08027a2ac9e51442255d64bc
Reviewed-on: https://gerrit.libreoffice.org/59976
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 51dca926
......@@ -56,7 +56,6 @@ VCLXAccessibleList::VCLXAccessibleList (VCLXWindow* pVCLWindow, BoxType aBoxType
const Reference< XAccessible >& _xParent)
: VCLXAccessibleComponent (pVCLWindow),
m_aBoxType (aBoxType),
m_pListBoxHelper (nullptr),
m_nVisibleLineCount (0),
m_nIndexInParent (DEFAULT_INDEX_IN_PARENT),
m_nLastTopEntry ( 0 ),
......
......@@ -1822,8 +1822,7 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::replaceChild( const Referenc
if( replace == maChildren.end() )
throw NoSuchElementException();
Reference< XInterface > xNull( nullptr );
oldChild->setParent( xNull );
oldChild->setParent( Reference< XInterface >() );
(*replace) = newChild;
......@@ -1846,8 +1845,7 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::removeChild( const Reference
if( old == maChildren.end() )
throw NoSuchElementException();
Reference< XInterface > xNull( nullptr );
oldChild->setParent( xNull );
oldChild->setParent( Reference< XInterface >() );
maChildren.erase( old );
......
......@@ -123,8 +123,6 @@ MediaWindowImpl::MediaWindowImpl(vcl::Window* pParent, MediaWindow* pMediaWindow
, DragSourceHelper(this)
, mpMediaWindow(pMediaWindow)
, mpMediaWindowControl(bInternalMediaControl ? VclPtr<MediaWindowControl>::Create(this) : nullptr)
, mpEmptyBmpEx(nullptr)
, mpAudioBmpEx(nullptr)
{
if (mpMediaWindowControl)
{
......
......@@ -49,7 +49,6 @@ using namespace ::comphelper;
AccessibleDialogWindow::ChildDescriptor::ChildDescriptor( DlgEdObj* _pDlgEdObj )
:pDlgEdObj( _pDlgEdObj )
,rxAccessible( nullptr )
{
}
......
......@@ -206,7 +206,6 @@ namespace
MacroExecutionData()
:aDocument( ScriptDocument::NoDocument )
,xMethod( nullptr )
{
}
};
......
......@@ -732,9 +732,6 @@ public:
// the RefCount is set to 1 to never 'delete' this static incarnation.
ImplB3DPolygon()
: maPoints(0),
mpBColors(nullptr),
mpNormals(nullptr),
mpTextureCoordinates(nullptr),
maPlaneNormal(::basegfx::B3DVector::getEmptyVector()),
mbIsClosed(false),
mbPlaneNormalValid(true)
......@@ -744,9 +741,6 @@ public:
ImplB3DPolygon(const ImplB3DPolygon& rToBeCopied)
: maPoints(rToBeCopied.maPoints),
mpBColors(nullptr),
mpNormals(nullptr),
mpTextureCoordinates(nullptr),
maPlaneNormal(rToBeCopied.maPlaneNormal),
mbIsClosed(rToBeCopied.mbIsClosed),
mbPlaneNormalValid(rToBeCopied.mbPlaneNormalValid)
......@@ -770,9 +764,6 @@ public:
ImplB3DPolygon(const ImplB3DPolygon& rToBeCopied, sal_uInt32 nIndex, sal_uInt32 nCount)
: maPoints(rToBeCopied.maPoints, nIndex, nCount),
mpBColors(nullptr),
mpNormals(nullptr),
mpTextureCoordinates(nullptr),
maPlaneNormal(::basegfx::B3DVector::getEmptyVector()),
mbIsClosed(rToBeCopied.mbIsClosed),
mbPlaneNormalValid(false)
......
......@@ -74,7 +74,7 @@ void MacroSnippet::LoadSourceFromFile( const OUString& sMacroFileURL )
SbxVariableRef MacroSnippet::Run( const css::uno::Sequence< css::uno::Any >& rArgs )
{
SbxVariableRef pReturn = nullptr;
SbxVariableRef pReturn;
if ( !Compile() )
return pReturn;
SbMethod* pMeth = mpMod.is() ? static_cast<SbMethod*>(mpMod->Find( "doUnitTest", SbxClassType::Method )) : nullptr;
......
......@@ -1952,8 +1952,8 @@ static const char pItemStr[] = "Item";
static const char pRemoveStr[] = "Remove";
static sal_uInt16 nCountHash = 0, nAddHash, nItemHash, nRemoveHash;
SbxInfoRef BasicCollection::xAddInfo = nullptr;
SbxInfoRef BasicCollection::xItemInfo = nullptr;
SbxInfoRef BasicCollection::xAddInfo;
SbxInfoRef BasicCollection::xItemInfo;
BasicCollection::BasicCollection( const OUString& rClass )
: SbxObject( rClass )
......
......@@ -354,7 +354,7 @@ Any SAL_CALL DocObjectWrapper::queryInterface( const Type& aType )
SbMethodRef DocObjectWrapper::getMethod( const OUString& aName )
{
SbMethodRef pMethod = nullptr;
SbMethodRef pMethod;
if ( m_pMod )
{
SbxFlagBits nSaveFlgs = m_pMod->GetFlags();
......@@ -369,7 +369,7 @@ SbMethodRef DocObjectWrapper::getMethod( const OUString& aName )
SbPropertyRef DocObjectWrapper::getProperty( const OUString& aName )
{
SbPropertyRef pProperty = nullptr;
SbPropertyRef pProperty;
if ( m_pMod )
{
SbxFlagBits nSaveFlgs = m_pMod->GetFlags();
......@@ -423,7 +423,7 @@ bool getDefaultVBAMode( StarBASIC* pb )
SbModule::SbModule( const OUString& rName, bool bVBACompat )
: SbxObject( "StarBASICModule" ),
pImage( nullptr ), pBreaks( nullptr ), pClassData( nullptr ), mbVBACompat( bVBACompat ), pDocObject( nullptr ), bIsProxyModule( false )
mbVBACompat( bVBACompat ), bIsProxyModule( false )
{
SetName( rName );
SetFlag( SbxFlagBits::ExtSearch | SbxFlagBits::GlobalSearch );
......
......@@ -96,8 +96,7 @@ IMPL_LINK_NOARG( SbiInputDialog, Cancel, weld::Button&, void )
}
SbiStream::SbiStream()
: pStrm(nullptr)
, nExpandOnWriteTo(0)
: nExpandOnWriteTo(0)
, nLine(0)
, nLen(0)
, nMode(SbiStreamFlags::NONE)
......
......@@ -36,7 +36,6 @@
SbxAppData::SbxAppData()
: eErrCode(ERRCODE_NONE)
, pBasicFormater(nullptr)
, eBasicFormaterLangType(LANGUAGE_DONTKNOW)
{
}
......
......@@ -337,7 +337,7 @@ static SbxVariableRef Element
SbxVariable* SbxObject::Execute( const OUString& rTxt )
{
SbxVariableRef pVar = nullptr;
SbxVariableRef pVar;
const sal_Unicode* p = rTxt.getStr();
for( ;; )
{
......@@ -366,7 +366,7 @@ SbxVariable* SbxObject::Execute( const OUString& rTxt )
SbxVariable* SbxObject::FindQualified( const OUString& rName, SbxClassType t )
{
SbxVariableRef pVar = nullptr;
SbxVariableRef pVar;
const sal_Unicode* p = rName.getStr();
p = SkipWhitespace( p );
if( !*p )
......
......@@ -232,8 +232,7 @@ void JNI_compound_type_info::destroy( JNIEnv * jni_env )
JNI_compound_type_info::JNI_compound_type_info(
JNI_context const & jni, typelib_TypeDescription * td_ )
: JNI_type_info( jni, td_ ),
m_exc_ctor( nullptr ),
m_fields( nullptr )
m_exc_ctor( nullptr )
{
assert( m_td.get()->eTypeClass == typelib_TypeClass_STRUCT ||
m_td.get()->eTypeClass == typelib_TypeClass_EXCEPTION );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment