Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

some minor fixes

  • Loading branch information...
commit 4308fbfa76c3d6e20d0e4f0bcd8ff4cd4c92d890 1 parent 58d2303
@DerekLiang authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 QTPImpl.cst
View
11 QTPImpl.cst
@@ -28,10 +28,13 @@ class <%= ClassName %><%= DataClassNameSuffix %> : public QSharedData
{
public:
<%= ClassName %><%= DataClassNameSuffix %>()
+ <% if (FieldName != null && FieldName.Length>0) {%>
+ :<%= FieldName %>(<%= FieldDefaultValue %>)
+ <% } %>
<% if (AddComment) { %>
- // initialize the default value for member variable
- //: id(-1)
- // ,name("")
+ // TODO: for each member add to the initialization list, as shown below in the comment
+ // : id(0)
+ // ,name("")
<% } %>
{ <% if (GenDebugOutput) {%> qDebug() << this << ":ctor: <%= ClassName %><%= DataClassNameSuffix %>" ; <% } %>}
@@ -40,7 +43,7 @@ class <%= ClassName %><%= DataClassNameSuffix %> : public QSharedData
<%= ClassName %><%= DataClassNameSuffix %>(const <%= ClassName %><%= DataClassNameSuffix %> &other)
: QSharedData(other)
<% if (FieldName != null && FieldName.Length>0) {%>
- ,<%= FieldName %>(<%= FieldDefaultValue %>)
+ ,<%= FieldName %>(other.<%= FieldName %>)
<% } %>
<% if (AddComment) { %>
// TODO: for each member add to the initialization list, as shown below in the comment
Please sign in to comment.
Something went wrong with that request. Please try again.