mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 20:13:40 +02:00
Fixing typo and syntax
This commit is contained in:
parent
59387be856
commit
4bdc0d718d
1 changed files with 145 additions and 146 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue