Am Freitag, 13. September 2019, 16:15:52 CEST schrieb Jean-Marc Lasgouttes: > commit 714113655ad434f9a73d0101038568d59311af72 > Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> > Date: Fri Sep 13 16:23:49 2019 +0200 > > Follow some of the performance advice from cppcheck > > Most of that is changing string to string const &.
/usr2/src/lyx/lyx-git/src/AspellChecker.cpp: In member function ‘AspellSpeller* lyx::AspellChecker::Private::addSpeller(const lyx::Language*)’: /usr2/src/lyx/lyx-git/src/AspellChecker.cpp:291:58: error: cannot bind non-const lvalue reference of type ‘std::__cxx11::string& {aka std::__cxx11::basic_string<char>&}’ to an rvalue of type ‘const string {aka const std::__cxx11::basic_string<char>}’ PersonalWordList * pd = new PersonalWordList(lang->lang()); ~~~~~~~~~~^~ In file included from /usr2/src/lyx/lyx-git/src/AspellChecker.cpp:15:0: /usr2/src/lyx/lyx-git/src/PersonalWordList.h:27:2: note: initializing argument 1 of ‘lyx::PersonalWordList::PersonalWordList(std::__cxx11::string&)’ PersonalWordList(std::string & lang) : lang_(lang), dirty_(false) {} ^~~~~~~~~~~~~~~~ src/CMakeFiles/lyx2.4.dir/build.make:69: recipe for target 'src/CMakeFiles/lyx2.4.dir/usr2/src/lyx/lyx-git/src/AspellChecker.cpp.o' failed make[2]: *** [src/CMakeFiles/lyx2.4.dir/usr2/src/lyx/lyx-git/src/AspellChecker.cpp.o] Error 1 make[2]: Verzeichnis „/BUILD/BUILDMint18/BuildLyxGitQt5.9.5local-gcc7.4.0“ wird verlassen CMakeFiles/Makefile2:616: recipe for target 'src/CMakeFiles/lyx2.4.dir/all' failed Kornel
signature.asc
Description: This is a digitally signed message part.