lyx_mirror/src
Jean-Marc Lasgouttes 69d8435a7f Avoid copying vector needlessly
The getLabel method will not consider more than 10 citation keys.
Instead of removing elements from the keys vector, this commit adapts
the for loop to skip unwanted elements.

This allows to pass the keys vector by const reference.

Spotted by Coverity scan.
2024-10-03 10:18:24 +02:00
..
client Initialize client's name in main() 2024-09-09 15:33:02 +02:00
convert
frontends Pass parameters as const reference 2024-10-01 11:12:14 +02:00
graphics Convert $${python} placeholder for graphic conversions 2024-04-14 21:30:02 +01:00
insets Streamline use of map<col-type, bool> 2024-09-26 15:31:28 +02:00
mathed MathML: use Core for XHTML, 3 for DocBook. 2024-09-28 16:50:29 +02:00
support Pass sigPtr object as const reference too 2024-09-14 20:36:04 +02:00
tests Fixup 2660df9b99: missing stuff after moving Lexer to support/ 2024-05-01 16:54:10 +02:00
tex2lyx adapt tex2lyx to 0beb790a6a 2024-09-09 08:29:24 +02:00
.gitignore
AppleSpellChecker.cpp
AppleSpellChecker.h
AspellChecker.cpp
AspellChecker.h
Author.cpp
Author.h
BiblioInfo.cpp Avoid copying vector needlessly 2024-10-03 10:18:24 +02:00
BiblioInfo.h Avoid copying vector needlessly 2024-10-03 10:18:24 +02:00
boost.cpp
Box.cpp
Box.h
BranchList.cpp Do not use rand() to set a BranchList id 2024-09-13 11:09:30 +02:00
BranchList.h Do not use rand() to set a BranchList id 2024-09-13 11:09:30 +02:00
buffer_funcs.cpp
buffer_funcs.h
Buffer.cpp Avoid a copy 2024-09-12 18:05:50 +02:00
Buffer.h update comments 2024-08-30 14:53:07 +02:00
BufferEncodings.cpp CharInfo: allow to store several commands (both text and math) for each character. 2022-02-20 01:33:03 +01:00
BufferEncodings.h
BufferList.cpp
BufferList.h
BufferParams.cpp Pass DocumentClassConstPtr arguments by const reference 2024-09-13 14:16:21 +02:00
BufferParams.h Pass DocumentClassConstPtr arguments by const reference 2024-09-13 14:16:21 +02:00
BufferView.cpp Revert "use std::move() instead of copying when value is no longer used" 2024-09-14 10:59:13 +02:00
BufferView.h Pass DocumentClassConstPtr arguments by const reference 2024-09-13 14:16:21 +02:00
Bullet.cpp Whitespace 2022-03-05 13:45:27 +01:00
Bullet.h Use a more transparent lexic for bullet label functions 2022-03-05 09:00:47 +01:00
Changes.cpp Fix bug #11781. Patch from Daniel. 2022-11-27 13:20:17 -05:00
Changes.h
Chktex.cpp
Chktex.h
Citation.h Provide reversed style specifier for citation commands 2024-07-13 17:20:29 +02:00
CiteEnginesList.cpp Add "notes" CiteEngine Type 2024-07-07 15:14:05 +02:00
CiteEnginesList.h
CMakeLists.txt Cmake build: Add defines for HAVE_XCB_XCB_H and HAVE_LIBXCB 2024-08-29 14:08:39 +02:00
CmdDef.cpp Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
CmdDef.h
Color.cpp Transform InsetNomenclature to a collapsible 2024-08-12 12:33:16 +02:00
Color.h
ColorCode.h Transform InsetNomenclature to a collapsible 2024-08-12 12:33:16 +02:00
ColorSet.h
Compare.cpp Fix bug #11781. Patch from Daniel. 2022-11-27 13:20:17 -05:00
Compare.h Fix bug #11781. Patch from Daniel. 2022-11-27 13:20:17 -05:00
CompletionList.h
Converter.cpp Add "needcopiesfrom" converter flag 2024-08-18 17:53:51 +02:00
Converter.h Add "needcopiesfrom" converter flag 2024-08-18 17:53:51 +02:00
ConverterCache.cpp Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
ConverterCache.h
CoordCache.cpp Transform CoordCache::check/checkDim in ASSERT_DIM/POS macros 2024-09-13 15:44:33 +02:00
CoordCache.h Transform CoordCache::check/checkDim in ASSERT_DIM/POS macros 2024-09-13 15:44:33 +02:00
Counters.cpp Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
Counters.h Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
Cursor.cpp comment 2024-07-03 16:23:30 +02:00
Cursor.h Fix up 5577e877: remove logic error 2024-05-03 14:38:32 +02:00
CursorSlice.cpp
CursorSlice.h
CutAndPaste.cpp More places where DocumentClassPtr should not be copied 2024-09-14 20:40:53 +02:00
CutAndPaste.h More places where DocumentClassPtr should not be copied 2024-09-14 20:40:53 +02:00
DepTable.cpp
DepTable.h
Dimension.cpp Remove trailing underscore on members x and y of Point class. 2024-06-20 16:37:05 +02:00
Dimension.h Remove trailing underscore on members x and y of Point class. 2024-06-20 16:37:05 +02:00
DispatchResult.h
DocIterator.cpp Allow DocIterator::paragraphGotoArgument() to return id() without pos() 2024-07-28 15:53:05 +02:00
DocIterator.h Allow DocIterator::paragraphGotoArgument() to return id() without pos() 2024-07-28 15:53:05 +02:00
DocumentClassPtr.h
EnchantChecker.cpp
EnchantChecker.h
Encoding.cpp Revert "use std::move() instead of copying when value is no longer used" 2024-09-14 10:59:13 +02:00
Encoding.h Consider known latex text macros (basically the logos) in convertaTeXCommands() 2024-08-16 11:23:57 +02:00
ErrorList.cpp
ErrorList.h
Exporter.cpp
Exporter.h
factory.cpp Transform InsetNomenclature to a collapsible 2024-08-12 12:33:16 +02:00
factory.h Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
Floating.cpp Rename LATEX debug level to OUTFILE and use it for DocBook, HTML, and XML messages. 2022-03-01 16:05:42 +01:00
Floating.h Another indentation fix 2022-02-27 14:53:01 +01:00
FloatList.cpp
FloatList.h
Font.cpp Add support for language options (#8034) 2024-08-23 15:52:34 +02:00
Font.h
FontEnums.h
FontInfo.cpp Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
FontInfo.h Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
FontList.cpp
FontList.h
Format.cpp
Format.h
FuncCode.h Implement LFUN_REFERENCE_TO_PARAGRAPH 2024-07-28 15:54:55 +02:00
FuncRequest.cpp Add != operator to FuncRequest and special value FuncRequest::prefix 2022-12-10 20:30:58 +01:00
FuncRequest.h Add != operator to FuncRequest and special value FuncRequest::prefix 2022-12-10 20:30:58 +01:00
FuncStatus.cpp
FuncStatus.h
Graph.cpp Graph::getReachable(): pass a parameter by const reference 2024-09-12 18:20:43 +02:00
Graph.h Graph::getReachable(): pass a parameter by const reference 2024-09-12 18:20:43 +02:00
HunspellChecker.cpp
HunspellChecker.h
IndicesList.cpp
IndicesList.h
InsetIterator.cpp
InsetIterator.h
InsetList.cpp
InsetList.h
Intl.cpp
Intl.h
KeyMap.cpp Fixup b8cdfd1e1d: fix thinko 2024-09-09 15:19:25 +02:00
KeyMap.h Detect when one tries to bind a lfun to a prefix of longer commands 2023-07-22 00:01:34 +02:00
KeySequence.cpp Consider masked modifiers (~S etc.) when writing to bind file 2024-07-21 10:18:58 +02:00
KeySequence.h
Language.cpp output babel options via \babelprovide in all cases needed 2024-08-26 07:20:58 +02:00
Language.h output babel options via \babelprovide in all cases needed 2024-08-26 07:20:58 +02:00
LaTeX.cpp Add support for multiple indexes in Memoir 2024-07-26 12:48:12 +02:00
LaTeX.h Add support for multiple indexes in Memoir 2024-07-26 12:48:12 +02:00
LaTeXFeatures.cpp output babel options via \babelprovide in all cases needed 2024-08-26 07:20:58 +02:00
LaTeXFeatures.h Add support for language options (#8034) 2024-08-23 15:52:34 +02:00
LaTeXFonts.cpp Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
LaTeXFonts.h Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
LaTeXPackages.cpp Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
LaTeXPackages.h Handle the case of outdated chkconfig.ltx in user directory 2024-04-20 14:57:12 +02:00
Layout.cpp Escape special chars in indexes 2024-08-12 17:10:57 +02:00
Layout.h Add EscapeChars layout tag 2024-08-12 12:25:31 +02:00
LayoutEnums.h
LayoutFile.cpp Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
LayoutFile.h
LayoutModuleList.cpp Sync with master 2022-10-26 10:52:21 +02:00
LayoutModuleList.h Sync with master 2022-10-26 10:52:21 +02:00
lyx_commit_hash.h.in
LyX.cpp Streamline -geometry command-line option support 2024-08-30 11:15:02 +02:00
LyX.h Fix support for screen fractional scaling with Wayland 2024-02-29 10:28:15 +01:00
LyXAction.cpp Add ScrollType BOTTOM and TOGGLE for BufferView::scrollToCursor() 2024-09-06 12:21:42 +02:00
LyXAction.h
lyxfind.cpp Pass three string parameters by address 2024-09-11 17:33:52 +02:00
lyxfind.h
LyXRC.cpp Store spellchecker_esc_chars as a docstring 2024-07-21 21:35:14 +02:00
LyXRC.h Store spellchecker_esc_chars as a docstring 2024-07-21 21:35:14 +02:00
LyXVC.cpp Avoid an unnecessary string copy 2024-09-11 17:08:45 +02:00
LyXVC.h
lyxwinres.rc
main.cpp
Makefile.am Rewrite statistics code 2024-07-24 18:07:04 +02:00
MetricsInfo.cpp Little bit more debug info for unset Buffer members. 2024-04-18 18:25:47 -04:00
MetricsInfo.h Fix display of a math hull inset in a tight inset 2024-03-22 15:40:40 +01:00
ModuleList.cpp Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
ModuleList.h
Mover.cpp Add new placeholder $${python} to configure 2022-01-04 00:21:34 +00:00
Mover.h Move LYX_(BEGIN|END)_MUTE_GCC_WARNING macros to their own header. 2023-11-10 13:14:34 +01:00
output_docbook.cpp Update comment: a function was renamed. 2024-02-26 02:17:48 +01:00
output_docbook.h DocBook: add some TODOs for the future. 2022-12-27 00:03:07 +01:00
output_latex.cpp Do not pass a vector by value to getArgInset 2024-10-01 13:06:37 +02:00
output_latex.h Do not try to pop from an empty stack 2022-02-04 17:23:52 +01:00
output_plaintext.cpp
output_plaintext.h
output_xhtml.cpp XHTML: export paragraph IDs also for list items, but not for the opening tag of the list. 2024-05-20 03:21:00 +02:00
output_xhtml.h
output.cpp
output.h
OutputEnums.h
OutputParams.cpp Account for babel's bidi option (#12866) 2023-08-17 14:25:33 +02:00
OutputParams.h Add EscapeChars layout tag 2024-08-12 12:25:31 +02:00
paper.h
Paragraph.cpp Only \protect labels in \thanks notes 2024-09-21 11:30:08 +02:00
Paragraph.h typo 2024-07-29 09:11:42 +02:00
ParagraphList.h
ParagraphMetrics.cpp Fix up a4d9315b: handle metrics of not visible paragraphs 2024-05-17 17:39:09 +02:00
ParagraphMetrics.h Comment typo 2024-05-17 12:18:09 -04:00
ParagraphParameters.cpp Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
ParagraphParameters.h Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
ParIterator.cpp
ParIterator.h
PDFOptions.cpp Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
PDFOptions.h Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
PersonalWordList.cpp
PersonalWordList.h
Row.cpp Revert "Fix display of a math hull inset in a tight inset" 2024-03-22 15:08:26 +01:00
Row.h Avoid row breaking at inconvenient places. 2023-09-25 12:46:54 +02:00
RowFlags.h Sync with master 2022-10-26 10:52:21 +02:00
RowPainter.cpp Fix depth bar optics 2024-06-14 16:28:04 +02:00
RowPainter.h
Server.cpp
Server.h
ServerSocket.cpp
ServerSocket.h
Session.cpp Fix compiler warning about unused string consts 2023-04-26 14:06:25 -04:00
Session.h Sync with master 2022-10-26 10:52:21 +02:00
Spacing.cpp
Spacing.h
SpellChecker.h
Statistics.cpp Move assertion at the right position 2024-09-19 23:18:47 +02:00
Statistics.h initialize boolean (reported by coverity) 2024-09-07 12:55:10 +02:00
TexRow.cpp Sync with master 2022-10-26 10:52:21 +02:00
TexRow.h
texstream.cpp Sync with master 2022-10-26 10:52:21 +02:00
texstream.h
Text.cpp Make some code that handle authors more readable 2024-09-10 15:32:49 +02:00
Text.h Move Lexer to support/ directory (and lyx::support namespace) 2024-04-28 12:23:13 +02:00
TextClass.cpp Fix cut and past error (reported by coverity) 2024-09-07 12:39:45 +02:00
TextClass.h Rename DocumentCLass:plainInsetLayout() to InsetLayout::undefined() 2024-06-20 18:29:41 +02:00
TextMetrics.cpp Fixup 145af7c2: remove unused method 2024-07-10 13:42:57 +02:00
TextMetrics.h Fixup 145af7c2: remove unused method 2024-07-10 13:42:57 +02:00
Thesaurus.cpp
Thesaurus.h
Toc.h
TocBackend.cpp Sync with master 2022-10-26 10:52:21 +02:00
TocBackend.h Fixup LFUN_REFERENCE_TO_PARAGRAPH for captions in other buffers 2024-07-30 12:36:20 +02:00
TocBuilder.cpp Pass shared_ptr<> arguments by const reference 2024-09-13 14:54:43 +02:00
TocBuilder.h Pass shared_ptr<> arguments by const reference 2024-09-13 14:54:43 +02:00
Trans.cpp Avoid a couple copies in Trans::addDeadKeys(). 2024-09-12 17:24:32 +02:00
Trans.h Avoid a couple copies in Trans::addDeadKeys(). 2024-09-12 17:24:32 +02:00
Undo.cpp Do not run updateMacros if the buffer has not changed 2024-07-24 18:29:43 +02:00
Undo.h Add a constructor of UndoGroupHelper that uses a CursorData parameter 2024-06-20 17:52:19 +02:00
update_flags.h Move DrawStrategy enum to update_flags.h. 2024-06-18 18:26:34 +02:00
VCBackend.cpp
VCBackend.h
version.cpp
version.h Add support for the following languages 2024-08-25 13:22:07 +02:00
VSpace.cpp Sync with master 2022-10-26 10:52:21 +02:00
VSpace.h
WordLangTuple.h
WordList.cpp
WordList.h Move LYX_(BEGIN|END)_MUTE_GCC_WARNING macros to their own header. 2023-11-10 13:14:34 +01:00
xml.cpp DocBook: fix case with emphasis at end of footnote 2023-09-25 10:41:21 -04:00
xml.h DocBook: fix case with emphasis at end of footnote 2023-09-25 10:41:21 -04:00