]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.cpp
Fix overflow of inset over text (see #9224)
[lyx.git] / src / Encoding.cpp
index e4bbbc044abeccaa12d9eb9fbd3bcedd6115a2c0..4a8faf1f7861656d8c15d1895b1976940e684a33 100644 (file)
@@ -73,9 +73,9 @@ const char * EncodingException::what() const throw()
 
 
 CharInfo::CharInfo(
-       docstring const textcommand, docstring const mathcommand,
-       std::string const textpreamble, std::string const mathpreamble,
-       std::string const tipashortcut, unsigned int flags)
+       docstring const & textcommand, docstring const & mathcommand,
+       std::string const & textpreamble, std::string const & mathpreamble,
+       std::string const tipashortcut, unsigned int flags)
        : textcommand_(textcommand), mathcommand_(mathcommand),
          textpreamble_(textpreamble), mathpreamble_(mathpreamble),
          tipashortcut_(tipashortcut), flags_(flags)
@@ -196,7 +196,7 @@ pair<docstring, bool> Encoding::latexChar(char_type c) const
 }
 
 
-pair<docstring, docstring> Encoding::latexString(docstring const input, bool dryrun) const
+pair<docstring, docstring> Encoding::latexString(docstring const input, bool dryrun) const
 {
        docstring result;
        docstring uncodable;