]> git.lyx.org Git - lyx.git/log
lyx.git
2 days agoWork around bug in aa.cls
Juergen Spitzmueller [Wed, 25 Sep 2024 09:44:32 +0000 (11:44 +0200)]
Work around bug in aa.cls

2 days agoFactor out (signed) glueLenghValidator
Juergen Spitzmueller [Wed, 25 Sep 2024 08:22:36 +0000 (10:22 +0200)]
Factor out (signed) glueLenghValidator

2 days agoAllow negative offset in GuiLine (#13102)
Juergen Spitzmueller [Wed, 25 Sep 2024 07:53:00 +0000 (09:53 +0200)]
Allow negative offset in GuiLine (#13102)

3 days agoUG: document hyperref borders/colors interaction.
Pavel Sanda [Tue, 24 Sep 2024 18:15:00 +0000 (20:15 +0200)]
UG: document hyperref borders/colors interaction.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg222962.html

3 days agoRe-focus workarea after some outline context-menu actions (see #1624)
Juergen Spitzmueller [Tue, 24 Sep 2024 06:47:55 +0000 (08:47 +0200)]
Re-focus workarea after some outline context-menu actions (see #1624)

Thanks Pavel for the main idea

4 days agoQFontMetrics::xHeight() is not always the ascent of 'x'
Jean-Marc Lasgouttes [Mon, 23 Sep 2024 17:15:20 +0000 (19:15 +0200)]
QFontMetrics::xHeight() is not always the ascent of 'x'

Use the real ascent of glyph 'x' as LyX 2.3.x did.
It can make a difference at least on Windows with many fonts.

Fixes bug #13100.

4 days agoDo not use big characters for some unicode points
Jean-Marc Lasgouttes [Mon, 23 Sep 2024 17:42:29 +0000 (19:42 +0200)]
Do not use big characters for some unicode points

This modifies LOGICAL AND, LOGICAL OR, INTERSECTION and UNION.

Fixes bug #13099.

5 days agoBetter fix for Spanish Tufte problem
Juergen Spitzmueller [Sun, 22 Sep 2024 15:16:54 +0000 (17:16 +0200)]
Better fix for Spanish Tufte problem

The option "nohyper" causes the issue

5 days agoRevert "Work around fragility problem in Spanish Tufte Handout"
Juergen Spitzmueller [Sun, 22 Sep 2024 15:15:46 +0000 (17:15 +0200)]
Revert "Work around fragility problem in Spanish Tufte Handout"

This reverts commit 829845457753c1348f9b0399238b999c527a7d60.

5 days agoWork around fragility problem in Spanish Tufte Handout
Juergen Spitzmueller [Sun, 22 Sep 2024 09:48:44 +0000 (11:48 +0200)]
Work around fragility problem in Spanish Tufte Handout

It is unclear what the actual problem is; it only shows up in this
document (not the other l7ns)

5 days agoCmake tests: Amend 6e05409d
Kornel Benko [Sun, 22 Sep 2024 09:40:28 +0000 (11:40 +0200)]
Cmake tests: Amend 6e05409d

Use with a slightly better thought out selection of possible exports to tex-source.

6 days agoUpdate sk.po
Kornel Benko [Sat, 21 Sep 2024 19:54:49 +0000 (21:54 +0200)]
Update sk.po

6 days agoCmake build: Omit "PRE_BUILD" in add_custom_command()
Kornel Benko [Sat, 21 Sep 2024 19:52:21 +0000 (21:52 +0200)]
Cmake build: Omit "PRE_BUILD" in add_custom_command()

According to cmake warning output while configuring:
CMake Error (dev) at po/CMakeLists.txt:72 (ADD_CUSTOM_COMMAND):
  The following keywords are not supported when using
  add_custom_command(OUTPUT): PRE_BUILD.

  Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
  Run "cmake --help-policy CMP0175" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
Call Stack (most recent call first):
  po/CMakeLists.txt:106 (add_gettext_python)
This error is for project developers. Use -Wno-error=dev to suppress it.

6 days agoctests: invert chess lyx2lyx tests
Scott Kostyshak [Fri, 20 Sep 2024 09:04:16 +0000 (11:04 +0200)]
ctests: invert chess lyx2lyx tests

In export.cmake, if the detected output format is pdf3, we try to
export to "platex", which usually makes sense, but for this file we
would need to export to "latex". This file is very particular, and
also old, so I do not know if it is worth the time to handle this
case.

This commit inverts the following tests:

  export/examples/Articles/Chess/Game_1_lyx16 (Failed)
  export/examples/Articles/Chess/Game_1_lyx20 (Failed)
  export/examples/Articles/Chess/Game_1_lyx21 (Failed)
  export/examples/Articles/Chess/Game_1_lyx22 (Failed)
  export/examples/Articles/Chess/Game_1_lyx23 (Failed)

6 days agode.po
Juergen Spitzmueller [Sat, 21 Sep 2024 10:46:45 +0000 (12:46 +0200)]
de.po

6 days agoOnly \protect labels in \thanks notes
Juergen Spitzmueller [Sat, 21 Sep 2024 09:30:08 +0000 (11:30 +0200)]
Only \protect labels in \thanks notes

See https://marc.info/?l=lyx-users&m=136394387505489

7 days agoGuiBibTeX: introduce way to toggle between absolute and relative local paths (#13097)
Juergen Spitzmueller [Sat, 21 Sep 2024 05:30:55 +0000 (07:30 +0200)]
GuiBibTeX: introduce way to toggle between absolute and relative local paths (#13097)

7 days agoHeader not needed anymore
Pavel Sanda [Fri, 20 Sep 2024 19:33:41 +0000 (21:33 +0200)]
Header not needed anymore

8 days agoMove assertion at the right position
Jean-Marc Lasgouttes [Thu, 19 Sep 2024 21:17:48 +0000 (23:17 +0200)]
Move assertion at the right position

It would wrongly trigger when doing a multi-cell selection.

8 days agoctests: invert lyx2lyx tests that fail TeX export
Scott Kostyshak [Thu, 19 Sep 2024 20:38:49 +0000 (22:38 +0200)]
ctests: invert lyx2lyx tests that fail TeX export

These fail when exporting to TeX, but since they have to do with old
formats, it's not clear it's worth the time to investigate.

These started failing once we check the exit code of LyX's TeX
export (at c7be9780).

8 days agoctests: exit with error if export to .tex fails
Scott Kostyshak [Tue, 17 Sep 2024 19:49:48 +0000 (21:49 +0200)]
ctests: exit with error if export to .tex fails

Now that we detect and export to the correct TeX format (instead of
assuming pdflatex), we can make the check more strict by giving an
error if LyX exits with error from the export.

8 days agoctests: default for Japanese + systemF is pdf4
Scott Kostyshak [Thu, 19 Sep 2024 20:00:23 +0000 (22:00 +0200)]
ctests: default for Japanese + systemF is pdf4

This fixes the following tests:

  export/examples/ja/Modules/Rnw_%28knitr%29_lyx22
  export/examples/ja/Modules/Rnw_%28knitr%29_lyx23
  export/examples/ja/Modules/Sweave_lyx22
  export/examples/ja/Modules/Sweave_lyx23

8 days agoFix outliner tree depth (#13098)
Juergen Spitzmueller [Thu, 19 Sep 2024 08:00:39 +0000 (10:00 +0200)]
Fix outliner tree depth (#13098)

9 days agoMove header where needed.
Pavel Sanda [Wed, 18 Sep 2024 19:25:18 +0000 (21:25 +0200)]
Move header where needed.

9 days agoctests: comment the inverted ja Math systemF tests
Scott Kostyshak [Wed, 18 Sep 2024 12:19:10 +0000 (14:19 +0200)]
ctests: comment the inverted ja Math systemF tests

Comments from Jürgen about why it is complicated to fix the exports.

10 days agoAmend e72ca6a5
Scott Kostyshak [Tue, 17 Sep 2024 19:41:48 +0000 (21:41 +0200)]
Amend e72ca6a5

10 days agoHeader not needed anymore
Pavel Sanda [Tue, 17 Sep 2024 17:51:35 +0000 (19:51 +0200)]
Header not needed anymore

10 days agoCmake lyx2lyx export tests: Try to use output format from the lyx-source
Kornel Benko [Tue, 17 Sep 2024 16:42:46 +0000 (18:42 +0200)]
Cmake lyx2lyx export tests: Try to use output format from the lyx-source

10 days agoDo not output empty statement in lyx2lyx reversion
Juergen Spitzmueller [Tue, 17 Sep 2024 13:53:18 +0000 (15:53 +0200)]
Do not output empty statement in lyx2lyx reversion

10 days agoUninvert ja UserGuide systemF tests
Scott Kostyshak [Tue, 17 Sep 2024 09:12:10 +0000 (11:12 +0200)]
Uninvert ja UserGuide systemF tests

These exports pass thanks to Jürgen's recent fixes, including
working around a language nesting issue.

10 days agoja/UserGuide: work around language nesting issue
Juergen Spitzmueller [Tue, 17 Sep 2024 07:51:29 +0000 (09:51 +0200)]
ja/UserGuide: work around language nesting issue

11 days agoUninvert the ja Additional systemF tests
Scott Kostyshak [Mon, 16 Sep 2024 15:53:38 +0000 (17:53 +0200)]
Uninvert the ja Additional systemF tests

These exports now succeed thanks to Jürgen's recent fixes.

11 days agoAdd missing ("false") condition
Juergen Spitzmueller [Mon, 16 Sep 2024 15:05:12 +0000 (17:05 +0200)]
Add missing ("false") condition

11 days agoUpdate sk.po
Kornel Benko [Mon, 16 Sep 2024 13:30:33 +0000 (15:30 +0200)]
Update sk.po

11 days agoamend 8e49c9a704b941fe5
Juergen Spitzmueller [Mon, 16 Sep 2024 13:12:42 +0000 (15:12 +0200)]
amend 8e49c9a704b941fe5

we might not be using babel, after all

11 days agoFix es/ModernCV on older versions that do not have language options
Juergen Spitzmueller [Mon, 16 Sep 2024 12:54:30 +0000 (14:54 +0200)]
Fix es/ModernCV on older versions that do not have language options

11 days agoFix most math problems with Xe/LuaTeX
Juergen Spitzmueller [Mon, 16 Sep 2024 12:30:16 +0000 (14:30 +0200)]
Fix most math problems with Xe/LuaTeX

One NULL character issue left

11 days agoFixup ja/Additional for Xe/LuaTeX
Juergen Spitzmueller [Mon, 16 Sep 2024 11:36:48 +0000 (13:36 +0200)]
Fixup ja/Additional for Xe/LuaTeX

11 days agoFixup ja/UserGuide for XeTeX
Juergen Spitzmueller [Mon, 16 Sep 2024 11:36:03 +0000 (13:36 +0200)]
Fixup ja/UserGuide for XeTeX

The system fonts do not cover Western quotation marks

11 days agoFix font def
Juergen Spitzmueller [Mon, 16 Sep 2024 06:48:28 +0000 (08:48 +0200)]
Fix font def

12 days agoA&A does not work with polyglossia
Juergen Spitzmueller [Sun, 15 Sep 2024 16:36:23 +0000 (18:36 +0200)]
A&A does not work with polyglossia

(babel is hardcoded in the class)

12 days agoUee a more accesible JP mono font
Juergen Spitzmueller [Sun, 15 Sep 2024 15:34:28 +0000 (17:34 +0200)]
Uee a more accesible JP mono font

12 days agoFixup polyglossia-languages test file
Juergen Spitzmueller [Sun, 15 Sep 2024 13:21:46 +0000 (15:21 +0200)]
Fixup polyglossia-languages test file

* Workaround for churchslavonic

12 days agoFixup polyglossia-languages test file
Juergen Spitzmueller [Sun, 15 Sep 2024 13:09:08 +0000 (15:09 +0200)]
Fixup polyglossia-languages test file

* Branch Kazakh as it is now babel-only
* Setup fonts for Chinese via fontspec
* Setup proper fonts for Japanese
* Use proper Japanese language variant

12 days agoFix Spanish ModernCV example
Juergen Spitzmueller [Sun, 15 Sep 2024 11:53:41 +0000 (13:53 +0200)]
Fix Spanish ModernCV example

12 days agoSet appropriate system fonts for Chinese docs
Juergen Spitzmueller [Sun, 15 Sep 2024 11:32:10 +0000 (13:32 +0200)]
Set appropriate system fonts for Chinese docs

13 days agoMore places where DocumentClassPtr should not be copied
Jean-Marc Lasgouttes [Sat, 14 Sep 2024 18:40:53 +0000 (20:40 +0200)]
More places where DocumentClassPtr should not be copied

Spotted by COverity scan.

13 days agoPass sigPtr object as const reference too
Jean-Marc Lasgouttes [Sat, 14 Sep 2024 18:36:04 +0000 (20:36 +0200)]
Pass sigPtr object as const reference too

Spotted by Coverity scan.

13 days agoPass SocketCallback object as const reference
Jean-Marc Lasgouttes [Sat, 14 Sep 2024 18:19:34 +0000 (20:19 +0200)]
Pass SocketCallback object as const reference

Spotted by Coverity scan.

13 days agoSet appropriate tt font that supports CJK
Juergen Spitzmueller [Sat, 14 Sep 2024 12:46:29 +0000 (14:46 +0200)]
Set appropriate tt font that supports CJK

The actual font should be discussed. This one is OSS and works well:
https://github.com/adobe-fonts/source-han-code-jp

13 days agoFixup some more Japanese templates
Juergen Spitzmueller [Sat, 14 Sep 2024 12:43:43 +0000 (14:43 +0200)]
Fixup some more Japanese templates

All of these rely on non-polyglossia language support

13 days agoFixup Japanese Article template
Juergen Spitzmueller [Sat, 14 Sep 2024 12:38:47 +0000 (14:38 +0200)]
Fixup Japanese Article template

This one relies on its own language support

13 days agoFixup Japanese Feynman example
Juergen Spitzmueller [Sat, 14 Sep 2024 12:36:18 +0000 (14:36 +0200)]
Fixup Japanese Feynman example

Polyglossia is loaded after the user preamble

13 days agoFixup Japanese Article example
Juergen Spitzmueller [Sat, 14 Sep 2024 12:29:31 +0000 (14:29 +0200)]
Fixup Japanese Article example

This one relies on its own language support

13 days agoFixup test file for texF tests
Juergen Spitzmueller [Sat, 14 Sep 2024 10:48:57 +0000 (12:48 +0200)]
Fixup test file for texF tests

Use proper fonts basically (the rest is format conversion)

13 days agoRevert "use std::move() instead of copying when value is no longer used"
Juergen Spitzmueller [Sat, 14 Sep 2024 08:59:13 +0000 (10:59 +0200)]
Revert "use std::move() instead of copying when value is no longer used"

This reverts commit e685d31f5aadadd9c84c80a604818d49f5853dbf.

13 days agoRevert "Fix compiler warning"
Juergen Spitzmueller [Sat, 14 Sep 2024 08:59:08 +0000 (10:59 +0200)]
Revert "Fix compiler warning"

This reverts commit 0a7585403832c114fd2d084363aee98c3234058e.

2 weeks agoTransform CoordCache::check/checkDim in ASSERT_DIM/POS macros
Jean-Marc Lasgouttes [Fri, 13 Sep 2024 13:41:53 +0000 (15:41 +0200)]
Transform CoordCache::check/checkDim in ASSERT_DIM/POS macros

This makes it more obvious to the reader that these are actually
assertions, and should help Coverity scan too.

2 weeks agoPass shared_ptr<> arguments by const reference
Jean-Marc Lasgouttes [Fri, 13 Sep 2024 12:54:43 +0000 (14:54 +0200)]
Pass shared_ptr<> arguments by const reference

These arguments are not expensive to copy. However, it makes sense to
pass such pointers by const reference when they are just intended for
reading.

Some reading about this issue is here:
https://www.internalpointers.com/post/move-smart-pointers-and-out-functions-modern-c

Fixes some Coverity scan defects.

2 weeks agoPass DocumentClassConstPtr arguments by const reference
Jean-Marc Lasgouttes [Fri, 13 Sep 2024 12:16:21 +0000 (14:16 +0200)]
Pass DocumentClassConstPtr arguments by const reference

This arguments are shared_ptr objects, so they are not expensive to
copy. However, it makes sense to pass such pointers by const reference
when they are just intended for reading.

Some reading about this issue is here:
https://www.internalpointers.com/post/move-smart-pointers-and-out-functions-modern-c

Fixes some Coverity scan defects.

2 weeks agoMake two parameters const references
Jean-Marc Lasgouttes [Fri, 13 Sep 2024 09:27:00 +0000 (11:27 +0200)]
Make two parameters const references

2 weeks agoFix uninitialized variable
Jean-Marc Lasgouttes [Fri, 13 Sep 2024 09:21:19 +0000 (11:21 +0200)]
Fix uninitialized variable

Spotted by Coverity scan.

2 weeks agoDo not use rand() to set a BranchList id
Jean-Marc Lasgouttes [Fri, 13 Sep 2024 09:07:05 +0000 (11:07 +0200)]
Do not use rand() to set a BranchList id

Use a simple counting instead, beecause Coverity complains that rand()
is not safe, and counting is siimpler anyway.

2 weeks agoMake string parameter a const reference
Jean-Marc Lasgouttes [Fri, 13 Sep 2024 08:27:24 +0000 (10:27 +0200)]
Make string parameter a const reference

Spotted by Coverity scan.

2 weeks agoAvoid a couple of copies.
Jean-Marc Lasgouttes [Thu, 12 Sep 2024 16:33:45 +0000 (18:33 +0200)]
Avoid a couple of copies.

Spotted by Coverity scan.

2 weeks agoMake docstring parameters const references
Jean-Marc Lasgouttes [Thu, 12 Sep 2024 16:28:26 +0000 (18:28 +0200)]
Make docstring parameters const references

Spotted by Coverity scan.

2 weeks agoGraph::getReachable(): pass a parameter by const reference
Jean-Marc Lasgouttes [Thu, 12 Sep 2024 16:20:43 +0000 (18:20 +0200)]
Graph::getReachable(): pass a parameter by const reference

Spotted by coverity.

2 weeks agoAvoid a copy
Jean-Marc Lasgouttes [Thu, 12 Sep 2024 16:05:50 +0000 (18:05 +0200)]
Avoid a copy

Spotted by Coverity scan.

2 weeks agoAvoid a couple of copies
Jean-Marc Lasgouttes [Thu, 12 Sep 2024 15:59:41 +0000 (17:59 +0200)]
Avoid a couple of copies

Spotted by Coverity scan.

2 weeks agoGuiWorkArea: pass KeySymbol parameters as const references
Jean-Marc Lasgouttes [Thu, 12 Sep 2024 15:52:57 +0000 (17:52 +0200)]
GuiWorkArea: pass KeySymbol parameters as const references

Spotted by Coverity scan.

2 weeks agoAvoid a couple copies in Trans::addDeadKeys().
Jean-Marc Lasgouttes [Thu, 12 Sep 2024 15:24:32 +0000 (17:24 +0200)]
Avoid a couple copies in Trans::addDeadKeys().

Spotted by Coverity scan.

2 weeks agoTransState::addkey() pass parameter by const reference
Jean-Marc Lasgouttes [Thu, 12 Sep 2024 14:54:02 +0000 (16:54 +0200)]
TransState::addkey() pass parameter by const reference

Spotted by Coverity scan.

2 weeks agoPass three string parameters by address
Jean-Marc Lasgouttes [Wed, 11 Sep 2024 15:33:52 +0000 (17:33 +0200)]
Pass three string parameters by address

Spoted by Coverity scan.

2 weeks agoPass a docstring parameter by address
Jean-Marc Lasgouttes [Wed, 11 Sep 2024 15:30:33 +0000 (17:30 +0200)]
Pass a docstring parameter by address

Spotted by Coverity scan.

2 weeks agoPass a pair of docstring arguments by address
Jean-Marc Lasgouttes [Wed, 11 Sep 2024 15:25:03 +0000 (17:25 +0200)]
Pass a pair of docstring arguments by address

Spotted by Coverity scan.

2 weeks agoAvoid an unnecessary string copy
Jean-Marc Lasgouttes [Wed, 11 Sep 2024 15:08:45 +0000 (17:08 +0200)]
Avoid an unnecessary string copy

Spotted by Coverity scan.

2 weeks agoPass arguments by address in convert() templates
Jean-Marc Lasgouttes [Wed, 11 Sep 2024 14:43:26 +0000 (16:43 +0200)]
Pass arguments by address in convert() templates

The situation of the convert<>() template was a mess: the header
announced that template specializations passed strings by address (my
doing long ago), but the code would just define versions that upass
strings by value.

The solution is to pass all values by address. This works very well,
_except_ when the value is a string litteral.

Defining the templates thus requires a bit of work.

Spotted by Coverity scan.

2 weeks agoFix linking of test programs in support/.
Jean-Marc Lasgouttes [Wed, 11 Sep 2024 14:42:41 +0000 (16:42 +0200)]
Fix linking of test programs in support/.

2 weeks agoPass parameters of constructor by address
Jean-Marc Lasgouttes [Wed, 11 Sep 2024 14:25:45 +0000 (16:25 +0200)]
Pass parameters of constructor by address

Spotted by Coverity scan.

2 weeks agoFixup 716e20ae: revert useless part
Jean-Marc Lasgouttes [Wed, 11 Sep 2024 11:37:32 +0000 (13:37 +0200)]
Fixup 716e20ae: revert useless part

2 weeks agoLimit the number of iterations for some tabular features in math
Jean-Marc Lasgouttes [Wed, 11 Sep 2024 11:29:20 +0000 (13:29 +0200)]
Limit the number of iterations for some tabular features in math

Try to please Coverity scan.

2 weeks agoMake some code that handle authors more readable
Jean-Marc Lasgouttes [Tue, 10 Sep 2024 13:29:36 +0000 (15:29 +0200)]
Make some code that handle authors more readable

Create accssors authodmap() in BufferParams.

Use [] operator instead of find().

Hopefully this will avoid to confuse Coverity scan.

2 weeks agoupdate test
Udi Fogiel [Tue, 10 Sep 2024 12:44:42 +0000 (15:44 +0300)]
update test

2 weeks agoWhitespace
Scott Kostyshak [Tue, 10 Sep 2024 12:23:37 +0000 (14:23 +0200)]
Whitespace

2 weeks agofix jlreq abstract layout and adapt Chinese docs for unicode engines
Udi Fogiel [Tue, 10 Sep 2024 12:17:07 +0000 (15:17 +0300)]
fix jlreq abstract layout and adapt Chinese docs for unicode engines

jlreq layout defined the abstract environment to be boxed
in the preamble. Doing any kind of typesetting before
all the setup has finished is error prone and may lead to
wrong output (wrong fonts for example). The correct
place to put the abstract code is right before \maketitle.

The Chinese docs loaded the ctex package in case system fonts
were used. Now, with the new support for languages with babel
and polyglossia it is no longer necessary and creates collisions.

2 weeks agoDo not push options to \babelprovide which do not make sense there
Jürgen Spitzmüller [Tue, 10 Sep 2024 11:58:33 +0000 (13:58 +0200)]
Do not push options to \babelprovide which do not make sense there

Should fix a couple of tests

2 weeks agoAdd a comment for Python binary names.
Thibaut Cuvelier [Mon, 9 Sep 2024 21:31:53 +0000 (23:31 +0200)]
Add a comment for Python binary names.

2 weeks agoImprove coverity modeling
Jean-Marc Lasgouttes [Mon, 9 Sep 2024 15:50:01 +0000 (17:50 +0200)]
Improve coverity modeling

This tells coverity that these functions terminate the program.

2 weeks agoDo not forget to reset stream after std::hex
Jean-Marc Lasgouttes [Mon, 9 Sep 2024 15:49:20 +0000 (17:49 +0200)]
Do not forget to reset stream after std::hex

Spotted by Coverity scan.

2 weeks agoDo not handle special case where buffer == NULL
Jean-Marc Lasgouttes [Mon, 9 Sep 2024 13:52:01 +0000 (15:52 +0200)]
Do not handle special case where buffer == NULL

If it is so, we have already crashed in isBranchSelected() above.

(and hopefully, buffer_ is never null these days).

Spotted by Coverity scan.

2 weeks agoDo not access current_view_ if it is NULL
Jean-Marc Lasgouttes [Mon, 9 Sep 2024 13:35:57 +0000 (15:35 +0200)]
Do not access current_view_ if it is NULL

Spotted by Coverity scan.

2 weeks agoInitialize client's name in main()
Jean-Marc Lasgouttes [Mon, 9 Sep 2024 13:29:39 +0000 (15:29 +0200)]
Initialize client's name in main()

Initializing clientName at declaration time is not a good idea.

Spotted by Coverity scan.

2 weeks agoFixup b8cdfd1e1db: fix thinko
Jean-Marc Lasgouttes [Mon, 9 Sep 2024 13:19:25 +0000 (15:19 +0200)]
Fixup b8cdfd1e1db: fix thinko

Spotted by Coverity.

2 weeks agoDo not use lyxerr in from_ascii(char const *)
Jean-Marc Lasgouttes [Mon, 9 Sep 2024 10:08:23 +0000 (12:08 +0200)]
Do not use lyxerr in from_ascii(char const *)

This function is used a lot to initialize static docstrings. This is
an issue in theory because lyxerr may not have been initialized in
time.

In practice of course, lyxerr will only be used when there is a
non-ascii character in the parameter, which is really not supposed to
happen.

This gets rid of 75 coverity reports.

2 weeks agoadapt tex2lyx to 0beb790a6a194
Juergen Spitzmueller [Mon, 9 Sep 2024 06:29:24 +0000 (08:29 +0200)]
adapt tex2lyx to 0beb790a6a194

2 weeks agoHandle space issue with refstyle more downstream
Juergen Spitzmueller [Sun, 8 Sep 2024 17:07:44 +0000 (19:07 +0200)]
Handle space issue with refstyle more downstream

It is not necessarily, and infers with some usages, to generally escape
spaces in labels and references

2 weeks agoFix indentation
Juergen Spitzmueller [Sun, 8 Sep 2024 14:00:36 +0000 (16:00 +0200)]
Fix indentation

2 weeks agoFix compiler warning
Scott Kostyshak [Sat, 7 Sep 2024 21:45:51 +0000 (23:45 +0200)]
Fix compiler warning

Fixes the following warning:

  warning unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call]

2 weeks agoinitialize boolean (reported by coverity)
Juergen Spitzmueller [Sat, 7 Sep 2024 10:55:10 +0000 (12:55 +0200)]
initialize boolean (reported by coverity)

2 weeks agouse std::move() instead of copying when value is no longer used
Juergen Spitzmueller [Sat, 7 Sep 2024 10:50:27 +0000 (12:50 +0200)]
use std::move() instead of copying when value is no longer used

This is mainly to shut down coverity which nowadays nags on this.
I am not sure whether we really gain something in these cases.