summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-11-23 18:54:42 +0100
committerJulien Nabet <serval2412@yahoo.fr>2019-11-23 23:38:07 +0100
commite6ab01ce532d1db01579b70bd476b2f643522bf9 (patch)
tree635d070ef835aa7f016a540a486fcb363c721e9b /sfx2/source
parent5efa7d4605c8c683bb54a1723d0916e6f0166b52 (diff)
cppcheck: performing init in init list (sfx2/slideshow/stoc/store)
Change-Id: Iddbd3256aabe9552472b55d3d9b88a3769698de9 Reviewed-on: https://gerrit.libreoffice.org/83576 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/bastyp/fltlst.cxx4
-rw-r--r--sfx2/source/doc/exoticfileloadexception.cxx4
-rw-r--r--sfx2/source/view/viewsh.cxx3
3 files changed, 5 insertions, 6 deletions
diff --git a/sfx2/source/bastyp/fltlst.cxx b/sfx2/source/bastyp/fltlst.cxx
index ef9e333129b8..25b401e9feb7 100644
--- a/sfx2/source/bastyp/fltlst.cxx
+++ b/sfx2/source/bastyp/fltlst.cxx
@@ -82,9 +82,9 @@ class SfxRefreshListener : public ::cppu::WeakImplHelper<css::util::XRefreshList
@threadsafe yes
*//*-*************************************************************************************************************/
SfxFilterListener::SfxFilterListener()
+ : m_xFilterCache(document::FilterConfigRefresh::create( comphelper::getProcessComponentContext() ) ),
+ m_xFilterCacheListener(new SfxRefreshListener(this))
{
- m_xFilterCache = document::FilterConfigRefresh::create( comphelper::getProcessComponentContext() );
- m_xFilterCacheListener = new SfxRefreshListener(this);
m_xFilterCache->addRefreshListener( m_xFilterCacheListener );
}
diff --git a/sfx2/source/doc/exoticfileloadexception.cxx b/sfx2/source/doc/exoticfileloadexception.cxx
index 56a697f43bf6..4993c0640a47 100644
--- a/sfx2/source/doc/exoticfileloadexception.cxx
+++ b/sfx2/source/doc/exoticfileloadexception.cxx
@@ -16,6 +16,8 @@ using namespace com::sun::star;
ExoticFileLoadException::ExoticFileLoadException(const OUString& rURL,
const OUString& rFilterUIName)
+ : m_xAbort(new comphelper::OInteractionAbort)
+ , m_xApprove(new comphelper::OInteractionApprove)
{
document::ExoticFileLoadException aReq;
aReq.URL = rURL;
@@ -23,8 +25,6 @@ ExoticFileLoadException::ExoticFileLoadException(const OUString& rURL,
m_aRequest <<= aReq;
- m_xAbort = new comphelper::OInteractionAbort;
- m_xApprove = new comphelper::OInteractionApprove;
m_lContinuations.realloc(2);
m_lContinuations[0] = m_xApprove;
m_lContinuations[1] = m_xAbort;
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 1c7638349b79..d648b1159b04 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -152,9 +152,8 @@ private:
};
SfxClipboardChangeListener::SfxClipboardChangeListener( SfxViewShell* pView, const uno::Reference< datatransfer::clipboard::XClipboardNotifier >& xClpbrdNtfr )
- : m_pViewShell( nullptr ), m_xClpbrdNtfr( xClpbrdNtfr )
+ : m_pViewShell( nullptr ), m_xClpbrdNtfr( xClpbrdNtfr ), m_xCtrl(pView->GetController())
{
- m_xCtrl = pView->GetController();
if ( m_xCtrl.is() )
{
m_xCtrl->addEventListener( uno::Reference < lang::XEventListener > ( static_cast < lang::XEventListener* >( this ) ) );