Commit 23685aab authored by Albert Astals Cid's avatar Albert Astals Cid

Make GfxFont constructor protected

You're not supposed to create a GfxFont by itself
parent dc429f03
......@@ -173,9 +173,6 @@ public:
// Build a GfxFont object.
static GfxFont *makeFont(XRef *xref, const char *tagA, Ref idA, Dict *fontDict);
GfxFont(const char *tagA, Ref idA, const GooString *nameA,
GfxFontType typeA, Ref embFontIDA);
GfxFont(const GfxFont &) = delete;
GfxFont& operator=(const GfxFont &other) = delete;
......@@ -285,6 +282,7 @@ public:
static const char *getAlternateName(const char *name);
protected:
GfxFont(const char *tagA, Ref idA, const GooString *nameA, GfxFontType typeA, Ref embFontIDA);
virtual ~GfxFont();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment