summaryrefslogtreecommitdiff
path: root/sal/rtl/random.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:27:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:27:22 +0200
commit30b089fe491b391931470e960b4af2ccaca9408a (patch)
tree268669b4faa689c048abe489ac4581c846ebe80c /sal/rtl/random.cxx
parente56bec5ccd7bdd91e0389381dc4e2f1e48f2c32d (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Ibd373cddb1e25f05528e627349953b5f7d115330
Diffstat (limited to 'sal/rtl/random.cxx')
-rw-r--r--sal/rtl/random.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/rtl/random.cxx b/sal/rtl/random.cxx
index 0a5638f57423..1f6d2b42d4cd 100644
--- a/sal/rtl/random.cxx
+++ b/sal/rtl/random.cxx
@@ -268,17 +268,17 @@ static void __rtl_random_readPool (
*/
rtlRandomPool SAL_CALL rtl_random_createPool() SAL_THROW_EXTERN_C()
{
- RandomPool_Impl *pImpl = (RandomPool_Impl*)NULL;
+ RandomPool_Impl *pImpl = nullptr;
pImpl = static_cast<RandomPool_Impl*>(rtl_allocateZeroMemory (sizeof(RandomPool_Impl)));
if (pImpl)
{
if (!__rtl_random_initPool (pImpl))
{
rtl_freeZeroMemory (pImpl, sizeof(RandomPool_Impl));
- pImpl = (RandomPool_Impl*)NULL;
+ pImpl = nullptr;
}
}
- return (rtlRandomPool)pImpl;
+ return static_cast<rtlRandomPool>(pImpl);
}
/*