src/documentloader.cpp

changeset 1123
15e46ea3151f
parent 1086
621c2e5853bb
child 1145
02264bf0108d
equal deleted inserted replaced
1122:795d1c3554b9 1123:15e46ea3151f
114 line.chop (1); 114 line.chop (1);
115 115
116 LDObject* obj = _model->addFromString(line); 116 LDObject* obj = _model->addFromString(line);
117 117
118 // Check for parse errors and warn about them 118 // Check for parse errors and warn about them
119 if (obj->type() == OBJ_Error) 119 if (obj->type() == LDObjectType::Error)
120 { 120 {
121 print ("Couldn't parse line #%1: %2", progress() + 1, static_cast<LDError*> (obj)->reason()); 121 print ("Couldn't parse line #%1: %2", progress() + 1, static_cast<LDError*> (obj)->reason());
122 ++m_warningCount; 122 ++m_warningCount;
123 } 123 }
124 } 124 }

mercurial