diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:24:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:44 +0100 |
commit | 35b3228609f3c4f3ae37695597f0d11127467bb8 (patch) | |
tree | 6e04831013f685ca5dc06a44c32d797130e42994 /include | |
parent | da95f17cb69fe9eb18be44aaac9f71a68445e91c (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I2a4f84e8c36197a9d39a5bd36cb1e2401a956d87
Diffstat (limited to 'include')
-rw-r--r-- | include/store/store.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/store/store.hxx b/include/store/store.hxx index 2de8b5b0b98b..790fd4b483d0 100644 --- a/include/store/store.hxx +++ b/include/store/store.hxx @@ -40,7 +40,7 @@ public: /** Construction. */ inline OStoreStream() - : m_hImpl (0) + : m_hImpl (nullptr) {} /** Destruction. @@ -100,7 +100,7 @@ public: if (m_hImpl) { (void) store_releaseHandle (m_hImpl); - m_hImpl = 0; + m_hImpl = nullptr; } return store_openStream (hFile, rPath.pData, rName.pData, eMode, &m_hImpl); } @@ -152,7 +152,7 @@ public: /** Construction. */ inline OStoreDirectory() - : m_hImpl (0) + : m_hImpl (nullptr) {} /** Destruction. @@ -212,7 +212,7 @@ public: if (m_hImpl) { (void) store_releaseHandle (m_hImpl); - m_hImpl = 0; + m_hImpl = nullptr; } return store_openDirectory (hFile, rPath.pData, rName.pData, eMode, &m_hImpl); } @@ -262,7 +262,7 @@ public: /** Construction. */ inline OStoreFile() - : m_hImpl (0) + : m_hImpl (nullptr) {} /** Destruction. @@ -315,7 +315,7 @@ public: */ inline bool isValid() const { - return (m_hImpl != 0); + return (m_hImpl != nullptr); } /** Open the file. @@ -329,7 +329,7 @@ public: if (m_hImpl) { (void) store_releaseHandle (m_hImpl); - m_hImpl = 0; + m_hImpl = nullptr; } return store_openFile (rFilename.pData, eAccessMode, nPageSize, &m_hImpl); } @@ -343,7 +343,7 @@ public: if (m_hImpl) { (void) store_releaseHandle (m_hImpl); - m_hImpl = 0; + m_hImpl = nullptr; } return store_createMemoryFile (nPageSize, &m_hImpl); } @@ -356,7 +356,7 @@ public: if (m_hImpl) { (void) store_closeFile (m_hImpl); - m_hImpl = 0; + m_hImpl = nullptr; } } |