Mercurial > trustbridge
comparison ui/certificate.cpp @ 547:bf445b0e1126
Certificate: initialising member variable mEditable in the constructors.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Fri, 16 May 2014 10:16:42 +0200 |
parents | fb47bab4c71a |
children | 320a64d58e62 |
comparison
equal
deleted
inserted
replaced
546:da00099aef5d | 547:bf445b0e1126 |
---|---|
87 .arg(QLocale::system().toString(mValidTo)); | 87 .arg(QLocale::system().toString(mValidTo)); |
88 | 88 |
89 } | 89 } |
90 | 90 |
91 Certificate::Certificate(const QByteArray& derData) : | 91 Certificate::Certificate(const QByteArray& derData) : |
92 mValid(false) | 92 mValid(false), |
93 mEditable(false) | |
93 { | 94 { |
94 if (derData.isEmpty()) { | 95 if (derData.isEmpty()) { |
95 return; | 96 return; |
96 } | 97 } |
97 | 98 |
102 /* Default is installation for new certificates */ | 103 /* Default is installation for new certificates */ |
103 mBaseLine = QString::fromLatin1("I:") + derData.toBase64(); | 104 mBaseLine = QString::fromLatin1("I:") + derData.toBase64(); |
104 } | 105 } |
105 | 106 |
106 Certificate::Certificate(const QString& b64Line) : | 107 Certificate::Certificate(const QString& b64Line) : |
107 mValid(false) | 108 mValid(false), |
109 mEditable(false) | |
108 { | 110 { |
109 if (b64Line.isEmpty()) { | 111 if (b64Line.isEmpty()) { |
110 return; | 112 return; |
111 } | 113 } |
112 | 114 |