From 443a5c25db02aa7ac505fdc3b0fa60c1d584a5f1 Mon Sep 17 00:00:00 2001 From: Daniel Neus Date: Mon, 4 Jan 2016 21:35:24 +0100 Subject: String comparision fixes fix PVS-Studio perfomance warnings --- src/lib/cert/x509/x509_ext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/cert/x509/x509_ext.h') diff --git a/src/lib/cert/x509/x509_ext.h b/src/lib/cert/x509/x509_ext.h index 2ed892055..0ce49231a 100644 --- a/src/lib/cert/x509/x509_ext.h +++ b/src/lib/cert/x509/x509_ext.h @@ -295,7 +295,7 @@ class BOTAN_DLL Authority_Information_Access : public Certificate_Extension std::string oid_name() const override { return "PKIX.AuthorityInformationAccess"; } - bool should_encode() const override { return (m_ocsp_responder != ""); } + bool should_encode() const override { return (!m_ocsp_responder.empty()); } std::vector encode_inner() const override; void decode_inner(const std::vector&) override; -- cgit v1.2.3