mirror of
https://github.com/TermiT/Flycut.git
synced 2024-09-20 15:26:05 +08:00
Refactor: Got rid of all Analyzer warning except for "View is clipping its contents"
This commit is contained in:
parent
2ecdb49a27
commit
198a2af5eb
|
@ -340,8 +340,9 @@
|
||||||
case NSHomeFunctionKey:
|
case NSHomeFunctionKey:
|
||||||
if ( [clippingStore jcListCount] > 0 ) {
|
if ( [clippingStore jcListCount] > 0 ) {
|
||||||
stackPosition = 0;
|
stackPosition = 0;
|
||||||
[bezel setCharString:[NSString stringWithFormat:@"%d of %d", stackPosition + 1, [clippingStore jcListCount]]];
|
[bezel setCharString:[NSString stringWithFormat:@"%d of %d",
|
||||||
//[bezel setCharString:[NSString stringWithFormat:@"%d", stackPosition + 1]];
|
1, [clippingStore jcListCount]]];
|
||||||
|
|
||||||
[bezel setText:[clippingStore clippingContentsAtPosition:stackPosition]];
|
[bezel setText:[clippingStore clippingContentsAtPosition:stackPosition]];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -489,14 +489,12 @@ static OSStatus SendEventToSystemEventsWithParameters(
|
||||||
AppleEvent target;
|
AppleEvent target;
|
||||||
AppleEvent event;
|
AppleEvent event;
|
||||||
AppleEvent localReply;
|
AppleEvent localReply;
|
||||||
AEDescList results;
|
|
||||||
|
|
||||||
assert( (reply == NULL) || (reply->descriptorType == typeNull) );
|
assert( (reply == NULL) || (reply->descriptorType == typeNull) );
|
||||||
|
|
||||||
target = kAENull;
|
target = kAENull;
|
||||||
event = kAENull;
|
event = kAENull;
|
||||||
localReply = kAENull;
|
localReply = kAENull;
|
||||||
results = kAENull;
|
|
||||||
|
|
||||||
// Create Apple event.
|
// Create Apple event.
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ Constructor:
|
||||||
|
|
||||||
-(id) init
|
-(id) init
|
||||||
{
|
{
|
||||||
if( self = [super init] )
|
if( [super init] )
|
||||||
{
|
{
|
||||||
tabView = nil;
|
tabView = nil;
|
||||||
itemsList = [[NSMutableDictionary alloc] init];
|
itemsList = [[NSMutableDictionary alloc] init];
|
||||||
|
@ -294,10 +294,9 @@ This is simply a list of all tab view items in order.
|
||||||
|
|
||||||
-(NSArray*) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar
|
-(NSArray*) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar
|
||||||
{
|
{
|
||||||
int itemCount = [tabView numberOfTabViewItems],
|
int itemCount = [tabView numberOfTabViewItems];
|
||||||
x;
|
int x;
|
||||||
NSTabViewItem* theItem = [tabView tabViewItemAtIndex:0];
|
NSTabViewItem* theItem;
|
||||||
//NSMutableArray* defaultItems = [NSMutableArray arrayWithObjects: [theItem identifier], NSToolbarSeparatorItemIdentifier, nil];
|
|
||||||
NSMutableArray* defaultItems = [NSMutableArray array];
|
NSMutableArray* defaultItems = [NSMutableArray array];
|
||||||
|
|
||||||
for( x = 0; x < itemCount; x++ )
|
for( x = 0; x < itemCount; x++ )
|
||||||
|
|
Loading…
Reference in a new issue