Commit 0b4e52a7 authored by Jan Möbius's avatar Jan Möbius

Added BaseObject::NoObject which can be used, if an object does not exist.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17856 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ce2d1329
......@@ -55,6 +55,7 @@
//== INCLUDES =================================================================
#include "BaseObjectCore.hh"
#include "BaseObject.hh"
#include "Types.hh"
#include <OpenFlipper/BasePlugin/PluginFunctionsCore.hh>
#include <OpenFlipper/BasePlugin/PluginFunctions.hh>
......@@ -74,6 +75,11 @@ static ObjectManager objectManager_;
*/
static int idGenerator = 1;
/** Static member for no object initialization
*
*/
int BaseObject::NOOBJECT = -1;
BaseObject::BaseObject(const BaseObject& _object) :
QObject(),
id_(idGenerator),
......
......@@ -101,6 +101,10 @@ class DLLEXPORTONLY BaseObject : public QObject {
virtual ~BaseObject();
/** predefined handle which is returned when objects are not found or not initialized.
*/
static int NOOBJECT;
//===========================================================================
/** @name Object Identification
* @{ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment