From fc528a468061e165ee29f0ca450245331da3ef93 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 19 Jan 2018 17:45:53 +0100 Subject: 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 Reviewed-by: Stephan Bergmann --- shell/source/backends/macbe/macbackend.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell/source/backends') diff --git a/shell/source/backends/macbe/macbackend.mm b/shell/source/backends/macbe/macbackend.mm index 5c5c0cfafae7..56a7ca2cc2de 100644 --- a/shell/source/backends/macbe/macbackend.mm +++ b/shell/source/backends/macbe/macbackend.mm @@ -106,7 +106,7 @@ bool GetProxySetting(ServiceType sType, char *host, size_t hostSize, UInt16 *por } if (result) - result = CFStringGetCString(hostStr, host, (CFIndex) hostSize, kCFStringEncodingASCII); + result = CFStringGetCString(hostStr, host, static_cast(hostSize), kCFStringEncodingASCII); // Get proxy port if (result) @@ -126,7 +126,7 @@ bool GetProxySetting(ServiceType sType, char *host, size_t hostSize, UInt16 *por result = CFNumberGetValue(portNum, kCFNumberIntType, &portInt); if (result) - *port = (UInt16) portInt; + *port = static_cast(portInt); if (proxyDict) CFRelease(proxyDict); -- cgit