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

loplugin:simplifyconstruct in reportdesign..sax

Change-Id: I7d2a754cdc5576b5a5b35db2fbffd19ea17c16ff
Reviewed-on: https://gerrit.libreoffice.org/60224
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 926e4e46
......@@ -153,8 +153,6 @@ OAddFieldWindow::OAddFieldWindow(vcl::Window* pParent ,const uno::Reference< bea
, m_pListBox(VclPtr<OAddFieldWindowListBox>::Create(get<vcl::Window>("box"), this))
, m_nCommandType(0)
, m_bEscapeProcessing(false)
, m_pChangeListener(nullptr)
, m_pContainerListener(nullptr)
{
get(m_aActions, "toolbox");
m_nSortUpId = m_aActions->GetItemId(0);
......
......@@ -108,8 +108,6 @@ Condition::Condition( vcl::Window* _pParent, IConditionalFormatAction& _rAction,
, m_aColorWrapper(this)
, m_rController(_rController)
, m_rAction(_rAction)
, m_pBtnUpdaterFontColor(nullptr)
, m_pBtnUpdaterBackgroundColor(nullptr)
, m_nCondIndex(0)
, m_bInDestruction(false)
{
......
......@@ -803,7 +803,6 @@ OGroupsSortingDialog::OGroupsSortingDialog(vcl::Window* _pParent, bool _bReadOnl
: FloatingWindow(_pParent, "FloatingSort", "modules/dbreport/ui/floatingsort.ui")
, OPropertyChangeListener(m_aMutex)
, m_pController(_pController)
, m_pCurrentGroupListener(nullptr)
, m_xGroups(m_pController->getReportDefinition()->getGroups())
, m_bReadOnly(_bReadOnly)
{
......
......@@ -176,7 +176,7 @@ void adjustSectionName(const uno::Reference< report::XGroup >& _xGroup,sal_Int32
::rtl::Reference< comphelper::OPropertyChangeMultiplexer> addStyleListener(const uno::Reference< report::XReportDefinition >& _xReportDefinition,::comphelper::OPropertyChangeListener* _pListener)
{
::rtl::Reference< comphelper::OPropertyChangeMultiplexer> pRet = nullptr;
::rtl::Reference< comphelper::OPropertyChangeMultiplexer> pRet;
if ( _xReportDefinition.is() )
{
uno::Reference<beans::XPropertySet> xPageStyle(getUsedStyle(_xReportDefinition),uno::UNO_QUERY);
......
......@@ -82,8 +82,6 @@ OReportSection::OReportSection(OSectionWindow* _pParent,const uno::Reference< re
, m_pPage(nullptr)
, m_pView(nullptr)
, m_pParent(_pParent)
, m_pMulti(nullptr)
, m_pReportListener(nullptr)
, m_xSection(_xSection)
, m_nPaintEntranceCount(0)
, m_eMode(DlgEdMode::Select)
......
......@@ -50,7 +50,6 @@ OScrollWindowHelper::OScrollWindowHelper( ODesignView* _pDesignView)
,m_aCornerWin( VclPtr<ScrollBarBox>::Create(this) )
,m_pParent(_pDesignView)
,m_aReportWindow(VclPtr<rptui::OReportWindow>::Create(this,m_pParent))
,m_pReportDefinitionMultiPlexer(nullptr)
{
SetMapMode( MapMode( MapUnit::Map100thMM ) );
......
......@@ -113,7 +113,6 @@ void DlgEdFunc::ForceScroll( const Point& rPos )
DlgEdFunc::DlgEdFunc( OReportSection* _pParent )
: m_pParent(_pParent)
, m_rView(_pParent->getSectionView())
, m_xOverlappingObj(nullptr)
, m_pOverlappingObj(nullptr)
, m_nOverlappedControlColor(0)
, m_nOldColor(0)
......
......@@ -84,7 +84,7 @@ class TestReferenceRefCounting : public CppUnit::TestFixture
static_cast<long>(2), test2->use_count());
// use count should decrement
test2 = rtl::Reference< MoveTestClass >(nullptr);
test2 = rtl::Reference< MoveTestClass >();
CPPUNIT_ASSERT_EQUAL_MESSAGE("test1.use_count() == 1",
static_cast<long>(1), test1->use_count());
......
......@@ -939,8 +939,7 @@ class SAXWriter :
{
public:
SAXWriter()
: m_pSaxWriterHelper(nullptr)
, m_bDocStarted(false)
: m_bDocStarted(false)
, m_bIsCDATA(false)
, m_bForceLineBreak(false)
, m_bAllowLineBreak(false)
......
......@@ -47,7 +47,6 @@ public:
, mpCache(mnMaximumSize)
, pSeq(mpCache.get())
, mbWriteToOutStream(true)
, mpForMerge(nullptr)
{}
const css::uno::Reference< css::io::XOutputStream >& getOutputStream() const
......
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