~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/replication_dictionary/module.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-23 09:26:52 UTC
  • mto: (2247.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2248.
  • Revision ID: olafvdspek@gmail.com-20110323092652-d3e8lutxy8vu2frb
Remove std::nothrow from new()

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
static int init(module::Context &context)
41
41
{
42
 
  streams_tool= new (nothrow) ReplicationStreamsTool;
43
 
 
44
 
  if (streams_tool != NULL)
45
 
  {
46
 
    context.add(streams_tool);
47
 
    return 0;
48
 
  }
49
 
  else
50
 
  {
51
 
    // error?
52
 
    return 1;
53
 
  }
 
42
  streams_tool= new ReplicationStreamsTool;
 
43
  context.add(streams_tool);
 
44
  return 0;
54
45
}
55
46
 
56
47
DRIZZLE_PLUGIN(init, NULL, NULL);