mirror of
https://github.com/TermiT/Flycut.git
synced 2024-09-20 07:16:07 +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:
|
||||
if ( [clippingStore jcListCount] > 0 ) {
|
||||
stackPosition = 0;
|
||||
[bezel setCharString:[NSString stringWithFormat:@"%d of %d", stackPosition + 1, [clippingStore jcListCount]]];
|
||||
//[bezel setCharString:[NSString stringWithFormat:@"%d", stackPosition + 1]];
|
||||
[bezel setCharString:[NSString stringWithFormat:@"%d of %d",
|
||||
1, [clippingStore jcListCount]]];
|
||||
|
||||
[bezel setText:[clippingStore clippingContentsAtPosition:stackPosition]];
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -489,14 +489,12 @@ static OSStatus SendEventToSystemEventsWithParameters(
|
|||
AppleEvent target;
|
||||
AppleEvent event;
|
||||
AppleEvent localReply;
|
||||
AEDescList results;
|
||||
|
||||
assert( (reply == NULL) || (reply->descriptorType == typeNull) );
|
||||
|
||||
target = kAENull;
|
||||
event = kAENull;
|
||||
localReply = kAENull;
|
||||
results = kAENull;
|
||||
|
||||
// Create Apple event.
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ Constructor:
|
|||
|
||||
-(id) init
|
||||
{
|
||||
if( self = [super init] )
|
||||
if( [super init] )
|
||||
{
|
||||
tabView = nil;
|
||||
itemsList = [[NSMutableDictionary alloc] init];
|
||||
|
@ -294,10 +294,9 @@ This is simply a list of all tab view items in order.
|
|||
|
||||
-(NSArray*) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar
|
||||
{
|
||||
int itemCount = [tabView numberOfTabViewItems],
|
||||
x;
|
||||
NSTabViewItem* theItem = [tabView tabViewItemAtIndex:0];
|
||||
//NSMutableArray* defaultItems = [NSMutableArray arrayWithObjects: [theItem identifier], NSToolbarSeparatorItemIdentifier, nil];
|
||||
int itemCount = [tabView numberOfTabViewItems];
|
||||
int x;
|
||||
NSTabViewItem* theItem;
|
||||
NSMutableArray* defaultItems = [NSMutableArray array];
|
||||
|
||||
for( x = 0; x < itemCount; x++ )
|
||||
|
|
Loading…
Reference in a new issue