Commit e0856dc7 authored by allens's avatar allens

Fixed additional warning

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@27820 18c085ea-50e0-402c-830e-de6fd14e8384
parent 1ebec219
......@@ -439,8 +439,8 @@ template<class kT, class vT, MRUCache_DeleteMethod dM, size_t nS>
const vT& MRUCacheBase<kT,vT,dM,nS>::mru(void) const
{
typename std::map<kT,size_t>::iterator i = age.begin();
kT mruKey = i->first;
int newest = i->second;
kT mruKey = i->first;
size_t newest = i->second;
for (i = age.begin(); i != age.end(); i++)
{
......@@ -497,8 +497,8 @@ template<class kT, class vT, MRUCache_DeleteMethod dM, size_t nS>
kT MRUCacheBase<kT,vT,dM,nS>::oldest(void)
{
typename std::map<kT,size_t>::iterator i = age.begin();
kT retval = i->first;
size_t oldestAge = i->second;
kT retval = i->first;
size_t oldestAge = i->second;
for (i = age.begin(); i != age.end(); i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment