diff options
Diffstat (limited to '')
-rw-r--r-- | src/functiontargets.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/functiontargets.cpp b/src/functiontargets.cpp index 3fd145e..ad92376 100644 --- a/src/functiontargets.cpp +++ b/src/functiontargets.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | #include <bu/plugger.h> | 5 | #include <bu/plugger.h> |
6 | PluginInterface3( pluginFunctionTargets, targets, FunctionTargets, Function, | 6 | PluginInterface3( pluginFunctionTargets, targets, FunctionTargets, Function, |
7 | "Mike Buland", 0, 1 ); | 7 | "Mike Buland", 0, 1 ); |
8 | 8 | ||
9 | FunctionTargets::FunctionTargets() | 9 | FunctionTargets::FunctionTargets() |
10 | { | 10 | { |
@@ -16,28 +16,28 @@ FunctionTargets::~FunctionTargets() | |||
16 | 16 | ||
17 | Bu::String FunctionTargets::getName() const | 17 | Bu::String FunctionTargets::getName() const |
18 | { | 18 | { |
19 | return "targets"; | 19 | return "targets"; |
20 | } | 20 | } |
21 | 21 | ||
22 | Variable FunctionTargets::call( Variable &/*input*/, VarList lParams ) | 22 | Variable FunctionTargets::call( Variable &/*input*/, VarList lParams ) |
23 | { | 23 | { |
24 | Variable vRet( Variable::typeList ); | 24 | Variable vRet( Variable::typeList ); |
25 | TargetList lTrg; | 25 | TargetList lTrg; |
26 | if( lParams.getSize() == 0 ) | 26 | if( lParams.getSize() == 0 ) |
27 | { | 27 | { |
28 | lTrg = pContext->getExplicitTargets(); | 28 | lTrg = pContext->getExplicitTargets(); |
29 | } | 29 | } |
30 | else | 30 | else |
31 | { | 31 | { |
32 | lTrg = pContext->getTag( lParams.first().toString() ); | 32 | lTrg = pContext->getTag( lParams.first().toString() ); |
33 | } | 33 | } |
34 | for( TargetList::const_iterator i = lTrg.begin(); i; i++ ) | 34 | for( TargetList::const_iterator i = lTrg.begin(); i; i++ ) |
35 | { | 35 | { |
36 | for( StrList::const_iterator j = (*i)->getOutputList().begin(); j; j++ ) | 36 | for( StrList::const_iterator j = (*i)->getOutputList().begin(); j; j++ ) |
37 | { | 37 | { |
38 | vRet.append( *j ); | 38 | vRet.append( *j ); |
39 | } | 39 | } |
40 | } | 40 | } |
41 | return vRet; | 41 | return vRet; |
42 | } | 42 | } |
43 | 43 | ||