aseprite/src/doc/object.cpp

33 lines
471 B
C++
Raw Normal View History

2014-03-13 06:25:09 +08:00
// Aseprite Document Library
// Copyright (c) 2001-2014 David Capello
2014-03-13 06:25:09 +08:00
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
2014-03-13 06:25:09 +08:00
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "doc/object.h"
namespace doc {
static ObjectId newId = 0;
Object::Object(ObjectType type)
: m_type(type)
, m_id(++newId)
{
}
Object::~Object()
2014-03-13 06:25:09 +08:00
{
}
int Object::getMemSize() const
{
return sizeof(Object);
}
2014-03-13 06:25:09 +08:00
} // namespace doc