Skip to content

Commit e1834d7

Browse files
committed
removed remaining stream usage from checking
1 parent bdef123 commit e1834d7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/tokenlist.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,10 @@ bool TokenList::createTokens(const uint8_t* data, size_t size)
328328

329329
//---------------------------------------------------------------------------
330330

331-
bool TokenList::createTokensInternal(std::istream &code, const std::string& file0)
331+
bool TokenList::createTokensInternal(const std::string& file0)
332332
{
333333
simplecpp::OutputList outputList;
334-
simplecpp::TokenList tokens(code, mFiles, file0, &outputList);
334+
simplecpp::TokenList tokens(file0, mFiles, &outputList);
335335

336336
createTokens(std::move(tokens));
337337

lib/tokenlist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class CPPCHECKLIB TokenList {
214214
}
215215

216216
private:
217-
bool createTokensInternal(std::istream &code, const std::string& file0);
217+
bool createTokensInternal(const std::string& file0);
218218
bool createTokensInternal(const uint8_t* data, std::size_t size, const std::string& file0);
219219

220220
/** Token list */

0 commit comments

Comments
 (0)