summaryrefslogtreecommitdiff
path: root/shell/source/backends/macbe/macbackend.mm
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/backends/macbe/macbackend.mm')
-rw-r--r--shell/source/backends/macbe/macbackend.mm4
1 files changed, 2 insertions, 2 deletions
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<CFIndex>(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<UInt16>(portInt);
if (proxyDict)
CFRelease(proxyDict);