~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/option_context.cc

  • Committer: Monty Taylor
  • Date: 2010-10-12 20:20:44 UTC
  • mto: (1842.1.3 build) (1843.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1843.
  • Revision ID: mordred@inaugust.com-20101012202044-yfrmnmkznvkqfxe4
Added support for valgrind suppressions.
Run strip-valgrind as part of make valgrind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
/*
80
80
 * Private methods.
81
81
 */
82
 
std::string option_context::prepend_name(std::string in_module_name,
 
82
std::string option_context::prepend_name(std::string module_name,
83
83
                                         const char *name_in)
84
84
{
85
 
  in_module_name.push_back('.');
86
 
  std::transform(in_module_name.begin(), in_module_name.end(),
87
 
                 in_module_name.begin(), SwapUnderscores());
88
 
  std::transform(in_module_name.begin(), in_module_name.end(),
89
 
                 in_module_name.begin(), ::tolower);
90
 
  in_module_name.append(name_in);
91
 
  return in_module_name;
 
85
  module_name.push_back('.');
 
86
  std::transform(module_name.begin(), module_name.end(),
 
87
                 module_name.begin(), SwapUnderscores());
 
88
  std::transform(module_name.begin(), module_name.end(),
 
89
                 module_name.begin(), ::tolower);
 
90
  module_name.append(name_in);
 
91
  return module_name;
92
92
}
93
93
 
94
94