[Pkg-owncloud-commits] [qtkeychain] 09/63: OS X: Simplify string

Sandro Knauß hefee at debian.org
Sat Jun 10 14:39:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

hefee pushed a commit to branch master
in repository qtkeychain.

commit 5b6389b5676011f9a6ab3fac263db4052171db7e
Author: Frank Osterfeld <frank.osterfeld at kdab.com>
Date:   Thu Jul 28 11:35:25 2016 +0200

    OS X: Simplify string
    
    Avoid arg() where not necessary. Also fixes the build when disabling
    implicit ASCII<->QString conversions.
---
 keychain_mac.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/keychain_mac.cpp b/keychain_mac.cpp
index 9e04ee8..23783c9 100644
--- a/keychain_mac.cpp
+++ b/keychain_mac.cpp
@@ -28,8 +28,7 @@ static QString strForStatus( OSStatus os ) {
     const Releaser<CFStringRef> str( SecCopyErrorMessageString( os, 0 ) );
     const char * const buf = CFStringGetCStringPtr( str.value,  kCFStringEncodingUTF8 );
     if ( !buf )
-        return QObject::tr( "%1 (OSStatus %2)" )
-                .arg( "OSX Keychain Error" ).arg( os );
+        return QObject::tr( "OS X Keychain error (OSStatus %1)" ).arg( os );
     return QObject::tr( "%1 (OSStatus %2)" )
             .arg( QString::fromUtf8( buf, strlen( buf ) ) ).arg( os );
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/qtkeychain.git



More information about the Pkg-owncloud-commits mailing list