r24697 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Sat Aug 21 20:06:54 UTC 2021


Author: jghali
Date: Sat Aug 21 20:06:54 2021
New Revision: 24697

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

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

Modified: trunk/Scribus/scribus/prefscontext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24697&path=/trunk/Scribus/scribus/prefscontext.cpp
==============================================================================
--- trunk/Scribus/scribus/prefscontext.cpp	(original)
+++ trunk/Scribus/scribus/prefscontext.cpp	Sat Aug 21 20:06:54 2021
@@ -29,16 +29,15 @@
 
 PrefsContext::PrefsContext()
 {
-	m_name = "";
-	m_ispersistent = false;
-	m_isplugin = false;
+	m_isPersistent = false;
+	m_isPlugin = false;
 }
 
 PrefsContext::PrefsContext(const QString& contextName, bool persistent, bool plugin)
 {
 	m_name = contextName;
-	m_ispersistent = persistent;
-	m_isplugin = plugin;
+	m_isPersistent = persistent;
+	m_isPlugin = plugin;
 }
 
 QString PrefsContext::getName()
@@ -48,12 +47,12 @@
 
 bool PrefsContext::isPersistent()
 {
-	return m_ispersistent;
+	return m_isPersistent;
 }
 
 bool PrefsContext::isPlugin()
 {
-	return m_isplugin;
+	return m_isPlugin;
 }
 
 bool PrefsContext::isEmpty()

Modified: trunk/Scribus/scribus/prefscontext.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24697&path=/trunk/Scribus/scribus/prefscontext.h
==============================================================================
--- trunk/Scribus/scribus/prefscontext.h	(original)
+++ trunk/Scribus/scribus/prefscontext.h	Sat Aug 21 20:06:54 2021
@@ -39,16 +39,14 @@
 
 class SCRIBUS_API PrefsContext
 {
-private:
-	QString m_name;
-	bool m_isplugin;
-	bool m_ispersistent;
 public:
-	AttributeMap values;
-	TableMap tables;
 	PrefsContext();
 	PrefsContext(const QString& contextName, bool persistent = true, bool plugin = false);
 	~PrefsContext();
+
+	AttributeMap values;
+	TableMap tables;
+
 	QString getName();
 	bool    isPersistent();
 	bool    isPlugin();
@@ -69,6 +67,11 @@
 	void    set(const QString& key, bool value);
 	PrefsTable* getTable(const QString& m_name);
 	void    removeTable(const QString& m_name);
+
+private:
+	QString m_name;
+	bool m_isPlugin { false };
+	bool m_isPersistent { false };
 };
 
 #endif // PREFSCONTEXTS_H




More information about the scribus-commit mailing list