]> git.lyx.org Git - lyx.git/blobdiff - src/support/weighted_btree.h
Expose python 3 support to some testing
[lyx.git] / src / support / weighted_btree.h
index b64f95366f6e5cb2f398560b0ffe7156eaf0237c..0b833740d0a31aaa3a3bc6c46b249c88aa8004d5 100644 (file)
@@ -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);
@@ -2023,7 +2023,7 @@ private:
 
                         slot -= inner->slotuse+1;
                         inner = static_cast<inner_node*>(*splitnode);
-                        BTREE_PRINT("btree::insert_descend switching to splitted node " << inner << " slot " << slot <<std::endl);
+                        BTREE_PRINT("btree::insert_descend switching to split node " << inner << " slot " << slot <<std::endl);
                     }
                 }