X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fandroidapplicationcomponent.cpp;h=e4feaa2c2c29195560ab20d2acd7169246bbaf0e;hb=1ed833343bc83b83c5f61cbfd74423bbba677a04;hp=212db7d5df08755bdb68a610d22c5ecacfc0095f;hpb=aa053d637e8259755af7d2e4b510a242f4d29c7b;p=builder.git diff --git a/source/androidapplicationcomponent.cpp b/source/androidapplicationcomponent.cpp index 212db7d..e4feaa2 100644 --- a/source/androidapplicationcomponent.cpp +++ b/source/androidapplicationcomponent.cpp @@ -1,3 +1,4 @@ +#include #include #include #include "androidapplicationcomponent.h" @@ -13,10 +14,6 @@ using namespace std; using namespace Msp; -AndroidApplicationComponent::AndroidApplicationComponent(SourcePackage &p, const string &n): - Component(p, n) -{ } - void AndroidApplicationComponent::create_targets() const { Builder &builder = package.get_builder(); @@ -91,5 +88,6 @@ AndroidApplicationComponent::Loader::Loader(AndroidApplicationComponent &c): void AndroidApplicationComponent::Loader::permission(const string &perm) { - obj.permissions.insert(perm); + if(!any_equals(obj.permissions, perm)) + obj.permissions.push_back(perm); }