Skip to content

Commit 39973d1

Browse files
committed
Initialize members
1 parent fb6ba0f commit 39973d1

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/pathmatch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,9 @@ class PathMatch::PathIterator {
274274
/* Position struct */
275275
struct Pos {
276276
/* String pointer */
277-
const char *p;
277+
const char *p{};
278278
/* Raw characters left */
279-
std::size_t l;
279+
std::size_t l{};
280280
/* Buffered character */
281281
int c {EOF};
282282
};

lib/tokenize.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -694,12 +694,12 @@ class CPPCHECKLIB Tokenizer {
694694
struct TypedefInfo {
695695
std::string name;
696696
std::string filename;
697-
int lineNumber;
698-
int column;
697+
int lineNumber{};
698+
int column{};
699699
int tagLine{-1};
700700
int tagColumn{-1};
701-
bool used;
702-
bool isFunctionPointer;
701+
bool used{};
702+
bool isFunctionPointer{};
703703
std::vector<TypedefToken> typedefInfoTokens;
704704
};
705705
std::vector<TypedefInfo> mTypedefInfo;

0 commit comments

Comments
 (0)