X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FIndicesList.cpp;h=52fbbde51e6f0eda0b2a2239b39c11fa5ad09d46;hb=bbe09eada1de6edb7eb45213eaac4b4b09495f6e;hp=26881549a179edd908ebcece02b22347362fb084;hpb=6b2232a29c682d8e62d1d2b963bb1a70bee4330b;p=lyx.git diff --git a/src/IndicesList.cpp b/src/IndicesList.cpp index 26881549a1..52fbbde51e 100644 --- a/src/IndicesList.cpp +++ b/src/IndicesList.cpp @@ -58,7 +58,7 @@ private: docstring shortc_; }; -} +} // namespace ///////////////////////////////////////////////////////////////////// @@ -190,11 +190,11 @@ bool IndicesList::add(docstring const & n, docstring const & s) docstring sc = s.empty() ? trim(lowercase(name.substr(0, 3))) : s; if (findShortcut(sc) != 0) { - int i = 1; - docstring scn = sc + convert(i); + int k = 1; + docstring scn = sc + convert(k); while (findShortcut(scn) != 0) { - ++i; - scn = sc + convert(i); + ++k; + scn = sc + convert(k); } in.setShortcut(scn); } else