[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim
From:       Frank Osterfeld <frank.osterfeld () kdemail ! net>
Date:       2008-02-05 8:46:09
Message-ID: 1202201169.685846.6010.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 771092 by osterfeld:

Do not keep the const char* from the temporary object, spotted by Marc

 M  +9 -9      kleopatra/mainwindow.cpp  
 M  +2 -2      libkleo/backends/qgpgme/qgpgmecryptoconfig.cpp  


--- trunk/KDE/kdepim/kleopatra/mainwindow.cpp #771091:771092
@@ -92,8 +92,8 @@
 namespace {
 	QString gpgConfPath()
 	{
-		const char* path = GpgME::engineInfo( GpgME::GpgConfEngine ).fileName();
-		return path ? QFile::decodeName( path ) : KStandardDirs::findExe( "gpgconf" );
+	    const GpgME::EngineInfo info = GpgME::engineInfo( GpgME::GpgConfEngine );
+	    return info.fileName() ? QFile::decodeName( info.fileName() ) : \
KStandardDirs::findExe( "gpgconf" );  }
 
     class ProgressBar : public QProgressBar {
@@ -319,21 +319,21 @@
     const action_data action_data[] = {
         // File menu
         { "file_new_certificate", i18n("New Certificate..."), QString(),
-          "document-new", q, SLOT(newCertificate()), i18n("Ctrl+N"), false, true },
+          "document-new", q, SLOT(newCertificate()), "Ctrl+N", false, true },
         { "file_export_certificates", i18n("Export Certificates..."), QString(),
-          "document-export", q, SLOT(exportCertificates()), i18n("Ctrl+E"), false, \
true }, // ### should be disabled until selected +          "document-export", q, \
SLOT(exportCertificates()), "Ctrl+E", false, true }, // ### should be disabled until \
                selected
         { "file_import_certificates", i18n("Import Certificates..."), QString(),
-          "document-import", q, SLOT(importCertificates()), i18n("Ctrl+I"), false, \
true }, // ### should be disabled until selected +          "document-import", q, \
SLOT(importCertificates()), "Ctrl+I", false, true }, // ### should be disabled until \
selected  // View menu
-        { "view_redisplay", i18n( "Redisplay" ), QString(),
-          "view-refresh", q, SLOT(refreshCertificates()), i18n("F5"), false, true },
+        { "view_redisplay", "Redisplay", QString(),
+          "view-refresh", q, SLOT(refreshCertificates()), "F5", false, true },
         { "view_stop_operations", i18n( "Stop Operation" ), QString(),
-          "process-stop", &controller, SLOT(cancelCommands()), i18n("Escape"), \
false, false }, +          "process-stop", &controller, SLOT(cancelCommands()), \
                "Escape", false, false },
         { "view_certificate_details", i18n( "Certificate Details..." ), QString(),
           0, q, SLOT(certificateDetails()), QString(), false, true }, // ### should \
be disabled until selected  // Certificate menu
         { "certificates_validate", i18n("Validate" ), QString()/*i18n("Validate \
                selected certificates")*/,
-          "view-refresh", q, SLOT(validateCertificates()), i18n("SHIFT+F5"), false, \
true }, +          "view-refresh", q, SLOT(validateCertificates()), "SHIFT+F5", \
false, true },  // CRLs menu
         // Tools menu
         // Window menu
--- trunk/KDE/kdepim/libkleo/backends/qgpgme/qgpgmecryptoconfig.cpp #771091:771092
@@ -67,8 +67,8 @@
 
 QString QGpgMECryptoConfig::gpgConfPath()
 {
-    const char* path = GpgME::engineInfo( GpgME::GpgConfEngine ).fileName();
-    return path ? QFile::decodeName( path ) : KStandardDirs::findExe( "gpgconf" );
+    const GpgME::EngineInfo info = GpgME::engineInfo( GpgME::GpgConfEngine );
+    return info.fileName() ? QFile::decodeName( info.fileName() ) : \
KStandardDirs::findExe( "gpgconf" );  }
 
 QGpgMECryptoConfig::QGpgMECryptoConfig()


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic