Compare commits

...

2 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
2c5f284f89 Initialize client's name in main()
Initializing clientName at declaration time is not a good idea.

Spotted by Coverity scan.

(cherry picked from commit 3d323412ad)
2024-09-10 12:02:32 +02:00
Jean-Marc Lasgouttes
615f035854 Do not forget to reset stream after std::hex
Spotted by Coverity scan.

(cherry picked from commit f4c02d670b)
2024-09-10 11:59:22 +02:00
3 changed files with 11 additions and 5 deletions

View File

@ -460,8 +460,7 @@ int h(vector<docstring> const &)
}
docstring clientName =
from_ascii(to_string(::getppid()) + ">" + to_string(::getpid()));
docstring clientName;
int n(vector<docstring> const & arg)
{
@ -710,9 +709,12 @@ int LyXClientApp::run()
int main(int argc, char * argv[])
{
lyx::lyxerr.setStream(cerr);
using namespace lyx;
lyxerr.setStream(cerr);
cmdline::clientName =
from_ascii(to_string(::getppid()) + ">" + to_string(::getpid()));
lyx::LyXClientApp app(argc, argv);
LyXClientApp app(argc, argv);
return app.exec();
}

View File

@ -1514,7 +1514,7 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
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) {
// this is the CJK-specific composition window position and
// the context menu position when the menu key is pressed.

View File

@ -139,6 +139,10 @@ What's new
- Fix a Python script, used to preview math expressions, that used a
module that is removed in Python 3.13.
- Fix case where debug information may report all numbers as hexadecimal.
- Make sure that lyxclient name is initialized properly.
* DOCUMENTATION AND LOCALIZATION