~indicator-applet-developers/hud/trunk.14.04

« back to all changes in this revision

Viewing changes to libqtgmenu/QtGMenuImporter.cpp

  • Committer: CI bot
  • Author(s): Pete Woods, Marcus Tomlinson
  • Date: 2014-06-04 14:04:03 UTC
  • mfrom: (390.1.44 trunk)
  • Revision ID: ps-jenkins@lists.canonical.com-20140604140403-a70c33snru5b6k4x
Harden HUD against misbehaving applications

Report the offending applications using Apport's recoverable problem tool.
Switch to using shared pointers where possible for managing memory. Fixes: 1298656, 1316473, 1322050, 1325538

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
{
44
44
}
45
45
 
46
 
GMenuModel* QtGMenuImporter::GetGMenuModel() const
 
46
QSharedPointer<GMenuModel> QtGMenuImporter::GetGMenuModel() const
47
47
{
48
48
  return d->GetGMenuModel();
49
49
}
50
50
 
51
 
GActionGroup* QtGMenuImporter::GetGActionGroup( int index ) const
 
51
QSharedPointer<GActionGroup> QtGMenuImporter::GetGActionGroup( int index ) const
52
52
{
53
53
  return d->GetGActionGroup( index );
54
54
}