diff options
author | OBATA Akio <[email protected]> | 2019-01-14 17:33:41 +0900 |
---|---|---|
committer | OBATA Akio <[email protected]> | 2019-01-14 17:33:41 +0900 |
commit | 9d8dc2222029d2a644a8d86ccdd1f08fa05d01d0 (patch) | |
tree | 38e809794b319b9da32c5374a0b82d574cb6d9d3 /tdefile-plugins/dependencies/poppler-tqt/poppler-private.cc | |
parent | f47d27d00c97cffec8983d6f31b95b87d2f03f33 (diff) | |
download | tdegraphics-9d8dc2222029d2a644a8d86ccdd1f08fa05d01d0.tar.gz tdegraphics-9d8dc2222029d2a644a8d86ccdd1f08fa05d01d0.zip |
Add support for Poppler >= 0.72
GooString::getCString was renamed to GooString::c_str.
Signed-off-by: OBATA Akio <[email protected]>
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-private.cc')
-rw-r--r-- | tdefile-plugins/dependencies/poppler-tqt/poppler-private.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cc b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cc index f945f267..e69d46c4 100644 --- a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cc +++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.cc @@ -119,7 +119,7 @@ void DocumentData::addTocChildren( TQDomDocument * docSyn, TQDomNode * parent, C // so better storing the reference and provide the viewport on demand CONST_064 GooString *s = g->getNamedDest(); TQChar *charArray = new TQChar[s->getLength()]; - for (int i = 0; i < s->getLength(); ++i) charArray[i] = TQChar(s->getCString()[i]); + for (int i = 0; i < s->getLength(); ++i) charArray[i] = TQChar(s->GOO_GET_CSTR()[i]); TQString aux(charArray, s->getLength()); item.setAttribute( "DestinationName", aux ); delete[] charArray; @@ -132,7 +132,7 @@ void DocumentData::addTocChildren( TQDomDocument * docSyn, TQDomNode * parent, C if ( a->getKind() == actionGoToR ) { CONST_064 LinkGoToR * g2 = static_cast< CONST_064 LinkGoToR * >( a ); - item.setAttribute( "ExternalFileName", g2->getFileName()->getCString() ); + item.setAttribute( "ExternalFileName", g2->getFileName()->GOO_GET_CSTR() ); } } |