summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2016-09-07 20:49:39 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-09-07 20:49:39 (GMT)
commitacfab9eab78c9c7d6e92736bc0d45c58de556d38 (patch)
tree9dc70b53a58bbe3a64c901cb150f644d9eb5e79c
parenta81ba38a2f0eaaf94eaa891f70f37795b4fda468 (diff)
do not use obsolete QChar::toAscii()
-rw-r--r--core/convert.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/convert.cpp b/core/convert.cpp
index 4efbe7c..ebf2f46 100644
--- a/core/convert.cpp
+++ b/core/convert.cpp
@@ -138,7 +138,7 @@ KgpgKeyAlgo toAlgo(const QString &s)
KgpgKeyTrust toTrust(const QChar &c)
{
- switch (c.toAscii()) {
+ switch (c.toLatin1()) {
case 'o':
return TRUST_UNKNOWN;
case 'i':
@@ -171,7 +171,7 @@ KgpgKeyTrust toTrust(const QString &s)
gpgme_validity_t toOwnerTrust(const QChar &c)
{
- switch (c.toAscii()) {
+ switch (c.toLatin1()) {
case 'n':
return GPGME_VALIDITY_NEVER;
case 'm':