Platform: check and return a reference from Screen::application().
Giving out a pointer implied excessive error checking in user code.
There's a new hasApplication() accessor that can be used to check for
application presence, moreover the ScreenedApplication is now
convertible to a pointer to provide backward compatiblity. This
conversion is marked as deprecated and will be removed in a future
release.
CORRADE_DEPRECATED("Platform::Screen::application() returns a reference now")BasicScreenedApplication<Application>*operator->(){returnthis;}
CORRADE_DEPRECATED("Platform::Screen::application() returns a reference now")constBasicScreenedApplication<Application>*operator->()const{returnthis;}
CORRADE_DEPRECATED("Platform::Screen::application() returns a reference now")BasicScreenedApplication<Application>&operator*(){return*this;}
CORRADE_DEPRECATED("Platform::Screen::application() returns a reference now")constBasicScreenedApplication<Application>&operator*()const{return*this;}
CORRADE_DEPRECATED("Platform::Screen::application() returns a reference now")operatorBasicScreenedApplication<Application>*(){returnthis;}
CORRADE_DEPRECATED("Platform::Screen::application() returns a reference now")operatorconstBasicScreenedApplication<Application>*()const{returnthis;}
template<classT,class=typenamestd::enable_if<std::is_base_of<BasicScreenedApplication<Application>,T>::value>::type>CORRADE_DEPRECATED("Platform::Screen::application() returns a reference now")operatorT*(){returnstatic_cast<T*>(this);}
template<classT,class=typenamestd::enable_if<std::is_base_of<BasicScreenedApplication<Application>,T>::value>::type>CORRADE_DEPRECATED("Platform::Screen::application() returns a reference now")operatorconstT*()const{returnstatic_cast<constT*>(this);}
CORRADE_DEPRECATED("Platform::Screen::application() returns a reference now, use hasApplication() instead")booloperator!()const{returnfalse;}
#endif
protected:
/* Nobody will need to have (and delete) ScreenedApplication*, thus