diff options
Diffstat (limited to 'qt')
-rw-r--r-- | qt/poppler-document.cc | 8 | ||||
-rw-r--r-- | qt/poppler-private.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/qt/poppler-document.cc b/qt/poppler-document.cc index bae84181..cd771513 100644 --- a/qt/poppler-document.cc +++ b/qt/poppler-document.cc @@ -30,6 +30,14 @@ namespace Poppler { +static GooString *QStringToGooString(const QString &s) { + int len = s.length(); + char *cstring = (char *)gmallocn(s.length(), sizeof(char)); + for (int i = 0; i < len; ++i) + cstring[i] = s.at(i).unicode(); + return new GooString(cstring, len); +} + Document *Document::load(const QString &filePath) { if (!globalParams) { diff --git a/qt/poppler-private.h b/qt/poppler-private.h index 5a5a4213..227547ab 100644 --- a/qt/poppler-private.h +++ b/qt/poppler-private.h @@ -42,14 +42,6 @@ static QString unicodeToQString(Unicode* u, int len) { return ret; } -static GooString *QStringToGooString(const QString &s) { - int len = s.length(); - char *cstring = (char *)gmallocn(s.length(), sizeof(char)); - for (int i = 0; i < len; ++i) - cstring[i] = s.at(i).unicode(); - return new GooString(cstring, len); -} - static QString UnicodeParsedString(GooString *s1) { GBool isUnicode; int i; |