]> git.lyx.org Git - lyx.git/blobdiff - src/FontInfo.h
Small fix.
[lyx.git] / src / FontInfo.h
index c3c30d9033876b9a790a9b042e8bd544f28f26ab..49fbbfe299eb52e0d44dab429bbbc811d82218e0 100644 (file)
@@ -22,7 +22,7 @@
 The idea is to create a FontInfo object with a font name pattern with a 
 wildcard at the size field. Then this object can host request for font-
 instances of any given size. If no exact match is found, the closest size
-is chosen instead. If the font is scalable, the flag lyxrc->use_scalable_fonts
+is chosen instead. If the font is scalable, the flag lyxrc.use_scalable_fonts
 determines whether to allow scalable fonts to give an exact match. */
 class FontInfo {
 public:
@@ -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();