Fix warnings

This commit is contained in:
James Magahern
2023-04-19 14:33:17 -07:00
parent 98dfd85781
commit 99bd3af187
4 changed files with 7 additions and 7 deletions

View File

@@ -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 // 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.nextResultButton.isEnabled = matches > 0
findOnPageView.prevResultButton.isEnabled = matches > 0 findOnPageView.prevResultButton.isEnabled = matches > 0
} }

View File

@@ -20,7 +20,7 @@ static void swizzleClassMethod(Class targetClass, SEL originalSelector, IMP repl
} }
__attribute__((constructor)) __attribute__((constructor))
static void swizzleMFMailComposeViewController() static void swizzleMFMailComposeViewController(void)
{ {
// Hacks to work around the fact that MFMailComposeViewController is broken in iOS 14+ // Hacks to work around the fact that MFMailComposeViewController is broken in iOS 14+
swizzleClassMethod(MFMailComposeViewController.class, @selector(canSendMail), imp_implementationWithBlock(^BOOL(void) { swizzleClassMethod(MFMailComposeViewController.class, @selector(canSendMail), imp_implementationWithBlock(^BOOL(void) {

View File

@@ -61,7 +61,7 @@ struct TextFieldContentConfiguration : UIContentConfiguration
self.pressedReturn = pressedReturn self.pressedReturn = pressedReturn
} }
func textFieldShouldReturn(_ textField: UITextField) -> Bool { public func textFieldShouldReturn(_ textField: UITextField) -> Bool {
pressedReturn(textField) pressedReturn(textField)
return false return false
} }

View File

@@ -7,15 +7,15 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
static inline NSString* SBRGetAllowedOriginsKey() { static inline NSString* SBRGetAllowedOriginsKey(void) {
return @"allowedOrigins"; return @"allowedOrigins";
} }
static inline NSString* SBRGetAllScriptsAllowedKey() { static inline NSString* SBRGetAllScriptsAllowedKey(void) {
return @"allScriptsAllowed"; return @"allScriptsAllowed";
} }
static inline NSString* SBRGetPolicyTypeByOriginKey() { static inline NSString* SBRGetPolicyTypeByOriginKey(void) {
return @"policyTypeByOrigin"; return @"policyTypeByOrigin";
} }