Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6b8c46

Browse files
committed
Small refactoring.
1 parent ba88964 commit d6b8c46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/parser/dbcscanner.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ DbcScanner::~DbcScanner()
3636
int32_t DbcScanner::TrimDbcText(istream& readstrm)
3737
{
3838
msgs.clear();
39-
39+
40+
readstrm.clear();
41+
readstrm.seekg(0);
4042
// Search each message and signals in dbc source data,
4143
// and fill @msgs collection
4244
ParseMessageInfo(readstrm);

0 commit comments

Comments
 (0)