commit ee5a70cdd77c84f9fbeab0a13f898a675b98a15f
Author: Juergen Spitzmueller <[email protected]>
Date: Fri Feb 20 15:54:34 2026 +0100
Rename shadowing idx_type
---
src/mathed/InsetMathStackrel.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/mathed/InsetMathStackrel.cpp b/src/mathed/InsetMathStackrel.cpp
index 238c9faa5d..b6540d1b96 100644
--- a/src/mathed/InsetMathStackrel.cpp
+++ b/src/mathed/InsetMathStackrel.cpp
@@ -39,17 +39,17 @@ Inset * InsetMathStackrel::clone() const
bool InsetMathStackrel::idxUpDown(Cursor & cur, bool up) const
{
- idx_type const npos = 1234; // impossible number
- idx_type target = npos;
+ idx_type const nopos = 1234; // impossible number
+ idx_type target = nopos;
if (up) {
- idx_type const targets[] = { 1, npos, 0 };
+ idx_type const targets[] = { 1, nopos, 0 };
target = targets[cur.idx()];
} else {
- idx_type const targets[] = { 2, 0, npos };
+ idx_type const targets[] = { 2, 0, nopos };
target = targets[cur.idx()];
}
- if (target == npos || target == nargs())
+ if (target == nopos || target == nargs())
return false;
cur.idx() = target;
cur.pos() = cell(target).x2pos(&cur.bv(), cur.x_target());
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs