tablette/src/model/itemType.cpp
2025-08-19 10:49:26 +02:00

16 lines
472 B
C++

#include "itemType.hpp"
ItemType::ItemType(const std::string &name, int id, const std::string &comment, int size)
: name(name), id(id), comment(comment), size(size)
{}
ItemType::ItemType(const ItemType &other)
: name(other.getName()), id(other.getId()), comment(other.getComment()), size(other.getSize())
{}
ItemType::~ItemType()
{
// Destructor does not need to do anything special for std::string
// as it will automatically clean up the resources.
}