]> git.lyx.org Git - lyx.git/blobdiff - src/Font.h
Avoid null pointer dereference
[lyx.git] / src / Font.h
index 9b08c8387c210c55d658d1412e26f165eb433e97..b59f015eca7d9318deb5ec513f6755681c45e453 100644 (file)
@@ -76,8 +76,8 @@ public:
                                   OutputParams const & runparams,
                                   Font const & base,
                                   Font const & prev,
-                                  bool const & non_inherit_inset = false,
-                                  bool const & needs_cprotection = false) const;
+                                  bool non_inherit_inset = false,
+                                  bool needs_cprotection = false) const;
 
        /** Writes the tail of the LaTeX needed to change to this font.
            Returns number of chars written. Base is the font state we want
@@ -88,7 +88,7 @@ public:
                                 Font const & base,
                                 Font const & next,
                                 bool & needPar,
-                                bool const & closeLanguage = true) const;
+                                bool closeLanguage = true) const;
 
 
        /// Build GUI description of font state
@@ -119,6 +119,9 @@ private:
        mutable bool open_encoding_;
 };
 
+///
+std::ostream & operator<<(std::ostream & os, FontInfo const & f);
+
 
 ///
 inline