Bläddra i källkod

fix typo in file name

Andrey Filipenkov 3 år sedan
förälder
incheckning
e8a1709fc4

+ 2 - 2
client/CMakeLists.txt

@@ -148,14 +148,14 @@ set(client_HEADERS
 if(APPLE_IOS)
 	set(client_SRCS ${client_SRCS}
 		CFocusableHelper.cpp
-		ios/GameChatKeyboardHanlder.m
+		ios/GameChatKeyboardHandler.m
 		ios/main.m
 		ios/startSDL.mm
 		ios/utils.mm
 	)
 	set(client_HEADERS ${client_HEADERS}
 		CFocusableHelper.h
-		ios/GameChatKeyboardHanlder.h
+		ios/GameChatKeyboardHandler.h
 		ios/startSDL.h
 		ios/utils.h
 	)

+ 2 - 2
client/ios/GameChatKeyboardHanlder.h → client/ios/GameChatKeyboardHandler.h

@@ -1,5 +1,5 @@
 /*
- * GameChatKeyboardHanlder.h, part of VCMI engine
+ * GameChatKeyboardHandler.h, part of VCMI engine
  *
  * Authors: listed in file AUTHORS in main folder
  *
@@ -12,7 +12,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-@interface GameChatKeyboardHanlder : NSObject
+@interface GameChatKeyboardHandler : NSObject
 
 @property (nonatomic, weak) UITextField * textFieldSDL;
 

+ 5 - 5
client/ios/GameChatKeyboardHanlder.m → client/ios/GameChatKeyboardHandler.m

@@ -1,5 +1,5 @@
 /*
- * GameChatKeyboardHanlder.m, part of VCMI engine
+ * GameChatKeyboardHandler.m, part of VCMI engine
  *
  * Authors: listed in file AUTHORS in main folder
  *
@@ -8,7 +8,7 @@
  *
  */
 
-#import "GameChatKeyboardHanlder.h"
+#import "GameChatKeyboardHandler.h"
 
 #include <SDL_events.h>
 
@@ -32,11 +32,11 @@ static CGRect keyboardFrameBegin(NSNotification * n) { return keyboardFrame(n, U
 static CGRect keyboardFrameEnd  (NSNotification * n) { return keyboardFrame(n, UIKeyboardFrameEndUserInfoKey); }
 
 
-@interface GameChatKeyboardHanlder ()
+@interface GameChatKeyboardHandler ()
 @property (nonatomic) BOOL wasChatMessageSent;
 @end
 
-@implementation GameChatKeyboardHanlder
+@implementation GameChatKeyboardHandler
 
 - (void)triggerInput {
 	__auto_type notificationCenter = NSNotificationCenter.defaultCenter;
@@ -99,7 +99,7 @@ static int watchReturnKey(void * userdata, SDL_Event * event)
 {
 	if(event->type == SDL_KEYDOWN && event->key.keysym.scancode == SDL_SCANCODE_RETURN)
 	{
-		__auto_type self = (__bridge GameChatKeyboardHanlder *)userdata;
+		__auto_type self = (__bridge GameChatKeyboardHandler *)userdata;
 		self.wasChatMessageSent = YES;
 		SDL_DelEventWatch(watchReturnKey, userdata);
 	}

+ 3 - 3
client/ios/startSDL.mm

@@ -8,7 +8,7 @@
  *
  */
 #import "startSDL.h"
-#import "GameChatKeyboardHanlder.h"
+#import "GameChatKeyboardHandler.h"
 
 #include "../Global.h"
 #include "CMT.h"
@@ -23,7 +23,7 @@
 #import <UIKit/UIKit.h>
 
 @interface SDLViewObserver : NSObject <UIGestureRecognizerDelegate>
-@property (nonatomic, strong) GameChatKeyboardHanlder * gameChatHandler;
+@property (nonatomic, strong) GameChatKeyboardHandler * gameChatHandler;
 @end
 
 @implementation SDLViewObserver
@@ -131,7 +131,7 @@ int startSDL(int argc, char * argv[], BOOL startManually)
 {
 	@autoreleasepool {
 		auto observer = [SDLViewObserver new];
-		observer.gameChatHandler = [GameChatKeyboardHanlder new];
+		observer.gameChatHandler = [GameChatKeyboardHandler new];
 
 		id __block sdlWindowCreationObserver = [NSNotificationCenter.defaultCenter addObserverForName:UIWindowDidBecomeKeyNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
 			[NSNotificationCenter.defaultCenter removeObserver:sdlWindowCreationObserver];