~mir-team/qtmir/trunk

« back to all changes in this revision

Viewing changes to src/platforms/mirserver/mirserverintegration.h

  • Committer: Bileto Bot
  • Author(s): Albert Astals Cid, Gerry Boland
  • Date: 2017-03-20 21:15:13 UTC
  • mfrom: (606.4.12 make_sure_surface_not_null)
  • Revision ID: ci-train-bot@canonical.com-20170320211513-z7v3z0ldes3gtcc0
Check for find() result not being null before using it

We do it in onWindowReady, onWindowMoved, onWindowFocusChanged, etc so no reason to not do it in onWindowRemoved

Approved by: Lukáš Tinkl, Unity8 CI Bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2013-2015 Canonical, Ltd.
 
2
 * Copyright (C) 2013-2017 Canonical, Ltd.
3
3
 *
4
4
 * This program is free software: you can redistribute it and/or modify it under
5
5
 * the terms of the GNU Lesser General Public License version 3, as published by
24
24
class NativeInterface;
25
25
class QMirServer;
26
26
 
27
 
namespace qtmir {
28
 
    class Clipboard;
29
 
}
30
 
 
31
27
class MirServerIntegration : public QPlatformIntegration
32
28
{
33
29
public:
67
63
 
68
64
    NativeInterface *m_nativeInterface;
69
65
    QPlatformInputContext* m_inputContext;
70
 
    QScopedPointer<qtmir::Clipboard> m_clipboard;
71
66
};
72
67
 
73
68
#endif // MIRSERVERINTEGRATION_H