r24722 by jghali - Code cleanup
scribus-commit
scribus-commit at lists.scribus.net
Sun Oct 3 03:24:07 UTC 2021
Author: jghali
Date: Sun Oct 3 03:19:00 2021
New Revision: 24722
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24722
Log:
Code cleanup
Modified:
trunk/Scribus/scribus/observable.h
Modified: trunk/Scribus/scribus/observable.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24722&path=/trunk/Scribus/scribus/observable.h
==============================================================================
--- trunk/Scribus/scribus/observable.h (original)
+++ trunk/Scribus/scribus/observable.h Sun Oct 3 03:19:00 2021
@@ -32,38 +32,38 @@
public:
void emitSignal(QObject* what)
-{
- emit changedObject(what);
-}
-
-void emitSignal(QVariant what)
-{
- emit changedData(what);
-}
-
-bool connectSignal(QObject*, QObject* o, const char* slot)
-{
- return QObject::connect(this, SIGNAL(changedObject(QObject*)), o, slot);
-}
-
-bool disconnectSignal(QObject*, QObject* o, const char* slot)
-{
- return QObject::disconnect(this, SIGNAL(changedObject(QObject*)), o, slot);
-}
-
-bool connectSignal(QVariant, QObject* o, const char* slot)
-{
- return QObject::connect(this, SIGNAL(changedData(QVariant)), o, slot);
-}
-
-bool disconnectSignal(QVariant, QObject* o, const char* slot)
-{
- return QObject::disconnect(this, SIGNAL(changedData(QVariant)), o, slot);
-}
+ {
+ emit changedObject(what);
+ }
+
+ void emitSignal(QVariant what)
+ {
+ emit changedData(what);
+ }
+
+ bool connectSignal(QObject*, QObject* o, const char* slot)
+ {
+ return QObject::connect(this, SIGNAL(changedObject(QObject*)), o, slot);
+ }
+
+ bool disconnectSignal(QObject*, QObject* o, const char* slot)
+ {
+ return QObject::disconnect(this, SIGNAL(changedObject(QObject*)), o, slot);
+ }
+
+ bool connectSignal(QVariant, QObject* o, const char* slot)
+ {
+ return QObject::connect(this, SIGNAL(changedData(QVariant)), o, slot);
+ }
+
+ bool disconnectSignal(QVariant, QObject* o, const char* slot)
+ {
+ return QObject::disconnect(this, SIGNAL(changedData(QVariant)), o, slot);
+ }
signals:
-void changedObject(QObject* what);
-void changedData(QVariant what);
+ void changedObject(QObject* what);
+ void changedData(QVariant what);
};
@@ -71,11 +71,11 @@
template<class OBSERVED>
struct Private_Memento : public UpdateMemento
{
- Private_Memento(OBSERVED data) : m_data(data), m_layout(false) {}
+ Private_Memento(OBSERVED data) : m_data(data) {}
Private_Memento(OBSERVED data, bool layout) : m_data(data), m_layout(layout) {}
OBSERVED m_data;
- bool m_layout;
+ bool m_layout { false };
};
@@ -145,8 +145,8 @@
virtual void updateNow(UpdateMemento* what);
QSet<Observer<OBSERVED>*> m_observers;
- Private_Signal* changedSignal;
- UpdateManager* m_um;
+ Private_Signal* changedSignal { nullptr };
+ UpdateManager* m_um { nullptr };
};
@@ -182,7 +182,7 @@
}
private:
- MassObservable<OBSERVED*>* m_massObservable;
+ MassObservable<OBSERVED*>* m_massObservable { nullptr };
};
More information about the scribus-commit
mailing list