~afrantzis/unity8/power-state-change-reason-snap-decision

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/fake_previewstack.cpp

  • Committer: CI Train Bot
  • Author(s): Albert Astals Cid
  • Date: 2015-09-22 12:57:08 UTC
  • mfrom: (1955.2.1 keepPreviewStackAround)
  • Revision ID: ci-train-bot@canonical.com-20150922125708-wh6k112ylydltgcg
Keep the PreviewStack around to avoid mem leaks Fixes: #1495467
Approved by: Michał Sawicz

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "fake_previewmodel.h"
22
22
#include "fake_scope.h"
23
23
 
24
 
PreviewStack::PreviewStack(QObject* parent, Scope *scope)
25
 
 : unity::shell::scopes::PreviewStackInterface(parent)
 
24
PreviewStack::PreviewStack(Scope *scope)
 
25
 : unity::shell::scopes::PreviewStackInterface(nullptr)
26
26
{
27
27
    m_previews << new PreviewModel(this, scope);
28
28
}