mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 08:11:22 +00:00
Quit Confirmation: defined static variable inline
This commit is contained in:
parent
f91f02b4fd
commit
3bea67efc6
@ -24,9 +24,6 @@
|
||||
|
||||
#include <boost/range/adaptor/reversed.hpp>
|
||||
|
||||
std::vector<quit_confirmation*> quit_confirmation::blockers_ = std::vector<quit_confirmation*>();
|
||||
bool quit_confirmation::open_ = false;
|
||||
|
||||
bool quit_confirmation::quit()
|
||||
{
|
||||
if(!open_) {
|
||||
|
@ -53,8 +53,9 @@ private:
|
||||
// noncopyable
|
||||
quit_confirmation(const quit_confirmation&) = delete;
|
||||
const quit_confirmation& operator=(const quit_confirmation&) = delete;
|
||||
static std::vector<quit_confirmation*> blockers_;
|
||||
static bool open_;
|
||||
|
||||
static inline std::vector<quit_confirmation*> blockers_ {};
|
||||
static inline bool open_ = false;
|
||||
|
||||
std::function<bool()> prompt_;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user