X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FComponent.cpp;fp=bundles%2Forg.simantics.databoard%2Fcpp%2FDataBoardTest%2FDataBoard%2FComponent.cpp;h=7ab2c8a4c9c5b606107655baba6b9d869467b270;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=d83ca2a0df11b502ad1acc245a73758aae554796;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Component.cpp b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Component.cpp index d83ca2a0d..7ab2c8a4c 100644 --- a/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Component.cpp +++ b/bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/Component.cpp @@ -1,36 +1,36 @@ -#include "Component.h" - -#include "DataType.h" - -#include - -namespace Databoard { - namespace Type { - - Component::Component(std::string name, DataType* type) - { - usingBuiltInType = type->getNotBuiltIn(); - - this->name = name; - this->type = type; - } - - Component::~Component() - { - if(type != NULL && usingBuiltInType == false) - { - delete type; - } - } - - std::string Component::getName() - { - return name; - } - - DataType* Component::getDataBoard() - { - return type; - } - } -} +#include "Component.h" + +#include "DataType.h" + +#include + +namespace Databoard { + namespace Type { + + Component::Component(std::string name, DataType* type) + { + usingBuiltInType = type->getNotBuiltIn(); + + this->name = name; + this->type = type; + } + + Component::~Component() + { + if(type != NULL && usingBuiltInType == false) + { + delete type; + } + } + + std::string Component::getName() + { + return name; + } + + DataType* Component::getDataBoard() + { + return type; + } + } +}