~alan-griffiths/qtmir/WindowControllerInterface-isVisible

« back to all changes in this revision

Viewing changes to src/modules/Unity/Application/mirsurface.cpp

  • Committer: Alan Griffiths
  • Date: 2017-01-05 10:15:55 UTC
  • mfrom: (569.15.5 qtmir)
  • Revision ID: alan@octopull.co.uk-20170105101555-vf55rsk9qf8j72g6
  Don't use the standard library when Qt has an alternative

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#include <QScreen>
45
45
 
46
46
// std
47
 
#include <cassert>
48
47
#include <limits>
49
48
 
50
49
using namespace qtmir;
440
439
    catch (const std::out_of_range &)
441
440
    {
442
441
        // MirAL can not know we hold ownership of the underlying surface and may have forgotten it
443
 
        assert(m_surface.unique());
 
442
        Q_ASSERT(m_surface.unique());
444
443
 
445
444
        if (m_visible) {
446
445
            m_visible = false;