diff --git a/tools/scribe/src/main.cpp b/tools/scribe/src/main.cpp index e69d927941..55f23f8c55 100755 --- a/tools/scribe/src/main.cpp +++ b/tools/scribe/src/main.cpp @@ -29,7 +29,7 @@ int main (int argc, char** argv) { std::string lastVarName; bool listVars = false; bool showParseTree = false; - bool makeCplusplus = false; + bool makeCPlusPlus = false; TextTemplate::Config::Pointer config(new TextTemplate::Config()); @@ -63,7 +63,7 @@ int main (int argc, char** argv) { showParseTree = true; mode = READY; } else if (inputs.back() == "-c++") { - makeCplusplus = true; + makeCPlusPlus = true; mode = READY; } else { // just grabbed the source filename, stop parameter parsing @@ -135,8 +135,7 @@ int main (int argc, char** argv) { } } // no clean it to have just a descent c var name - if (!targetName.empty()) - { + if (!targetName.empty()) { // trim anything before '/' or '\' targetName = targetName.substr(targetName.find_last_of('/') + 1); targetName = targetName.substr(targetName.find_last_of('\\') + 1); @@ -166,7 +165,6 @@ int main (int argc, char** argv) { return 0; } - TextTemplate::Pointer scribe(new TextTemplate(srcFilename, config)); // ready to parse and generate @@ -188,7 +186,7 @@ int main (int argc, char** argv) { } std::ostringstream targetStringStream; - if (makeCplusplus) { + if (makeCPlusPlus) { targetStringStream << "// File generated by Scribe " << vars["_SCRIBE_DATE"] << std::endl; targetStringStream << "#ifndef scribe_" << targetName << "_h" << std::endl;