summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-11-28 00:52:25 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-11-28 00:53:17 +0100
commit23685aab67b28b6158bce27628fe6fc58adaec1c (patch)
tree5b9c64d2e138f26fbe18e440a70a4e6c8af7aac8
parentdc429f039fe9db5989e14f57b4cc7395be4d506d (diff)
Make GfxFont constructor protected
You're not supposed to create a GfxFont by itself
-rw-r--r--poppler/GfxFont.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/poppler/GfxFont.h b/poppler/GfxFont.h
index 42c462e7..0af943a6 100644
--- a/poppler/GfxFont.h
+++ b/poppler/GfxFont.h
@@ -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();