]> git.lyx.org Git - lyx.git/blobdiff - src/FontInfo.h
Fix small bug in reading \set_color in lyxrc
[lyx.git] / src / FontInfo.h
index 450c76c44a9bf4947a96722bcddbfe85240ef7f8..49fbbfe299eb52e0d44dab429bbbc811d82218e0 100644 (file)
@@ -30,8 +30,8 @@ public:
        FontInfo() { init(); }
 
        ///
-       FontInfo(string const & pat)
-       : pattern(pat) { init(); }
+       explicit FontInfo(string const & pat)
+               : pattern(pat) { init(); }
 
        /// Destructor
        ~FontInfo() { release(); }
@@ -80,14 +80,7 @@ private:
        int scaleindex;
 
        /// Initialize empty record
-       void init() {
-               sizes = 0;
-               strings = 0;
-               matches = 0;
-               queried = false;
-               scalable = false;
-               scaleindex = -1;
-       }
+       void init();
 
        /// Release allocated stuff
        void release();