X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fweighted_btree.h;h=0b833740d0a31aaa3a3bc6c46b249c88aa8004d5;hb=10b4a4718539ea45d908dc3d051ae2284f9678e6;hp=10f4793ff34c31b3421c89ec4271ac5dade1f957;hpb=992eae252441d6ad15d5a18283e934a6371a016b;p=lyx.git diff --git a/src/support/weighted_btree.h b/src/support/weighted_btree.h index 10f4793ff3..0b833740d0 100644 --- a/src/support/weighted_btree.h +++ b/src/support/weighted_btree.h @@ -1769,7 +1769,7 @@ public: clear(); key_less = other.key_comp(); - if (other.size() != 0) + if (!other.empty()) { stats.leaves = stats.innernodes = 0; root = copy_recursive(other.root); @@ -1788,7 +1788,7 @@ public: stats( other.stats ), key_less( other.key_comp() ) { - if (size() > 0) + if (!empty()) { stats.leaves = stats.innernodes = 0; root = copy_recursive(other.root);