Permalink
Browse files

some minor fixes

  • Loading branch information...
1 parent 58d2303 commit 4308fbfa76c3d6e20d0e4f0bcd8ff4cd4c92d890 @DerekLiang committed Dec 30, 2011
Showing with 7 additions and 4 deletions.
  1. +7 −4 QTPImpl.cst
View
@@ -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

0 comments on commit 4308fbf

Please sign in to comment.