Mercurial > trustbridge
changeset 78:2f5db8c70bc2
Constify
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 19 Mar 2014 16:35:13 +0000 |
parents | 056ddb71a310 |
children | 1dd8e91972a8 |
files | ui/certificate.cpp ui/certificate.h |
diffstat | 2 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/certificate.cpp Wed Mar 19 16:33:46 2014 +0000 +++ b/ui/certificate.cpp Wed Mar 19 16:35:13 2014 +0000 @@ -1,9 +1,6 @@ #include "certificate.h" #include <QObject> -QString Certificate::shortDescription() { - if (!isValid()) { - return QObject::tr("Invalid Certificate"); - } +const QString& Certificate::shortDescription() const { return mShortDescription; }
--- a/ui/certificate.h Wed Mar 19 16:33:46 2014 +0000 +++ b/ui/certificate.h Wed Mar 19 16:35:13 2014 +0000 @@ -24,7 +24,7 @@ ~Certificate(); /** @brief check if this certificate could be parsed */ - bool isValid() {return mValid;} + bool isValid() const {return mValid;} /** @brief get a short description of the certificate *