diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-12 15:12:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-12 16:12:18 +0200 |
commit | 240974561685ff44c1abf5157a043d0fde4654d1 (patch) | |
tree | 26f2bca7a3c1e34c4656906ae6d7e5cad260623a /unotools | |
parent | 1334ee97787aa7cea399fa7f1633aea84ff8047d (diff) |
loplugin:simplifyconstruct in ucbhelper..vcl
Change-Id: Id435bb3289dcfd9a7aeca6a661e249085958cb7c
Reviewed-on: https://gerrit.libreoffice.org/60392
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/options.cxx | 3 | ||||
-rw-r--r-- | unotools/source/i18n/intlwrapper.cxx | 5 | ||||
-rw-r--r-- | unotools/source/misc/syslocale.cxx | 2 | ||||
-rw-r--r-- | unotools/source/ucbhelper/tempfile.cxx | 6 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 1 |
5 files changed, 5 insertions, 12 deletions
diff --git a/unotools/source/config/options.cxx b/unotools/source/config/options.cxx index 292b254649d5..11a396287ad8 100644 --- a/unotools/source/config/options.cxx +++ b/unotools/source/config/options.cxx @@ -26,8 +26,7 @@ using utl::ConfigurationBroadcaster; utl::ConfigurationListener::~ConfigurationListener() {} ConfigurationBroadcaster::ConfigurationBroadcaster() -: mpList(nullptr) -, m_nBroadcastBlocked( 0 ) +: m_nBroadcastBlocked( 0 ) , m_nBlockedHint( ConfigurationHints::NONE ) { } diff --git a/unotools/source/i18n/intlwrapper.cxx b/unotools/source/i18n/intlwrapper.cxx index 901f74394334..fb5ee4c9d0ce 100644 --- a/unotools/source/i18n/intlwrapper.cxx +++ b/unotools/source/i18n/intlwrapper.cxx @@ -26,10 +26,7 @@ IntlWrapper::IntlWrapper( const LanguageTag& rLanguageTag ) : maLanguageTag( rLanguageTag ), - m_xContext( comphelper::getProcessComponentContext() ), - pLocaleData( nullptr ), - pCollator( nullptr ), - pCaseCollator( nullptr ) + m_xContext( comphelper::getProcessComponentContext() ) { } diff --git a/unotools/source/misc/syslocale.cxx b/unotools/source/misc/syslocale.cxx index a2dd62767832..98a17f063f8c 100644 --- a/unotools/source/misc/syslocale.cxx +++ b/unotools/source/misc/syslocale.cxx @@ -59,7 +59,7 @@ private: void setDateAcceptancePatternsConfig(); }; -SvtSysLocale_Impl::SvtSysLocale_Impl() : pCharClass(nullptr) +SvtSysLocale_Impl::SvtSysLocale_Impl() { pLocaleData.reset(new LocaleDataWrapper( aSysLocaleOptions.GetRealLanguageTag() )); setDateAcceptancePatternsConfig(); diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx index d6579bcfe7a2..d42df0c78be9 100644 --- a/unotools/source/ucbhelper/tempfile.cxx +++ b/unotools/source/ucbhelper/tempfile.cxx @@ -351,8 +351,7 @@ OUString TempFile::CreateTempName() } TempFile::TempFile( const OUString* pParent, bool bDirectory ) - : pStream( nullptr ) - , bIsDirectory( bDirectory ) + : bIsDirectory( bDirectory ) , bKillingFileEnabled( false ) { aName = CreateTempName_Impl( pParent, true, bDirectory ); @@ -361,8 +360,7 @@ TempFile::TempFile( const OUString* pParent, bool bDirectory ) TempFile::TempFile( const OUString& rLeadingChars, bool _bStartWithZero, const OUString* pExtension, const OUString* pParent, bool bCreateParentDirs ) - : pStream( nullptr ) - , bIsDirectory( false ) + : bIsDirectory( false ) , bKillingFileEnabled( false ) { SequentialTokens t(_bStartWithZero); diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index aa1357aeacec..92c5b30d80bc 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -971,7 +971,6 @@ static bool UCBOpenContentSync_( UcbLockBytes::UcbLockBytes() : m_aExpireDate( DateTime::EMPTY ) - , m_xInputStream (nullptr) , m_nError( ERRCODE_NONE ) , m_bTerminated (false) , m_bDontClose( false ) |