From 6c5cef203bfeef3c26043e13ddd23c01da589fe1 Mon Sep 17 00:00:00 2001 From: Elvio Basello Date: Sat, 14 Aug 2010 02:46:11 +0000 Subject: improved hungarian notation; cleaned code; git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4869 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/dcc/chat.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/modules/dcc/chat.cpp') diff --git a/src/modules/dcc/chat.cpp b/src/modules/dcc/chat.cpp index e08f6bfa4..c1fdc03de 100644 --- a/src/modules/dcc/chat.cpp +++ b/src/modules/dcc/chat.cpp @@ -305,13 +305,13 @@ void KviDccChat::ownMessage(const QString &text, bool bUserFeedback) #ifdef COMPILE_CRYPT_SUPPORT if(cryptSessionInfo()) { - if(cryptSessionInfo()->bDoEncrypt) + if(cryptSessionInfo()->m_bDoEncrypt) { if(*d != KVI_TEXT_CRYPTESCAPE) { KviStr encrypted; - cryptSessionInfo()->pEngine->setMaxEncryptLen(-1); - switch(cryptSessionInfo()->pEngine->encrypt(d,encrypted)) + cryptSessionInfo()->m_pEngine->setMaxEncryptLen(-1); + switch(cryptSessionInfo()->m_pEngine->encrypt(d,encrypted)) { case KviCryptEngine::Encrypted: { @@ -338,7 +338,7 @@ void KviDccChat::ownMessage(const QString &text, bool bUserFeedback) break; default: // also case KviCryptEngine::EncryptError { - QString szErr = cryptSessionInfo()->pEngine->lastError(); + QString szErr = cryptSessionInfo()->m_pEngine->lastError(); output(KVI_OUT_SYSTEMERROR, __tr2qs_ctx("The crypto engine was not able to encrypt the current message (%Q): %Q, no data was sent to the remote end","dcc"), &text,&szErr); @@ -450,10 +450,10 @@ bool KviDccChat::event(QEvent *e) #ifdef COMPILE_CRYPT_SUPPORT if(KviCryptSessionInfo * cinf = cryptSessionInfo()) { - if(cinf->bDoDecrypt) + if(cinf->m_bDoDecrypt) { KviStr decryptedStuff; - switch(cinf->pEngine->decrypt(d.ptr(),decryptedStuff)) + switch(cinf->m_pEngine->decrypt(d.ptr(),decryptedStuff)) { case KviCryptEngine::DecryptOkWasEncrypted: case KviCryptEngine::DecryptOkWasEncoded: @@ -470,7 +470,7 @@ bool KviDccChat::event(QEvent *e) default: // also case KviCryptEngine::DecryptError { - QString szErr = cinf->pEngine->lastError(); + QString szErr = cinf->m_pEngine->lastError(); output(KVI_OUT_SYSTEMERROR, __tr2qs_ctx("The following message appears to be encrypted, but the crypto engine failed to decode it: %Q","dcc"), &szErr); -- cgit v1.3.1-10-gc9f91