r23571 by craig - Code clean up
scribus-commit
scribus-commit at lists.scribus.net
Wed Apr 8 22:05:34 UTC 2020
Author: craig
Date: Wed Apr 8 22:05:33 2020
New Revision: 23571
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23571
Log:
Code clean up
Modified:
trunk/Scribus/scribus/scribusapp.cpp
trunk/Scribus/scribus/scribusapp.h
Modified: trunk/Scribus/scribus/scribusapp.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23571&path=/trunk/Scribus/scribus/scribusapp.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusapp.cpp (original)
+++ trunk/Scribus/scribus/scribusapp.cpp Wed Apr 8 22:05:33 2020
@@ -99,14 +99,10 @@
bool ScribusQApp::useGUI=false;
-ScribusQApp::ScribusQApp( int & argc, char ** argv ) : QApplication(argc, argv),
- m_lang(""),
- m_GUILang("en_GB")
+ScribusQApp::ScribusQApp( int & argc, char ** argv ) : QApplication(argc, argv)
{
ScQApp = this;
ScCore = nullptr;
- m_scDLMgr = nullptr;
- m_ScCore = nullptr;
initDLMgr();
setAttribute(Qt::AA_UseHighDpiPixmaps, true);
}
Modified: trunk/Scribus/scribus/scribusapp.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23571&path=/trunk/Scribus/scribus/scribusapp.h
==============================================================================
--- trunk/Scribus/scribus/scribusapp.h (original)
+++ trunk/Scribus/scribus/scribusapp.h Wed Apr 8 22:05:33 2020
@@ -83,7 +83,6 @@
QStringList pythonScriptArgs; // command line arguments and flags for script from CLI
private:
- ScribusCore* m_ScCore;
void showHeader();
void showVersion();
/*!
@@ -100,8 +99,9 @@
*/
void showAvailLangs();
+ ScribusCore* m_ScCore {nullptr};
QString m_lang;
- QString m_GUILang;
+ QString m_GUILang {"en_GB"};
bool m_showSplash;
bool m_showFontInfo;
bool m_showProfileInfo;
@@ -110,7 +110,7 @@
QList<QString> m_filesToLoad;
QString m_fileName;
QFontDatabase m_fontDb;
- ScDLManager *m_scDLMgr;
+ ScDLManager *m_scDLMgr {nullptr};
protected:
virtual bool event(QEvent *event);
More information about the scribus-commit
mailing list