Update STEPFileReader.cpp (#5973)
Clean code Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
This commit is contained in:
@@ -499,21 +499,13 @@ STEP::LazyObject::LazyObject(DB& db, uint64_t id,uint64_t /*line*/, const char*
|
||||
int64_t skip_depth( 0 );
|
||||
while ( *a ) {
|
||||
handleSkippedDepthFromToken(a, skip_depth);
|
||||
/*if (*a == '(') {
|
||||
++skip_depth;
|
||||
} else if (*a == ')') {
|
||||
--skip_depth;
|
||||
}*/
|
||||
|
||||
if (skip_depth >= 1 && *a=='#') {
|
||||
if (*(a + 1) != '#') {
|
||||
/*const char *tmp;
|
||||
const int64_t num = static_cast<int64_t>(strtoul10_64(a + 1, &tmp));
|
||||
db.MarkRef(num, id);*/
|
||||
db.MarkRef(getIdFromToken(a), id);
|
||||
} else {
|
||||
++a;
|
||||
}
|
||||
if (skip_depth >= 1 && *a=='#') {
|
||||
if (*(a + 1) != '#') {
|
||||
db.MarkRef(getIdFromToken(a), id);
|
||||
} else {
|
||||
++a;
|
||||
}
|
||||
}
|
||||
++a;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user