~alexlauni/unity/introspection-search-cleanup

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/AggregateMonitor.cpp

  • Committer: Alex Launi
  • Date: 2011-11-08 18:21:44 UTC
  • Revision ID: alex.launi@canonical.com-20111108182144-s92diskezfihk2g4
Convert debugging code from gchar* to std::string

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
{
33
33
}
34
34
 
35
 
gchar* AggregateMonitor::GetName()
 
35
std::string AggregateMonitor::GetName() const
36
36
{
37
 
  return (gchar*) "AggregateMonitor";
 
37
  return "AggregateMonitor";
38
38
}
39
39
 
40
40
void AggregateMonitor::StartMonitor()
53
53
       iter != end; ++iter)
54
54
  {
55
55
    Monitor* monitor = *iter;
56
 
    g_variant_builder_add(builder, "{sv}", monitor->GetName(), monitor->Stop());
 
56
    g_variant_builder_add(builder, "{sv}", monitor->GetName().c_str(), monitor->Stop());
57
57
  }
58
58
}
59
59