]> git.lyx.org Git - features.git/commitdiff
FindAdv: Casting to satisfy Windows compiler
authorKornel Benko <kornel@lyx.org>
Mon, 18 Mar 2019 08:38:34 +0000 (09:38 +0100)
committerKornel Benko <kornel@lyx.org>
Mon, 18 Mar 2019 08:38:34 +0000 (09:38 +0100)
Thanks to Jean-Marc Lasgouttes

src/lyxfind.cpp

index 4ba16b95d95fdc0f06589e81db8d7c63148d1cf5..277bd0acb15d2051e980cefcf22e8e17df8dadf7 100644 (file)
@@ -1347,7 +1347,7 @@ void Intervall::removeAccents()
     string key = sub.str(1);
     if (accents.find(key) != accents.end()) {
       string val = accents[key];
-      size_t pos = sub.position(0);
+      size_t pos = sub.position(size_t(0));
       for (size_t i = 0; i < val.size(); i++) {
         par[pos+i] = val[i];
       }