]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.h
Fix uninitialized value revealed by Coverity
[lyx.git] / src / Encoding.h
index 0f6e8ff4386b8b4b6f269f3ecd815cd96ce49f1a..ed1ec475b2c89d1c1e8802c9be6b76b942845e34 100644 (file)
@@ -130,7 +130,7 @@ public:
        /// Represent any of the above packages
        static int const any;
        ///
-       Encoding() : fixedwidth_(true), unsafe_(false), forced_(0), 
+       Encoding() : fixedwidth_(true), unsafe_(false), forced_(0),
                     start_encodable_(0), package_(none), complete_(false) {}
        ///
        Encoding(std::string const & n, std::string const & l,
@@ -280,6 +280,9 @@ public:
         * \p c is a known character matching the preamble entry.
         */
        static bool isKnownScriptChar(char_type const c, std::string & preamble);
+       /// Do we need to wrap scripts into \text<script> macros?
+       static bool needsScriptWrapper(std::string const & script,
+                                      std::string const & fontenc);
        /**
         * Do we have to display in italics this character when in mathmode?
         * This is true if the "mathalpha" flag is set. We use this for