~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/replication_services.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 11:15:32 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110705111532-zod5hduzwcqe01ea
Use boost::to_lower

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
   */
79
79
static void normalizeReplicatorName(string &name)
80
80
{
81
 
  transform(name.begin(), name.end(), name.begin(), ::tolower);
 
81
  boost::to_lower(name);
82
82
  if (name.find("replicator") == string::npos)
83
 
    name.append("replicator", 10);
 
83
    name.append("replicator");
84
84
  {
85
85
    size_t found_underscore= name.find('_');
86
86
    while (found_underscore != string::npos)