diff options
Diffstat (limited to 'src/istring.h')
-rw-r--r-- | src/istring.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/istring.h b/src/istring.h index 3a66465d0..921e04487 100644 --- a/src/istring.h +++ b/src/istring.h @@ -68,6 +68,10 @@ struct IString { str = s.str; } + void clear() { + str = nullptr; + } + bool operator==(const IString& other) const { //assert((str == other.str) == !strcmp(str, other.str)); return str == other.str; // fast! |