From 4266264449b658cbf5b6c618ede5ee5eef1bf286 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 27 Oct 2019 21:31:31 -0400 Subject: [PATCH] Switches to the more idiomatic .empty(). --- Outputs/OpenGL/ScanTarget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Outputs/OpenGL/ScanTarget.cpp b/Outputs/OpenGL/ScanTarget.cpp index 85fa3fe0f..b4b1a4fe4 100644 --- a/Outputs/OpenGL/ScanTarget.cpp +++ b/Outputs/OpenGL/ScanTarget.cpp @@ -177,7 +177,7 @@ uint8_t *ScanTarget::begin_data(size_t required_length, size_t required_alignmen assert(required_alignment); if(allocation_has_failed_) return nullptr; - if(!write_area_texture_.size()) { + if(write_area_texture_.empty()) { allocation_has_failed_ = true; return nullptr; }