From 85539c8c262c0c9e227c87fd1de02c53c163b7d8 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 20 Sep 2006 18:56:49 +0000 Subject: Changed the api for variable replacement contexts. There can now be multiple levels of contextual inheritance, so now sub-targets automatically get their parent target's context variables, if they need them. --- src/stringprocbuild.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stringprocbuild.cpp') diff --git a/src/stringprocbuild.cpp b/src/stringprocbuild.cpp index 071e941..419d819 100644 --- a/src/stringprocbuild.cpp +++ b/src/stringprocbuild.cpp @@ -10,7 +10,7 @@ StringProcBuild::~StringProcBuild() { } -std::string StringProcBuild::replVars( const std::string &sSrc, const std::string &sCont, VarMap *mExtra ) +std::string StringProcBuild::replVars( const std::string &sSrc, const StringList *pCont, VarMap *mExtra ) { std::string sDes, sBuf; int nMode = 0; @@ -31,7 +31,7 @@ std::string StringProcBuild::replVars( const std::string &sSrc, const std::strin { if( sSrc[j] == '}' ) { - sDes += getBuild()->getVar( sCont, sBuf, mExtra ); + sDes += getBuild()->getVar( pCont, sBuf, mExtra ); nMode = 0; } else -- cgit v1.2.3