Fixing typo and syntax

This commit is contained in:
Sam Gateau 2014-12-23 14:29:26 -08:00
parent 59387be856
commit 4bdc0d718d

View file

@ -72,10 +72,10 @@ void TextTemplate::Config::addIncludePath(const char* path) {
}
bool TextTemplate::loadFile(const ConfigPointer& config, const char* filename, String& source) {
String s(filename);
String sourceFile(filename);
String fullfilename;
for (unsigned int i = 0; i < config->_paths.size(); i++) {
fullfilename = config->_paths[i] + s;
fullfilename = config->_paths[i] + sourceFile;
std::ifstream ifs;
ifs.open(fullfilename.c_str());
if (ifs.is_open()) {
@ -622,7 +622,6 @@ const BlockPointer TextTemplate::processStepFunc(const BlockPointer& block, Stri
return block;
}
// DOes the func already exists ?
if (_config->_funcs.findFunc(varName.c_str())) {
logError(block, "Declaring a new func named <%s> already exists", func.c_str());