X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcomponent.cpp;h=4bdff213abcaf45a404d62444c7fe19b2b343479;hb=921fc49488a68442fb8794e1a0284a3bf1e7b91b;hp=27a4c53c08805db4e23e2bdbbb186ba9c6ca018d;hpb=09325a99816a966bc17a0ec9a0a197efc6ce0349;p=builder.git diff --git a/source/component.cpp b/source/component.cpp index 27a4c53..4bdff21 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -1,18 +1,17 @@ -#include +#include #include "component.h" #include "package.h" using namespace std; -#include - Component::Component(Package &p, Type t, const string &n): pkg(p), type(t), name(n), install(false), module_host(0), - modular(false) + modular(false), + deflt(true) { } /** @@ -64,6 +63,7 @@ Component::Loader::Loader(Component &c): add("require", &Loader::require); add("modular", &Loader::modular); add("host", &Loader::host); + add("default", &Component::deflt); } void Component::Loader::source(const string &s)