Skip to content

Commit febbb63

Browse files
committed
allow const or non-const for ed iter
1 parent 7976c8b commit febbb63

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/clstepcore/ExpDict.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,9 @@ IntAggregate * create_IntAggregate() {
536536
return new IntAggregate;
537537
}
538538

539-
const EntityDescriptor * EntityDescItr::NextEntityDesc() {
539+
EntityDescriptor * EntityDescItr::NextEntityDesc_nc() {
540540
if( cur ) {
541-
const EntityDescriptor * ed = cur->EntityDesc();
541+
EntityDescriptor * ed = cur->EntityDesc();
542542
cur = ( EntityDescLinkNode * )( cur->NextNode() );
543543
return ed;
544544
}

src/clstepcore/ExpDict.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,11 @@ class SC_CORE_EXPORT EntityDescItr {
172172
cur = ( EntityDescLinkNode * )( edl.GetHead() );
173173
}
174174

175-
const EntityDescriptor * NextEntityDesc();
175+
inline const EntityDescriptor * NextEntityDesc() {
176+
return NextEntityDesc_nc();
177+
}
178+
EntityDescriptor * NextEntityDesc_nc();
179+
176180
};
177181

178182

0 commit comments

Comments
 (0)