commit ffc1976b972accc6ce48f6befaa7254a7f353156
Author: Thibaut Cuvelier <[email protected]>
Date: Sat Mar 5 03:46:22 2022 +0100
Avoid copies of vectors.
---
src/Encoding.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Encoding.h b/src/Encoding.h
index 6016f05..9668336 100644
--- a/src/Encoding.h
+++ b/src/Encoding.h
@@ -79,11 +79,11 @@ public:
/// LaTeX command (text mode) for this character
docstring textCommand() const { return text_commands_[0]; }
/// All known LaTeX commands (text mode) for this character
- std::vector<docstring> textCommands() const { return text_commands_; }
+ const std::vector<docstring>& textCommands() const { return
text_commands_; }
/// LaTeX command (math mode) for this character
docstring mathCommand() const { return math_commands_[0]; }
/// All known LaTeX commands (math mode) for this character
- std::vector<docstring> mathCommands() const { return math_commands_; }
+ const std::vector<docstring>& mathCommands() const { return
math_commands_; }
/// Needed LaTeX preamble (or feature) for text mode
std::string textPreamble() const { return text_preamble_; }
/// Needed LaTeX preamble (or feature) for math mode
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs