mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2024-12-21 01:30:05 +00:00
unsigned -> NSUInteger
git-svn-id: svn://qnap.local/TwoTerm/branches/frameless@3096 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
parent
7c621218f9
commit
692b91d69c
@ -220,10 +220,10 @@ enum {
|
||||
|
||||
-(void)keyDown:(NSEvent *)event screen:(Screen *)screen output:(OutputChannel *)output
|
||||
{
|
||||
unsigned flags = [event modifierFlags];
|
||||
NSEventModifierFlags flags = [event modifierFlags];
|
||||
NSString *chars = [event charactersIgnoringModifiers];
|
||||
|
||||
unsigned length = [chars length];
|
||||
NSUInteger length = [chars length];
|
||||
|
||||
for (unsigned i = 0; i < length; ++i)
|
||||
{
|
||||
|
@ -12,9 +12,9 @@
|
||||
|
||||
unsigned EventCharacters(NSEvent *event, std::u32string &rv)
|
||||
{
|
||||
unsigned flags = [event modifierFlags];
|
||||
NSEventModifierFlags flags = [event modifierFlags];
|
||||
NSString *chars = [event charactersIgnoringModifiers];
|
||||
unsigned length = [chars length];
|
||||
NSUInteger length = [chars length];
|
||||
|
||||
rv.reserve(length);
|
||||
|
||||
@ -37,7 +37,7 @@ unsigned EventCharacters(NSEvent *event, std::u32string &rv)
|
||||
rv.push_back(c);
|
||||
}
|
||||
|
||||
return length;
|
||||
return (unsigned)length;
|
||||
}
|
||||
|
||||
|
||||
|
@ -314,10 +314,10 @@ enum {
|
||||
|
||||
-(void)keyDown:(NSEvent *)event screen:(Screen *)screen output:(OutputChannel *)output
|
||||
{
|
||||
unsigned flags = [event modifierFlags];
|
||||
NSEventModifierFlags flags = [event modifierFlags];
|
||||
NSString *chars = [event charactersIgnoringModifiers];
|
||||
|
||||
unsigned length = [chars length];
|
||||
NSUInteger length = [chars length];
|
||||
|
||||
for (unsigned i = 0; i < length; ++i)
|
||||
{
|
||||
|
@ -67,9 +67,9 @@ enum {
|
||||
|
||||
-(void)keyDown: (NSEvent *)event screen: (Screen *)screen output: (OutputChannel *)output
|
||||
{
|
||||
unsigned flags = [event modifierFlags];
|
||||
NSEventModifierFlags flags = [event modifierFlags];
|
||||
NSString *chars = [event charactersIgnoringModifiers];
|
||||
unsigned length = [chars length];
|
||||
NSUInteger length = [chars length];
|
||||
|
||||
|
||||
for (unsigned i = 0; i < length; ++i)
|
||||
|
@ -799,7 +799,7 @@ enum {
|
||||
|
||||
|
||||
|
||||
static void vt100ModeKey(unichar uc, unsigned flags, Screen *screen, OutputChannel *output, struct __vt100flags vt100flags)
|
||||
static void vt100ModeKey(unichar uc, NSEventModifierFlags flags, Screen *screen, OutputChannel *output, struct __vt100flags vt100flags)
|
||||
{
|
||||
const char *str = NULL;
|
||||
|
||||
@ -926,7 +926,7 @@ static void vt100ModeKey(unichar uc, unsigned flags, Screen *screen, OutputChann
|
||||
}
|
||||
|
||||
|
||||
static void vt52ModeKey(unichar uc, unsigned flags, Screen * screen, OutputChannel *output, struct __vt100flags vt100flags)
|
||||
static void vt52ModeKey(unichar uc, NSEventModifierFlags flags, Screen * screen, OutputChannel *output, struct __vt100flags vt100flags)
|
||||
{
|
||||
const char *str = NULL;
|
||||
|
||||
@ -1043,9 +1043,9 @@ static void vt52ModeKey(unichar uc, unsigned flags, Screen * screen, OutputChann
|
||||
|
||||
-(void)keyDown:(NSEvent *)event screen:(Screen *)screen output:(OutputChannel *)output
|
||||
{
|
||||
unsigned flags = [event modifierFlags];
|
||||
NSEventModifierFlags flags = [event modifierFlags];
|
||||
NSString *chars = [event charactersIgnoringModifiers];
|
||||
unsigned length = [chars length];
|
||||
NSUInteger length = [chars length];
|
||||
|
||||
for (unsigned i = 0; i < length; ++i)
|
||||
{
|
||||
|
@ -87,9 +87,9 @@ enum {
|
||||
|
||||
-(void)keyDown: (NSEvent *)event screen: (Screen *)screen output: (OutputChannel *)output
|
||||
{
|
||||
unsigned flags = [event modifierFlags];
|
||||
NSEventModifierFlags flags = [event modifierFlags];
|
||||
NSString *chars = [event charactersIgnoringModifiers];
|
||||
unsigned length = [chars length];
|
||||
NSUInteger length = [chars length];
|
||||
|
||||
for (unsigned i = 0; i < length; ++i)
|
||||
{
|
||||
|
@ -238,7 +238,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
[self setContentFilters: nil];
|
||||
[self setContentFilters: @[]];
|
||||
}
|
||||
}
|
||||
|
||||
@ -471,7 +471,7 @@
|
||||
|
||||
NSData *data = [text dataUsingEncoding: NSASCIIStringEncoding allowLossyConversion: YES];
|
||||
|
||||
unsigned length = [data length];
|
||||
NSUInteger length = [data length];
|
||||
|
||||
OutputChannel channel(_fd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user