X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FIndicesList.cpp;h=52fbbde51e6f0eda0b2a2239b39c11fa5ad09d46;hb=4300feb8595c8542050adedf664cd4bfda7ede12;hp=26881549a179edd908ebcece02b22347362fb084;hpb=aafd52f44167d5510be1ddcb974daa9dae486933;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