Use FMT_NULL instead of 0 is a few more places.
Found with GCC and -Wzero-as-null-pointer-constant
This commit is contained in:
committed by
Victor Zverovich
parent
e92ba1071d
commit
55f5c9f21b
+1
-1
@@ -134,7 +134,7 @@ class BufferedFile {
|
||||
|
||||
public:
|
||||
// Constructs a BufferedFile object which doesn't represent any file.
|
||||
BufferedFile() FMT_NOEXCEPT : file_(0) {}
|
||||
BufferedFile() FMT_NOEXCEPT : file_(FMT_NULL) {}
|
||||
|
||||
// Destroys the object closing the file it represents if any.
|
||||
FMT_API ~BufferedFile() FMT_DTOR_NOEXCEPT;
|
||||
|
||||
Reference in New Issue
Block a user