Compare commits

...

3 Commits

Author SHA1 Message Date
Thibaut Cuvelier
e1efc70959 Add a comment for Python binary names. 2024-09-09 23:32:07 +02:00
Jean-Marc Lasgouttes
2ea95fa71b Improve coverity modeling
This tells coverity that these functions terminate the program.
2024-09-09 17:50:01 +02:00
Jean-Marc Lasgouttes
f4c02d670b Do not forget to reset stream after std::hex
Spotted by Coverity scan.
2024-09-09 17:49:20 +02:00
3 changed files with 15 additions and 1 deletions

View File

@ -11,6 +11,12 @@ void doAssertWithCallstack(bool value)
} }
void doAssertStatic(char const * expr, char const * file, long line)
{
__coverity_panic__();
}
// Tell coverity that this function always exits // Tell coverity that this function always exits
void doAppErr(char const * expr, char const * file, long line) void doAppErr(char const * expr, char const * file, long line)
{ {
@ -23,4 +29,11 @@ void lyx_exit(int exit_code)
__coverity_panic__(); __coverity_panic__();
} }
void lyxbreaker(void const * data, const char * hint, int size)
{
__coverity_panic__();
}
} }

View File

@ -1510,7 +1510,7 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
QVariant GuiWorkArea::inputMethodQuery(Qt::InputMethodQuery query) const QVariant GuiWorkArea::inputMethodQuery(Qt::InputMethodQuery query) const
{ {
LYXERR(Debug::INFO, "incoming InputMethodQuery Value: 0x" << std::hex << query); LYXERR(Debug::INFO, "incoming InputMethodQuery Value: 0x" << std::hex << query << std::dec);
switch (query) { switch (query) {
// this is the CJK-specific composition window position and // this is the CJK-specific composition window position and
// the context menu position when the menu key is pressed. // the context menu position when the menu key is pressed.

View File

@ -129,6 +129,7 @@ static string const find_python_binary()
} }
// last chance: try the unversioned name // last chance: try the unversioned name
// This case is very common on Windows.
if (command.empty()) if (command.empty())
command = python_call("python"); command = python_call("python");