X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Fevent.h;h=44396c1af7bd00dd04982b5a2dd3a6d8eb11da35;hb=13dedf19c628b9967e4c4106ab0fd967f1df0b90;hp=91f33c9a9bc01bc3d6182abaddb963b46e3d91fb;hpb=688e916955a6b848dbbae1f65ae85a73593ed680;p=evaf
diff --git a/src/libs/Common/event.h b/src/libs/Common/event.h
index 91f33c9..44396c1 100644
--- a/src/libs/Common/event.h
+++ b/src/libs/Common/event.h
@@ -3,7 +3,7 @@
* @brief Base class for all the events
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -31,10 +31,10 @@ namespace eVaf {
namespace Common {
/**
- * Base class for all the eVaf events
+ * Event class for all the eVaf events
* @code@include @endcode
*
- * The Event class is an event container for reference counted data objects.
+ * The Event class is an event container for all the eVaf events.
*/
class COMMON_EXPORT Event : public QEvent
{
@@ -58,7 +58,7 @@ public:
* is decreased by 1 when the event object is destroyed. If nobody else claimed the ownership, then
* the shared data object is destroyed too.
*/
- Event(uint eventId, quint32 intValue = 0, QSharedData * dataObj = 0)
+ Event(uint eventId, quint32 intValue = 0, QSharedData * dataObj = nullptr)
: QEvent(eVafEvent)
, mId(eventId)
, mValue(intValue)
@@ -82,7 +82,7 @@ public:
* is finished, the event and shared data attached to it are destroyed. To keep the shared
* data object, use QExplicitlySharedDataPointer<> to claim ownership.
*/
- inline QSharedData * data() const { return mData ? mData.data() : 0; }
+ inline QSharedData * data() const { return mData != nullptr ? mData.data() : nullptr; }
private: