Skip to content

Commit

Permalink
suppressed uninitDerivedMemberVar Cppcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Sep 11, 2023
1 parent 8a39213 commit c87a820
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions simplecpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ class simplecpp::TokenList::Stream {

class StdIStream : public simplecpp::TokenList::Stream {
public:
// cppcheck-suppress uninitDerivedMemberVar - we call Stream::init() to initialize the private members
EXPLICIT StdIStream(std::istream &istr)
: istr(istr)
{
Expand All @@ -391,6 +392,7 @@ class StdIStream : public simplecpp::TokenList::Stream {

class FileStream : public simplecpp::TokenList::Stream {
public:
// cppcheck-suppress uninitDerivedMemberVar - we call Stream::init() to initialize the private members
EXPLICIT FileStream(const std::string &filename)
: file(fopen(filename.c_str(), "rb"))
, lastCh(0)
Expand Down

0 comments on commit c87a820

Please sign in to comment.