From 5962db438939ef2754509b8578af1f845ec07dc8 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Tue, 22 Aug 2017 23:42:36 +0200 Subject: Use C++11 nullptr --- Source/cmCacheManager.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Source/cmCacheManager.h') diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h index c464311c65..d215e10380 100644 --- a/Source/cmCacheManager.h +++ b/Source/cmCacheManager.h @@ -117,7 +117,7 @@ public: void PrintCache(std::ostream&) const; ///! Get the iterator for an entry with a given key. - cmCacheManager::CacheIterator GetCacheIterator(const char* key = CM_NULLPTR); + cmCacheManager::CacheIterator GetCacheIterator(const char* key = nullptr); ///! Remove an entry from the cache void RemoveCacheEntry(const std::string& key); @@ -132,7 +132,7 @@ public: { cmCacheManager::CacheIterator it = this->GetCacheIterator(key.c_str()); if (it.IsAtEnd()) { - return CM_NULLPTR; + return nullptr; } return it.GetValue(); } @@ -175,8 +175,7 @@ public: void RemoveCacheEntryProperty(std::string const& key, std::string const& propName) { - this->GetCacheIterator(key.c_str()) - .SetProperty(propName, (void*)CM_NULLPTR); + this->GetCacheIterator(key.c_str()).SetProperty(propName, (void*)nullptr); } void AppendCacheEntryProperty(std::string const& key, -- cgit v1.2.1