Introjucer - JucerDocument Typo Breaks Builds


#1

Hi,

There's a typo in the JucerDocument class where generated code misses a ';'  when writing the method "Component::setName(xxx)".  Wasn't sure how to report bugs... here's a patch.  


diff --git a/extras/Introjucer/Source/ComponentEditor/jucer_JucerDocument.cpp b/extras/Introjucer/Source/ComponentEditor/jucer_JucerDocument.cpp
index ec3d19b..7247f5e 100644
--- a/extras/Introjucer/Source/ComponentEditor/jucer_JucerDocument.cpp
+++ b/extras/Introjucer/Source/ComponentEditor/jucer_JucerDocument.cpp
@@ -430,7 +430,7 @@ void JucerDocument::fillInGeneratedCode (GeneratedCode& code) const
     code.initialisers.addLines (variableInitialisers);
 
     if (! componentName.isEmpty())
-        code.constructorCode << "setName (" + quotedString (componentName) + ")\n";
+        code.constructorCode << "setName (" + quotedString (componentName) + ");\n";
 
     // call these now, just to make sure they're the first two methods in the list.
     code.getCallbackCode (String::empty, "void", "paint (Graphics& g)", false)

I'm working on Linux right now and haven't made it to Mac/PC to try a fresh build there.  I image this typo would break all builds though since it's a c/c++ syntax thing.

 


#2

Thanks, that was probably in there for a long time! I've sorted it out now.


#3

No problem, I have to say introjucer is coming along nicely.  If code completion ever is added, I might just have to ditch my other editors ;)