From 358d9e899a115389549ab081f0f3571e703cc519 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Dec 2018 00:21:56 +0900 Subject: Adapted to new KPasswordEdit::password() signature. This relates to bug 2961. Signed-off-by: Michele Calgaro --- kpdf/core/generator_pdf/generator_pdf.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ); } } -- cgit v1.2.3