~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/cache.cc

  • Committer: Olaf van der Spek
  • Date: 2011-02-26 16:03:36 UTC
  • mto: This revision was merged to the branch mainline in revision 2207.
  • Revision ID: olafvdspek@gmail.com-20110226160336-0zcbgna8x05ogp9h
Use ptr instead of i

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
table::shared_ptr Cache::find(const identifier::Table &identifier)
30
30
{
31
31
  boost_unique_lock_t scoped_lock(_access);
32
 
  if (Map::mapped_type* i= find_ptr(cache, identifier.getKey()))
33
 
    return *i;
 
32
  if (Map::mapped_type* ptr= find_ptr(cache, identifier.getKey()))
 
33
    return *ptr;
34
34
  return table::shared_ptr();
35
35
}
36
36