summaryrefslogtreecommitdiff
path: root/include/vcl/alpha.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-28 08:58:48 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-09-07 02:42:30 -0500
commited75aa271956824c89b7c9df2c06e4ad09a74734 (patch)
tree432c17088789736364b2932b9085e5b17a8cc71a /include/vcl/alpha.hxx
parent5ca2d1e26513095670b3fd2dce6a464a415cab89 (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 'include/vcl/alpha.hxx')
-rw-r--r--include/vcl/alpha.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/alpha.hxx b/include/vcl/alpha.hxx
index de3b4513e4f8..bd8ce8a10b9c 100644
--- a/include/vcl/alpha.hxx
+++ b/include/vcl/alpha.hxx
@@ -51,7 +51,7 @@ public:
AlphaMask& operator=( const Bitmap& rBitmap );
AlphaMask& operator=( const AlphaMask& rAlphaMask )
{
- return (AlphaMask&) Bitmap::operator=( rAlphaMask );
+ return static_cast<AlphaMask&>( Bitmap::operator=( rAlphaMask ) );
}
bool operator!() const