From 6dc450bc462bd69bcb2275db92fd7b4c9a3bf1bd Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Fri, 19 Oct 2018 11:10:54 +0200 Subject: [PATCH] Commented out an unused function to please a picky compiler --- src/lyxfind.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 4b79f57862..23c74e09b7 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -1023,7 +1023,7 @@ class Intervall { int closes[MAXOPENED]; int actualdeptindex; int ignoreIntervalls[2*MAXOPENED][2]; - int previousNotIgnored(int); + // int previousNotIgnored(int); int nextNotIgnored(int); void handleOpenP(int i); void handleCloseP(int i, bool closingAllowed); @@ -1162,6 +1162,7 @@ void Intervall::resetOpenedP(int openPos) closes[1] = -1; } +#if 0 int Intervall::previousNotIgnored(int start) { int idx = 0; /* int intervalls */ @@ -1173,6 +1174,7 @@ int Intervall::previousNotIgnored(int start) } return start; } +#endif int Intervall::nextNotIgnored(int start) { @@ -1338,6 +1340,9 @@ void LatexInfo::makeKey(string key, KeyInfo keyI) void LatexInfo::buildKeys() { + static bool keysBuilt = false; + + if (keysBuilt) return; KeyInfo foreign = KeyInfo(KeyInfo::isMain, 2); KeyInfo standard = KeyInfo(KeyInfo::isStandard,1); KeyInfo regex = KeyInfo(KeyInfo::isRegex, 1); @@ -1373,6 +1378,7 @@ void LatexInfo::buildKeys() makeKey("footnote", leadremove); makeKey("code", leadremove); makeKey("lyx", ignoreMe); + keysBuilt = true; } /* -- 2.39.5