From db04585533cc0f5971f6238c18ae7cadcf31d930 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 25 Oct 2017 16:11:34 +0200 Subject: loplugin:constmethod in basegfx,sot Change-Id: I05d2cdefb7faf489ec29ba28dc5e3c28d08b9780 Reviewed-on: https://gerrit.libreoffice.org/43863 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/vcl/errcode.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/vcl/errcode.hxx b/include/vcl/errcode.hxx index 6b6ffdede306..9db4587baae0 100644 --- a/include/vcl/errcode.hxx +++ b/include/vcl/errcode.hxx @@ -100,7 +100,7 @@ public: return ErrCode(m_value | ERRCODE_WARNING_MASK); } - bool IsError() { + bool IsError() const { return m_value && !IsWarning(); } -- cgit