Skip to content

Commit 20d9fe7

Browse files
committed
Do not use C++11 features
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23218 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 353d55a commit 20d9fe7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

OMEdit/OMEditGUI/Util/OMDumpXML.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ QString OMInfo::toString() {
191191

192192
OMVariable::OMVariable()
193193
{
194-
194+
for (int i=0; i<equationTypeSize; i++) {
195+
definedIn[i] = 0;
196+
}
195197
}
196198

197199
OMVariable::OMVariable(const OMVariable &var)

OMEdit/OMEditGUI/Util/OMDumpXML.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ struct OMVariable {
173173
QString comment;
174174
OMInfo info;
175175
QStringList types;
176-
int definedIn[equationTypeSize] = {0};
176+
int definedIn[equationTypeSize];
177177
QList<int> usedIn[equationTypeSize];
178178
QList<OMOperation*> ops;
179179
OMVariable();

0 commit comments

Comments
 (0)