summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cc
diff options
context:
space:
mode:
authorOBATA Akio <[email protected]>2019-01-14 17:33:41 +0900
committerSlávek Banko <[email protected]>2019-01-20 03:48:52 +0100
commit2b3cfb41231b4172c7f64e984395d56653927ee0 (patch)
treec0ca02c4808c460078bceac8bca9b71a9e9a62fb /tdefile-plugins/dependencies/poppler-tqt/poppler-page.cc
parent11532d48b2fccf95810c0be02482c16a1886d316 (diff)
downloadtdegraphics-2b3cfb41231b4172c7f64e984395d56653927ee0.tar.gz
tdegraphics-2b3cfb41231b4172c7f64e984395d56653927ee0.zip
Add support for Poppler >= 0.72
GooString::getCString was renamed to GooString::c_str. Signed-off-by: OBATA Akio <[email protected]> (cherry picked from commit 9d8dc2222029d2a644a8d86ccdd1f08fa05d01d0)
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-page.cc')
-rw-r--r--tdefile-plugins/dependencies/poppler-tqt/poppler-page.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cc b/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cc
index 2d83f924..4293b7ce 100644
--- a/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cc
+++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-page.cc
@@ -151,7 +151,7 @@ TQString Page::getText(const Rectangle &r) const
s = output_dev->getText(r.m_x1, y1, r.m_x2, y2);
}
- result = TQString::fromUtf8(s->getCString());
+ result = TQString::fromUtf8(s->GOO_GET_CSTR());
delete output_dev;
delete s;
@@ -183,7 +183,7 @@ TQValueList<TextBox*> Page::textList() const
for (int i = 0; i < word_list->getLength(); i++) {
TextWord *word = word_list->get(i);
GooString *word_str = word->getText();
- TQString string = TQString::fromUtf8(word_str->getCString());
+ TQString string = TQString::fromUtf8(word_str->GOO_GET_CSTR());
delete word_str;
double xMin, yMin, xMax, yMax;
word->getBBox(&xMin, &yMin, &xMax, &yMax);
@@ -303,13 +303,13 @@ TQValueList<Link*> Page::links() const
{
LinkLaunch * e = (LinkLaunch *)a;
GooString * p = e->getParams();
- popplerLink = new LinkExecute( linkArea, e->getFileName()->getCString(), p ? p->getCString() : 0 );
+ popplerLink = new LinkExecute( linkArea, e->getFileName()->GOO_GET_CSTR(), p ? p->GOO_GET_CSTR() : 0 );
}
break;
case actionNamed:
{
- const char * name = ((LinkNamed *)a)->getName()->getCString();
+ const char * name = ((LinkNamed *)a)->getName()->GOO_GET_CSTR();
if ( !strcmp( name, "NextPage" ) )
popplerLink = new LinkAction( linkArea, LinkAction::PageNext );
else if ( !strcmp( name, "PrevPage" ) )
@@ -346,7 +346,7 @@ TQValueList<Link*> Page::links() const
case actionURI:
{
- popplerLink = new LinkBrowse( linkArea, ((LinkURI *)a)->getURI()->getCString() );
+ popplerLink = new LinkBrowse( linkArea, ((LinkURI *)a)->getURI()->GOO_GET_CSTR() );
}
break;