r24714 by jghali - Code cleanup

scribus-commit scribus-commit at lists.scribus.net
Sat Oct 2 21:21:27 UTC 2021


Author: jghali
Date: Sat Oct  2 21:21:27 2021
New Revision: 24714

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24714
Log:
Code cleanup

Modified:
    trunk/Scribus/scribus/collapsedtablepainterex.cpp
    trunk/Scribus/scribus/collapsedtablepainterex.h

Modified: trunk/Scribus/scribus/collapsedtablepainterex.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24714&path=/trunk/Scribus/scribus/collapsedtablepainterex.cpp
==============================================================================
--- trunk/Scribus/scribus/collapsedtablepainterex.cpp	(original)
+++ trunk/Scribus/scribus/collapsedtablepainterex.cpp	Sat Oct  2 21:21:27 2021
@@ -24,9 +24,10 @@
 using namespace TableUtils;
 
 CollapsedTablePainterEx::CollapsedTablePainterEx(ScPageOutput* pageOutput, PageItem_Table* table)
-{
-	m_pageOutput = pageOutput;
-	m_table = table;
+	                   : m_table(table),
+	                     m_pageOutput(pageOutput)
+{
+
 }
 
 void CollapsedTablePainterEx::paintTable(ScPainterExBase* p)

Modified: trunk/Scribus/scribus/collapsedtablepainterex.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24714&path=/trunk/Scribus/scribus/collapsedtablepainterex.h
==============================================================================
--- trunk/Scribus/scribus/collapsedtablepainterex.h	(original)
+++ trunk/Scribus/scribus/collapsedtablepainterex.h	Sat Oct  2 21:21:27 2021
@@ -31,8 +31,8 @@
 	virtual void paintTable(ScPainterExBase* p);
 
 private:
-	PageItem_Table* m_table;
-	ScPageOutput* m_pageOutput;
+	PageItem_Table* m_table { nullptr };
+	ScPageOutput* m_pageOutput { nullptr };
 	
 	/// Paints the fill of the table.
 	void paintTableFill(ScPainterExBase* p) const;




More information about the scribus-commit mailing list