summaryrefslogtreecommitdiff
path: root/include/salhelper
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/salhelper
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/salhelper')
-rw-r--r--include/salhelper/dynload.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/salhelper/dynload.hxx b/include/salhelper/dynload.hxx
index d4942b8b6a53..91d70c12d2a6 100644
--- a/include/salhelper/dynload.hxx
+++ b/include/salhelper/dynload.hxx
@@ -172,13 +172,13 @@ public:
/// returns a poiner to the initialized API function structure.
API* SAL_CALL getApi() const
{
- return (API*)m_pLoader->getApi();
+ return static_cast<API*>(m_pLoader->getApi());
}
/// cast operator, which cast to a poiner with the initialized API function structure.
API* SAL_CALL operator->() const
{
- return (API*)m_pLoader->getApi();
+ return static_cast<API*>(m_pLoader->getApi());
}
/// checks if the loader works on a loaded and initialized library.