Eliminate -Wzero-as-null-pointer-constant warnings in the headers
This commit is contained in:
@@ -136,7 +136,7 @@ public:
|
||||
size_t *pnValues, // number of values
|
||||
size_t *pnMaxValueLen) const;
|
||||
// return true if the key is opened
|
||||
bool IsOpened() const { return m_hKey != 0; }
|
||||
bool IsOpened() const { return m_hKey != NULL; }
|
||||
// for "if ( !key ) wxLogError(...)" kind of expressions
|
||||
operator bool() const { return m_dwLastError == 0; }
|
||||
|
||||
|
Reference in New Issue
Block a user