diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-02-16 02:38:13 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-02-16 02:38:13 -0800 |
commit | 4416753df0116452891f6c389712b60b4ea219b6 (patch) | |
tree | 96474e9dba0a9b59909e6323d51e3f8136d4f512 /screen.cpp | |
parent | dc54ec5b2b4391791b4b7f3471b6031c492d26f1 (diff) |
More cleanup based on static analysis
Diffstat (limited to 'screen.cpp')
-rw-r--r-- | screen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1049,7 +1049,7 @@ struct screen_layout_t /* Given a vector whose indexes are offsets and whose values are the widths of the string if truncated at that offset, return the offset that fits in the given width. Returns width_by_offset.size() - 1 if they all fit. The first value in width_by_offset is assumed to be 0. */ static size_t truncation_offset_for_width(const std::vector<size_t> &width_by_offset, size_t max_width) { - assert(width_by_offset.size() > 0 && width_by_offset.at(0) == 0); + assert(! width_by_offset.empty() && width_by_offset.at(0) == 0); size_t i; for (i=1; i < width_by_offset.size(); i++) { |