diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-31 10:27:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-31 10:32:27 +0000 |
commit | 1b36f23b516b44ccccf64f294c35073088835e5f (patch) | |
tree | 873892c685b0a963750c52a404c87a1d2adb7a11 /xmlsecurity | |
parent | aeeabc36fd0a4a71238c8c3df2e80ea324f9bac0 (diff) |
loplugin:oncevar in xmloff..xmlsecurity
Change-Id: I2353d3c73130ed9420e8d803a9a96a06549bb6bd
Reviewed-on: https://gerrit.libreoffice.org/30429
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/secerror.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/secerror.cxx b/xmlsecurity/source/xmlsec/nss/secerror.cxx index ccc2e99338d5..1423bbbcf0fd 100644 --- a/xmlsecurity/source/xmlsec/nss/secerror.cxx +++ b/xmlsecurity/source/xmlsec/nss/secerror.cxx @@ -47,14 +47,13 @@ const ErrDesc allDesc[] = { const char * getCertError(PRErrorCode errNum) { - static const char sEmpty[] = ""; for (const ErrDesc& i : allDesc) { if (i.errNum == errNum) return i.errString; } - return sEmpty; + return ""; } void |