summaryrefslogtreecommitdiff
path: root/sal/osl/unx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-19 17:45:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-20 10:45:48 +0100
commitfc528a468061e165ee29f0ca450245331da3ef93 (patch)
tree150188c8939379c0134cc827ad94e2225cb8d4a8 /sal/osl/unx
parent0b87fdcad55d1927241073bc15c174168c5e0c1d (diff)
More loplugin:cstylecast on macOS
Automatic rewrite (of loplugin:cstylecast and loplugin:unnecessaryparen) after cab0427cadddb3aaf1349c66f2fa13a4234ba4b2 "Enable loplugin:cstylecast for some more cases" and a409d32e7f6fc09e041079d6dbc3c927497adfed "More loplugin:cstylecast" Change-Id: Iff4877e8a42804c952c48c13332caf0a83c92870 Reviewed-on: https://gerrit.libreoffice.org/48216 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/osl/unx')
-rw-r--r--sal/osl/unx/file_volume.cxx2
-rw-r--r--sal/osl/unx/time.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/file_volume.cxx b/sal/osl/unx/file_volume.cxx
index 103202b12310..d6c7f76442e9 100644
--- a/sal/osl/unx/file_volume.cxx
+++ b/sal/osl/unx/file_volume.cxx
@@ -124,7 +124,7 @@ oslFileError osl_getVolumeInformation( rtl_uString* ustrDirectoryURL, oslVolumeI
#if defined(FREEBSD) || defined(MACOSX) || defined(OPENBSD) || defined(DRAGONFLY)
# define OSL_detail_STATFS_STRUCT struct statfs
# define OSL_detail_STATFS(dir, sfs) statfs((dir), (sfs))
-# define OSL_detail_STATFS_BLKSIZ(a) ((sal_uInt64)((a).f_bsize))
+# define OSL_detail_STATFS_BLKSIZ(a) (static_cast<sal_uInt64>((a).f_bsize))
# define OSL_detail_STATFS_TYPENAME(a) ((a).f_fstypename)
#if defined(OPENBSD)
# define OSL_detail_STATFS_ISREMOTE(a) (rtl_str_compare((a).f_fstypename, "nfs") == 0)
diff --git a/sal/osl/unx/time.cxx b/sal/osl/unx/time.cxx
index 4e42e2dcac9a..4bd3003ef7d5 100644
--- a/sal/osl/unx/time.cxx
+++ b/sal/osl/unx/time.cxx
@@ -288,7 +288,7 @@ sal_uInt32 SAL_CALL osl_getGlobalTimer()
mach_port_deallocate(mach_task_self(), cclock);
nSeconds = ( currentTime.tv_sec - startTime.tv_sec );
- nSeconds = ( nSeconds * 1000 ) + (long) (( currentTime.tv_nsec - startTime.tv_nsec) / 1000000 );
+ nSeconds = ( nSeconds * 1000 ) + static_cast<long>(( currentTime.tv_nsec - startTime.tv_nsec) / 1000000 );
#else
osl_time_t currentTime;