Removed TQStringToGString, which is fundamentally wrong.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 2c146f492c)
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
r14.0.x
Michele Calgaro 6 years ago committed by Slávek Banko
parent 6cbd70ecc6
commit 3122f6c7dc
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -524,14 +524,6 @@ bool PDFGenerator::print( KPrinter& printer )
}
}
static GString *TQStringToGString(const TQString &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 GString(cstring, len);
}
static TQString unicodeToTQString(Unicode* u, int len) {
TQString ret;
ret.setLength(len);
@ -586,7 +578,7 @@ TQString PDFGenerator::getMetaData( const TQString & key, const TQString & optio
// asking for the page related to a 'named link destination'. the
// option is the link name. @see addSynopsisChildren.
DocumentViewport viewport;
GString * namedDest = TQStringToGString(option);
GString * namedDest = new GString( option.utf8() );
docLock.lock();
LinkDest * destination = pdfdoc->findDest( namedDest );
if ( destination )

Loading…
Cancel
Save