diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-28 08:58:48 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-09-07 02:42:30 -0500 |
commit | ed75aa271956824c89b7c9df2c06e4ad09a74734 (patch) | |
tree | 432c17088789736364b2932b9085e5b17a8cc71a /idlc/source/aststruct.cxx | |
parent | 5ca2d1e26513095670b3fd2dce6a464a415cab89 (diff) |
create clang plugin to warn about C-style casts
We don't like C-style casts in our nice C++ code
Change-Id: I94e7ec90de9275cd6e20c4146d4f3a74bed93c9d
Reviewed-on: https://gerrit.libreoffice.org/10367
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'idlc/source/aststruct.cxx')
-rw-r--r-- | idlc/source/aststruct.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/idlc/source/aststruct.cxx b/idlc/source/aststruct.cxx index abc4bfed843b..7c42d1692ad0 100644 --- a/idlc/source/aststruct.cxx +++ b/idlc/source/aststruct.cxx @@ -131,7 +131,7 @@ bool AstStruct::dump(RegistryKey& rKey) pDecl = *iter; if ( pDecl->getNodeType() == NT_member ) { - pMember = (AstMember*)pDecl; + pMember = static_cast<AstMember*>(pDecl); RTFieldAccess flags = RT_ACCESS_READWRITE; OString typeName; if (pMember->getType()->getNodeType() == NT_type_parameter) { |