Changed Window::requestFocus() return type from bool to void

Reasons:
* Consistent with other sf::Window methods
* User can test whether focus succeeded by subsequent hasFocus() call
* Implementation would have to call hasFocus() anyway on some systems

Also: minor code style change in Window::hasFocus()
This commit is contained in:
Jan Haller 2014-05-29 11:39:04 +02:00
parent 6a24eb5eec
commit 4155b2e449
12 changed files with 16 additions and 35 deletions

View file

@ -423,11 +423,10 @@ public:
/// is free to deny the request.
/// This is not to be confused with setActive().
///
/// \return True if operation was successful, false otherwise
/// \see hasFocus
///
////////////////////////////////////////////////////////////
bool requestFocus();
void requestFocus();
////////////////////////////////////////////////////////////
/// \brief Check whether the window has the input focus