~aacid/qtmir/fix_leaks_application_manager_test

« back to all changes in this revision

Viewing changes to src/platforms/mirserver/nativeinterface.cpp

  • Committer: CI Train Bot
  • Author(s): Alan Griffiths
  • Date: 2016-05-20 08:41:29 UTC
  • mfrom: (484.2.11 qtmir0)
  • Revision ID: ci-train-bot@canonical.com-20160520084129-co95olzpjkt1z4lh
Reduce coupling to MirServer - it has  been misused as a context object.
Approved by: Alan Griffiths, Unity8 CI Bot, Daniel d'Andrada

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 */
16
16
 
17
17
#include "nativeinterface.h"
18
 
 
19
18
#include "mirserver.h"
 
19
 
 
20
#include "qmirserver.h"
20
21
#include "screen.h"
21
22
 
22
23
NativeInterface::NativeInterface(QMirServer *server)
90
91
        return returnVal;
91
92
    }
92
93
}
 
94
 
 
95
QWeakPointer<MirServer> NativeInterface::mirServer()
 
96
{
 
97
    return m_qMirServer->mirServer();
 
98
}