~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/haildb/haildb_engine.cc

mergeĀ lp:~stewart/drizzle/cppcheck-by-reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
 
225
225
  typedef std::map<std::string, HailDBTableShare*> HailDBMap;
226
226
  HailDBMap haildb_open_tables;
227
 
  HailDBTableShare *findOpenTable(const std::string table_name);
 
227
  HailDBTableShare *findOpenTable(const std::string &table_name);
228
228
  void addOpenTable(const std::string &table_name, HailDBTableShare *);
229
229
  void deleteOpenTable(const std::string &table_name);
230
230
 
462
462
  return 0;
463
463
}
464
464
 
465
 
HailDBTableShare *HailDBEngine::findOpenTable(const string table_name)
 
465
HailDBTableShare *HailDBEngine::findOpenTable(const string &table_name)
466
466
{
467
467
  HailDBMap::iterator find_iter=
468
468
    haildb_open_tables.find(table_name);