r24710 by jghali - Code cleanup

scribus-commit scribus-commit at lists.scribus.net
Sun Sep 26 21:55:16 UTC 2021


Author: jghali
Date: Sun Sep 26 21:55:16 2021
New Revision: 24710

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

Modified:
    trunk/Scribus/scribus/third_party/zip/scribus_zip.cpp
    trunk/Scribus/scribus/third_party/zip/scribus_zip.h

Modified: trunk/Scribus/scribus/third_party/zip/scribus_zip.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24710&path=/trunk/Scribus/scribus/third_party/zip/scribus_zip.cpp
==============================================================================
--- trunk/Scribus/scribus/third_party/zip/scribus_zip.cpp	(original)
+++ trunk/Scribus/scribus/third_party/zip/scribus_zip.cpp	Sun Sep 26 21:55:16 2021
@@ -27,8 +27,6 @@
 
 ScZipHandler::ScZipHandler(bool forWrite)
 {
-	m_uz = nullptr;
-	m_zi = nullptr;
 	if (forWrite)
 		m_zi = new Zip();
 	else

Modified: trunk/Scribus/scribus/third_party/zip/scribus_zip.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24710&path=/trunk/Scribus/scribus/third_party/zip/scribus_zip.h
==============================================================================
--- trunk/Scribus/scribus/third_party/zip/scribus_zip.h	(original)
+++ trunk/Scribus/scribus/third_party/zip/scribus_zip.h	Sun Sep 26 21:55:16 2021
@@ -38,6 +38,7 @@
 
 		ScZipHandler(bool forWrite = false);
 		virtual ~ScZipHandler();
+
 		bool open(const QString& fileName);
 		bool close();
 		bool contains(const QString& fileName);
@@ -45,9 +46,10 @@
 		bool write(const QString& dirName);
 		bool extract(const QString& name, const QString& path, ExtractionOption eo);
 		QStringList files();
+
 	private:
-		UnZip* m_uz;
-		Zip* m_zi;
+		UnZip* m_uz { nullptr };
+		Zip* m_zi { nullptr };
 };
 
 #endif




More information about the scribus-commit mailing list