diff options
author | jsala <javier.salamanca.munoz@gmail.com> | 2022-06-24 18:46:25 +0200 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-09-05 18:57:53 +0200 |
commit | 8dc57426c3bd3385c30b9007991af8496b315f9a (patch) | |
tree | 4a8d98f17a9e25fa10616b0ed596719af6baf736 /desktop/source/deployment/misc/dp_misc.cxx | |
parent | 9b7600f547cec9ed1bacca3a1b995b3c33fd5723 (diff) |
tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
Also change some integer by std::size_t
Change-Id: Ia51b27bb99b8adda576394f9331345cb11149d6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137274
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'desktop/source/deployment/misc/dp_misc.cxx')
-rw-r--r-- | desktop/source/deployment/misc/dp_misc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/deployment/misc/dp_misc.cxx b/desktop/source/deployment/misc/dp_misc.cxx index f4437711dab5..df94e958292b 100644 --- a/desktop/source/deployment/misc/dp_misc.cxx +++ b/desktop/source/deployment/misc/dp_misc.cxx @@ -416,7 +416,7 @@ OUString generateRandomPipeId() throw RuntimeException( "cannot create random pool!?", nullptr ); sal_uInt8 bytes[ 32 ]; if (rtl_random_getBytes( - s_hPool, bytes, SAL_N_ELEMENTS(bytes) ) != rtl_Random_E_None) { + s_hPool, bytes, std::size(bytes) ) != rtl_Random_E_None) { throw RuntimeException( "random pool error!?", nullptr ); } OUStringBuffer buf; |