diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-03-15 23:20:43 +0000 | 
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-03-15 23:20:43 +0000 | 
| commit | 6af48e503bb6d2d02440de741d689806ba242362 (patch) | |
| tree | 53d8b79bee4b285fce39430b1e3df00fd1716469 | |
| parent | Fix potential segfault due to order of destruction with unregister classes (diff) | |
| download | slicer-6af48e503bb6d2d02440de741d689806ba242362.tar.bz2 slicer-6af48e503bb6d2d02440de741d689806ba242362.tar.xz slicer-6af48e503bb6d2d02440de741d689806ba242362.zip  | |
Fix irritator formatting in initClassName
| -rw-r--r-- | slicer/tool/parser.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp index b24eac6..5302044 100644 --- a/slicer/tool/parser.cpp +++ b/slicer/tool/parser.cpp @@ -199,14 +199,14 @@ namespace Slicer {  		fprintbf(cpp, "template<> DLL_PUBLIC\n");  		fprintbf(cpp, "const std::string * ModelPartForClass< %s >::typeName = nullptr;\n",  				decl->typeId()); -		fprintbf(cpp, "template<>\nvoid ModelPartForClass< %s >::initClassName() {\n\tclassName = new std::string(\"%s\");\n", +		fprintbf(cpp, "template<>\nvoid ModelPartForClass< %s >::initClassName() {\n\tclassName = new std::string(\"%s\");\n\t",  				decl->typeId(), c->scoped());  		if (typeName) { -			fprintbf(cpp, "\t typeName = new std::string(\"%s\");", +			fprintbf(cpp, "typeName = new std::string(\"%s\");",  					*typeName);  		}  		else { -			fprintbf(cpp, "\t typeName = nullptr;"); +			fprintbf(cpp, "typeName = nullptr;");  		}  		fprintbf(cpp, "\n}\n");  | 
