Add float and double to languageSpecificPrimitives
This commit is contained in:
Richard Baverstock 2015-10-29 10:50:07 -07:00
parent 837ffc8947
commit 4438c63f6b

View File

@ -97,7 +97,9 @@ public class Qt5CPPGenerator extends DefaultCodegen implements CodegenConfig {
Arrays.asList( Arrays.asList(
"bool", "bool",
"qint32", "qint32",
"qint64") "qint64",
"float",
"double")
); );
supportingFiles.add(new SupportingFile("helpers-header.mustache", sourceFolder, PREFIX + "Helpers.h")); supportingFiles.add(new SupportingFile("helpers-header.mustache", sourceFolder, PREFIX + "Helpers.h"));
@ -321,4 +323,4 @@ public class Qt5CPPGenerator extends DefaultCodegen implements CodegenConfig {
public String toApiName(String type) { public String toApiName(String type) {
return PREFIX + Character.toUpperCase(type.charAt(0)) + type.substring(1) + "Api"; return PREFIX + Character.toUpperCase(type.charAt(0)) + type.substring(1) + "Api";
} }
} }