Skip to content

Commit c9fd78c

Browse files
woodwanmartinweismann
authored andcommitted
Fix initialisation order warning
1 parent 8186b1e commit c9fd78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/buildbindingccpp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ func buildCppHeader(component ComponentDefinition, w LanguageWriter, NameSpace s
11911191
w.Writeln(" * Exception Constructor.")
11921192
w.Writeln(" */")
11931193
w.Writeln(" E%sException(%sResult errorCode, const std::string & sErrorMessage)", NameSpace, NameSpace)
1194-
w.Writeln(" : m_originalErrorMessage(sErrorMessage), m_errorCode(errorCode)")
1194+
w.Writeln(" : m_errorCode(errorCode), m_originalErrorMessage(sErrorMessage)")
11951195
w.Writeln(" {")
11961196
w.Writeln(" m_errorMessage = buildErrorMessage();")
11971197
w.Writeln(" }")

0 commit comments

Comments
 (0)