Changeset 914
- Timestamp:
- 04/20/20 23:29:51 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/param.cpp
r883 r914 1295 1295 if (field_end == t) // skip empty value 1296 1296 { 1297 t++; i ++;1297 t++; if (i>=0) i++; 1298 1298 continue; 1299 1299 } … … 1310 1310 } 1311 1311 #ifdef WARN_MISSING_NAME 1312 else 1312 else // no parameter name 1313 { 1313 1314 #ifdef SAVE_SELECTED_NAMES 1314 if ((i >= getPropCount()) || !(flags(i)&PARAM_CANOMITNAME)) 1315 if ((i < 0) // field after unknown field 1316 || (i >= getPropCount()) // field after last field 1317 || !(flags(i)&PARAM_CANOMITNAME)) // valid field but it can't be skipped 1315 1318 #endif 1316 1319 { 1317 if (i d(i))1318 logPrintf("Param", "loadSingleLine", LOG_WARN, "Missing property name in '%s' (assuming '%s')", getName(), id(i));1319 else 1320 if (i < getPropCount()) 1321 logPrintf("Param", "loadSingleLine", LOG_WARN, "Missing property name in '%s'", getName()); 1322 else // 'i' can go past PropCount because of moving to subsequent properties by i++, id(i) is then NULL 1320 1323 logPrintf("Param", "loadSingleLine", LOG_WARN, "Value after the last property of '%s'", getName()); 1321 1324 } 1325 } 1326 //else skipping a skippable field 1322 1327 #endif 1323 if ((i >= 0) && id(i)) 1328 if ((i >= 0) && id(i)) // shared by name and skippped name cases 1324 1329 { 1325 1330 value = t;
Note: See TracChangeset
for help on using the changeset viewer.