diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-01 15:54:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-02 10:45:01 +0100 |
commit | 455e4011f7052c5d1fb4693a573e0998cf6badc8 (patch) | |
tree | ce9b3b511a3b61b936af7a4970ab4bcbaf620628 /idlc | |
parent | cee129bf17bd604f96e3cfe62d3a55336e248ccd (diff) |
improve constparam loplugin
lots of little fixes to make the logic less pessimistic
Change-Id: If368822984250b11b98c56f5890177a1402e8660
Reviewed-on: https://gerrit.libreoffice.org/44168
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/inc/errorhandler.hxx | 2 | ||||
-rw-r--r-- | idlc/source/errorhandler.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/idlc/inc/errorhandler.hxx b/idlc/inc/errorhandler.hxx index a1e1a8729ba4..1700bdbf8060 100644 --- a/idlc/inc/errorhandler.hxx +++ b/idlc/inc/errorhandler.hxx @@ -94,7 +94,7 @@ public: // Report a failed name lookup attempt static void lookupError(const OString& n); // Report a failed name lookup attempt - static void lookupError(ErrorCode e, const OString& n, AstDeclaration* pScope); + static void lookupError(ErrorCode e, const OString& n, AstDeclaration const * pScope); // Report a type error diff --git a/idlc/source/errorhandler.cxx b/idlc/source/errorhandler.cxx index 53339318ec91..3700b576703d 100644 --- a/idlc/source/errorhandler.cxx +++ b/idlc/source/errorhandler.cxx @@ -487,7 +487,7 @@ void ErrorHandler::lookupError(const OString& n) idlc()->incErrorCount(); } -void ErrorHandler::lookupError(ErrorCode e, const OString& n, AstDeclaration* pScope) +void ErrorHandler::lookupError(ErrorCode e, const OString& n, AstDeclaration const * pScope) { errorHeader(e); fprintf(stderr, "'%s' in '%s'\n", n.getStr(), pScope->getFullName().getStr()); |