mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 01:17:40 +00:00
sdl/texture: remove null() in favour of an explicit bool conversion.
It was not used anywhere anyway.
This commit is contained in:
parent
ac45e4be16
commit
e2d059daae
@ -247,7 +247,7 @@ bool halo_impl::effect::render()
|
||||
|
||||
void halo_impl::effect::unrender()
|
||||
{
|
||||
if (tex_ == nullptr || buffer_ == nullptr) {
|
||||
if (tex_ || buffer_) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -80,9 +80,9 @@ public:
|
||||
return texture_.get();
|
||||
}
|
||||
|
||||
bool null() const
|
||||
explicit operator bool() const
|
||||
{
|
||||
return texture_ == nullptr;
|
||||
return texture_ != nullptr;
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user