r24767 by jghali - Fix gcc warning + small cleanup
scribus-commit
scribus-commit at lists.scribus.net
Sat Nov 6 13:50:20 UTC 2021
Author: jghali
Date: Sat Nov 6 13:50:20 2021
New Revision: 24767
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24767
Log:
Fix gcc warning + small cleanup
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=24767&path=/trunk/Scribus/scribus/prefscontext.cpp
==============================================================================
--- trunk/Scribus/scribus/prefscontext.cpp (original)
+++ trunk/Scribus/scribus/prefscontext.cpp Sat Nov 6 13:50:20 2021
@@ -27,17 +27,10 @@
#include "prefscontext.h"
#include "scclocale.h"
-PrefsContext::PrefsContext()
- : 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_isPlugin(plugin),
+ m_isPersistent(persistent)
{
}
Modified: trunk/Scribus/scribus/prefscontext.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24767&path=/trunk/Scribus/scribus/prefscontext.h
==============================================================================
--- trunk/Scribus/scribus/prefscontext.h (original)
+++ trunk/Scribus/scribus/prefscontext.h Sat Nov 6 13:50:20 2021
@@ -40,7 +40,7 @@
class SCRIBUS_API PrefsContext
{
public:
- PrefsContext();
+ PrefsContext() = default;
PrefsContext(const QString& contextName, bool persistent = true, bool plugin = false);
~PrefsContext();
More information about the scribus-commit
mailing list