~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/catalog.cc

  • Committer: Mark Atwood
  • Date: 2011-10-05 15:24:11 UTC
  • mfrom: (2420.2.4 rf)
  • Revision ID: me@mark.atwood.name-20111005152411-xksdn4vulhmtz2x4
mergeĀ lp:~olafvdspek/drizzle/refactor1a

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
namespace drizzled {
42
42
namespace identifier {
43
43
 
44
 
Catalog::Catalog(const std::string &name_arg) :
45
 
  _name(name_arg)
 
44
Catalog::Catalog(str_ref name_arg) :
 
45
  _name(name_arg.data(), name_arg.size())
46
46
47
47
  init();
48
48
}
49
49
 
50
 
Catalog::Catalog(const drizzled::lex_string_t &name_arg) :
51
 
  _name(name_arg.str, name_arg.length)
52
 
{
53
 
  init();
54
 
}
55
 
 
56
50
void Catalog::init()
57
51
58
52
  assert(not _name.empty());