Create node class with ending with Node.

Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
pull/16/head
Emanoil Kotsev 6 years ago committed by Michele Calgaro
parent 14aebff1f4
commit 3997d3cdec
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -358,7 +358,10 @@ int main(int argc, char** argv)
TQTextStream sourceStream;
TQString baseName = options["node"];
if (baseName.isEmpty()) baseName = classData.name.lower() + "node";
if (baseName.isEmpty()) {
baseName = classData.name.lower() + "node";
classData.name += "Node";
}
if (!ClassGenerator::initStreams(baseName, headerStream, sourceStream))
{

Loading…
Cancel
Save