1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Switches to the more idiomatic .empty().

This commit is contained in:
Thomas Harte 2019-10-27 21:31:31 -04:00
parent 1aba1db62c
commit 4266264449

View File

@ -177,7 +177,7 @@ uint8_t *ScanTarget::begin_data(size_t required_length, size_t required_alignmen
assert(required_alignment); assert(required_alignment);
if(allocation_has_failed_) return nullptr; if(allocation_has_failed_) return nullptr;
if(!write_area_texture_.size()) { if(write_area_texture_.empty()) {
allocation_has_failed_ = true; allocation_has_failed_ = true;
return nullptr; return nullptr;
} }