~mrazik/unity/remove-duplicate-testcase

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Thomi Richards
  • Date: 2012-03-18 23:29:42 UTC
  • mfrom: (2119.3.1 fix-cstr-calls)
  • Revision ID: tarmac-20120318232942-vhzd0nuzahrwrtuo
Remove calls to c_str() where they're not needed.. Fixes: . Approved by Tim Penhey.

Show diffs side-by-side

added added

removed removed

Lines of Context:
684
684
 
685
685
  int index = 0;
686
686
  while (nicks[index]) {
687
 
  
688
 
    // Build a dbusmenu item for each nick that is the desktop 
 
687
 
 
688
    // Build a dbusmenu item for each nick that is the desktop
689
689
    // file that is built from it's name and includes a callback
690
690
    // to the desktop shortcuts object to execute the nick
691
691
    glib::String name(indicator_desktop_shortcuts_nick_get_name(_desktop_shortcuts,
781
781
  bamf_view_set_sticky(BAMF_VIEW(_bamf_app.RawPtr()), true);
782
782
 
783
783
  if (save && !desktop_file.empty())
784
 
    FavoriteStore::GetDefault().AddFavorite(desktop_file.c_str(), -1);
 
784
    FavoriteStore::GetDefault().AddFavorite(desktop_file, -1);
785
785
}
786
786
 
787
787
void BamfLauncherIcon::UnStick()
797
797
    Remove();
798
798
 
799
799
  if (!desktop_file.empty())
800
 
    FavoriteStore::GetDefault().RemoveFavorite(desktop_file.c_str());
 
800
    FavoriteStore::GetDefault().RemoveFavorite(desktop_file);
801
801
}
802
802
 
803
803
void BamfLauncherIcon::ToggleSticky()