diff --git a/kpdf/core/generator_pdf/generator_pdf.cpp b/kpdf/core/generator_pdf/generator_pdf.cpp index 3e309fc5..12e7fd0b 100644 --- a/kpdf/core/generator_pdf/generator_pdf.cpp +++ b/kpdf/core/generator_pdf/generator_pdf.cpp @@ -114,7 +114,7 @@ bool PDFGenerator::loadDocument( const TQString & filePath, TQValueVectorisOk() && pdfdoc->getErrorCode() == errEncrypted ) { - TQCString password; + TQString password; // 1.A. try to retrieve the first password from the kde wallet system if ( !triedWallet ) @@ -131,7 +131,7 @@ bool PDFGenerator::loadDocument( const TQString & filePath, TQValueVectorreadPassword( filePath.section('/', -1, -1), retrievedPass ) ) - password = retrievedPass.local8Bit(); + password = retrievedPass; } triedWallet = true; } @@ -152,7 +152,7 @@ bool PDFGenerator::loadDocument( const TQString & filePath, TQValueVectorisOk() && wallet && /*safety check*/ wallet->isOpen() && keep > 0 ) { - TQString goodPass = TQString::fromLocal8Bit( password.data() ); + TQString goodPass = password; wallet->writePassword( filePath.section('/', -1, -1), goodPass ); } }