X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/4cf57e6db08da791233d75237f62e74bc88dd427..756baf5c8eaf003e8271dab9c395de2b0e704857:/AbstractInterface.cpp?ds=sidebyside diff --git a/AbstractInterface.cpp b/AbstractInterface.cpp index c03cba9..1d1e41d 100644 --- a/AbstractInterface.cpp +++ b/AbstractInterface.cpp @@ -18,7 +18,7 @@ AbstractInterface::AbstractInterface(AbstractBlock* _owner) { AbstractInterface::AbstractInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _purpose, const QString& _type, const QString& _width, int _endianess) { owner = _owner; - name = _name; + name = AbstractBlock::normalizeName(_name); width = _width; direction = _direction; purpose = _purpose; @@ -29,7 +29,7 @@ AbstractInterface::AbstractInterface(AbstractBlock* _owner, const QString& _name AbstractInterface::AbstractInterface(AbstractInterface* other) { owner = NULL; - name = other->name; + name = AbstractBlock::normalizeName(other->name); type = other->type; width = other->width; direction = other->direction; @@ -38,6 +38,10 @@ AbstractInterface::AbstractInterface(AbstractInterface* other) { associatedIface = NULL; } +void AbstractInterface::setName(const QString& _name) { + name = AbstractBlock::normalizeName(_name); +} + AbstractInterface::~AbstractInterface() { }