diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
commit | 9f4dbff6669c8037f3b036bcf580d14f1a4f12a5 (patch) | |
tree | 47df2c12b57214af6c31e47404b005675b8b7ffc /lib/Analysis/FormatStringParsing.h | |
parent | f73d5f23a889b93d89ddef61ac0995df40286bb8 (diff) |
Notes
Diffstat (limited to 'lib/Analysis/FormatStringParsing.h')
-rw-r--r-- | lib/Analysis/FormatStringParsing.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/FormatStringParsing.h b/lib/Analysis/FormatStringParsing.h index 6b251230136a..fba318042cb0 100644 --- a/lib/Analysis/FormatStringParsing.h +++ b/lib/Analysis/FormatStringParsing.h @@ -53,14 +53,14 @@ template <typename T> class SpecifierResult { bool Stop; public: SpecifierResult(bool stop = false) - : Start(0), Stop(stop) {} + : Start(nullptr), Stop(stop) {} SpecifierResult(const char *start, const T &fs) : FS(fs), Start(start), Stop(false) {} const char *getStart() const { return Start; } bool shouldStop() const { return Stop; } - bool hasValue() const { return Start != 0; } + bool hasValue() const { return Start != nullptr; } const T &getValue() const { assert(hasValue()); return FS; |