]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.h
Fix scale parameter for fonts.
[lyx.git] / src / Encoding.h
index 5f788f936502c26df7db74b91a2b8229a83d1a0a..735119795ff00bac69c5b6efee86df72905908f4 100644 (file)
@@ -57,11 +57,11 @@ enum CharInfoFlags {
 /// Information about a single UCS4 character
 class CharInfo {
 public:
-       CharInfo() {}
+       CharInfo() : flags_(0) {}
        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);
        // we assume that at least one command is nonempty when using unicodesymbols
        bool isUnicodeSymbol() const { return !textcommand_.empty() || !mathcommand_.empty(); }
        /// LaTeX command (text mode) for this character
@@ -121,7 +121,7 @@ public:
        /// Represent any of the above packages
        static int const any;
        ///
-       Encoding() {}
+       Encoding() : fixedwidth_(true), unsafe_(false), complete_(false) {}
        ///
        Encoding(std::string const & n, std::string const & l,
                 std::string const & g, std::string const & i,
@@ -164,7 +164,7 @@ public:
         * \p dryrun specifies whether the string is used within source
         * preview (which yields a special warning).
         */
-       std::pair<docstring, docstring> latexString(docstring const input,
+       std::pair<docstring, docstring> latexString(docstring const input,
                                                    bool dryrun = false) const;
        /// Which LaTeX package handles this encoding?
        Package package() const { return package_; }