mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
* some warnings less
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23328 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eb84ab1af9
commit
34639d7491
@ -1323,7 +1323,7 @@ public:
|
|||||||
|
|
||||||
leaf_node *leaf = static_cast<leaf_node*>(n);
|
leaf_node *leaf = static_cast<leaf_node*>(n);
|
||||||
|
|
||||||
int slot = find_lower(leaf, key);
|
unsigned short slot = find_lower(leaf, key);
|
||||||
return (slot < leaf->slotuse && key_equal(key, leaf->slotkey[slot]))
|
return (slot < leaf->slotuse && key_equal(key, leaf->slotkey[slot]))
|
||||||
? iterator(leaf, slot) : end();
|
? iterator(leaf, slot) : end();
|
||||||
}
|
}
|
||||||
@ -1376,7 +1376,7 @@ public:
|
|||||||
|
|
||||||
leaf_node *leaf = static_cast<leaf_node*>(n);
|
leaf_node *leaf = static_cast<leaf_node*>(n);
|
||||||
|
|
||||||
int slot = find_summed_weight_lower(leaf, weight);
|
unsigned short slot = find_summed_weight_lower(leaf, weight);
|
||||||
for (unsigned short s = 0; s < slot; ++s)
|
for (unsigned short s = 0; s < slot; ++s)
|
||||||
weight -= leaf->weights[s];
|
weight -= leaf->weights[s];
|
||||||
|
|
||||||
@ -2049,7 +2049,7 @@ private:
|
|||||||
{
|
{
|
||||||
leaf_node *leaf = static_cast<leaf_node*>(n);
|
leaf_node *leaf = static_cast<leaf_node*>(n);
|
||||||
|
|
||||||
int slot = find_lower(leaf, key);
|
unsigned short slot = find_lower(leaf, key);
|
||||||
|
|
||||||
if (!allow_duplicates && slot < leaf->slotuse && key_equal(key, leaf->slotkey[slot])) {
|
if (!allow_duplicates && slot < leaf->slotuse && key_equal(key, leaf->slotkey[slot])) {
|
||||||
return std::pair<iterator, bool>(iterator(leaf, slot), false);
|
return std::pair<iterator, bool>(iterator(leaf, slot), false);
|
||||||
|
Loading…
Reference in New Issue
Block a user