diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-05 10:48:04 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-08 18:47:00 +0200 |
commit | ba404938a202b51bb82bff8692ed08e53b061ad4 (patch) | |
tree | 445c969ae57dc9656e791af23b0b9f6830c6d255 /Source/cmGetPropertyCommand.cxx | |
parent | f3922a9a5b463420db5f7fae08efdf1b4abdfe5e (diff) | |
download | cmake-ba404938a202b51bb82bff8692ed08e53b061ad4.tar.gz |
cmCacheManager: Port consumers to non-iterator API.
This simplifies reasoning about the follow-up commit which ports
away from cmCacheManager to a class with the same method names.
Diffstat (limited to 'Source/cmGetPropertyCommand.cxx')
-rw-r--r-- | Source/cmGetPropertyCommand.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmGetPropertyCommand.cxx b/Source/cmGetPropertyCommand.cxx index f0b268685b..0e6e0c20e6 100644 --- a/Source/cmGetPropertyCommand.cxx +++ b/Source/cmGetPropertyCommand.cxx @@ -391,11 +391,10 @@ bool cmGetPropertyCommand::HandleCacheMode() } const char* value = 0; - cmCacheManager::CacheIterator it = - this->Makefile->GetCacheManager()->GetCacheIterator(this->Name.c_str()); - if(!it.IsAtEnd()) + if(this->Makefile->GetCacheManager()->GetCacheEntryValue(this->Name)) { - value = it.GetProperty(this->PropertyName); + value = this->Makefile->GetCacheManager() + ->GetCacheEntryProperty(this->Name, this->PropertyName); } this->StoreResult(value); return true; |