aboutsummaryrefslogtreecommitdiff
path: root/src/functiontostring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/functiontostring.cpp')
-rw-r--r--src/functiontostring.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/functiontostring.cpp b/src/functiontostring.cpp
index a76705a..0a7bb48 100644
--- a/src/functiontostring.cpp
+++ b/src/functiontostring.cpp
@@ -11,7 +11,23 @@ FunctionToString::~FunctionToString()
11{ 11{
12} 12}
13 13
14void FunctionToString::execute( const StringList &lInput, StringList &lOutput ) 14void FunctionToString::execute( Build *bld, const StringList &lInput, StringList &lOutput )
15{ 15{
16 std::string sOut;
17
18 for( StringList::const_iterator i = lInput.begin(); i != lInput.end(); i++ )
19 {
20 if( i != lInput.begin() ) sOut += " ";
21 sOut += *i;
22 }
23
24 lOutput.push_back( sOut );
25}
26
27Function *FunctionToString::duplicate( Build &bld, const std::string &cont, VarMap *mExtra )
28{
29 Function *pRet = new FunctionToString();
30 pRet->copyData( this, bld, cont, mExtra );
31 return pRet;
16} 32}
17 33