diff --git a/App/Find on Page/FindOnPageViewController.swift b/App/Find on Page/FindOnPageViewController.swift index 0588642..e21a12e 100644 --- a/App/Find on Page/FindOnPageViewController.swift +++ b/App/Find on Page/FindOnPageViewController.swift @@ -95,11 +95,11 @@ class FindOnPageViewController: UIViewController, _WKFindDelegate // ?? } - func _webView(_ webView: WKWebView!, didCountMatches matches: UInt, for string: String!) { + private func _webView(_ webView: WKWebView!, didCountMatches matches: UInt, for string: String!) { // TODO: Update a label } - func _webView(_ webView: WKWebView!, didFindMatches matches: UInt, for string: String!, withMatch matchIndex: Int) { + private func _webView(_ webView: WKWebView!, didFindMatches matches: UInt, for string: String!, withMatch matchIndex: Int) { findOnPageView.nextResultButton.isEnabled = matches > 0 findOnPageView.prevResultButton.isEnabled = matches > 0 } diff --git a/App/Hacks/MFMailComposeViewControllerFix.m b/App/Hacks/MFMailComposeViewControllerFix.m index 35283dc..c8f0972 100644 --- a/App/Hacks/MFMailComposeViewControllerFix.m +++ b/App/Hacks/MFMailComposeViewControllerFix.m @@ -20,7 +20,7 @@ static void swizzleClassMethod(Class targetClass, SEL originalSelector, IMP repl } __attribute__((constructor)) -static void swizzleMFMailComposeViewController() +static void swizzleMFMailComposeViewController(void) { // Hacks to work around the fact that MFMailComposeViewController is broken in iOS 14+ swizzleClassMethod(MFMailComposeViewController.class, @selector(canSendMail), imp_implementationWithBlock(^BOOL(void) { diff --git a/App/Settings/GeneralSettingsViewController.swift b/App/Settings/GeneralSettingsViewController.swift index 7a78afd..e8e96af 100644 --- a/App/Settings/GeneralSettingsViewController.swift +++ b/App/Settings/GeneralSettingsViewController.swift @@ -61,7 +61,7 @@ struct TextFieldContentConfiguration : UIContentConfiguration self.pressedReturn = pressedReturn } - func textFieldShouldReturn(_ textField: UITextField) -> Bool { + public func textFieldShouldReturn(_ textField: UITextField) -> Bool { pressedReturn(textField) return false } diff --git a/SBrowserProcessBundle/SBRWebProcessProxy.h b/SBrowserProcessBundle/SBRWebProcessProxy.h index 341f0cc..981080f 100644 --- a/SBrowserProcessBundle/SBRWebProcessProxy.h +++ b/SBrowserProcessBundle/SBRWebProcessProxy.h @@ -7,15 +7,15 @@ #import -static inline NSString* SBRGetAllowedOriginsKey() { +static inline NSString* SBRGetAllowedOriginsKey(void) { return @"allowedOrigins"; } -static inline NSString* SBRGetAllScriptsAllowedKey() { +static inline NSString* SBRGetAllScriptsAllowedKey(void) { return @"allScriptsAllowed"; } -static inline NSString* SBRGetPolicyTypeByOriginKey() { +static inline NSString* SBRGetPolicyTypeByOriginKey(void) { return @"policyTypeByOrigin"; }