Skip to content

Commit

Permalink
Fixed all XCode-suggested fixes plus a couple of missing imported hea…
Browse files Browse the repository at this point in the history
…ders.
  • Loading branch information
redpola committed Apr 10, 2014
1 parent 2c21066 commit b1525bf
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions Sources/Application/ModemSleepManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@


#import "ModemSleepManager.h"
#import <IOKit/pwr_mgt/IOPMLib.h>


@implementation ModemSleepManager
Expand Down
1 change: 1 addition & 0 deletions Sources/Application/SleepManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#import "SleepManager.h"
#import <IOKit/IOMessage.h>
#import <IOKit/pwr_mgt/IOPMLib.h>


@implementation SleepManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ - (void)setLowCutoff:(float)low highCutoff:(float)high length:(int)len
high = low ;
low = temp ;
}
if ( low < 1.0 || low == lowCutoff && high == highCutoff ) return ;
if ( low < 1.0 || (low == lowCutoff && high == highCutoff) ) return ;

oldlen = n ;
n = len ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#import "ContestManager.h"
#import "Contest.h"
#import "Messages.h"
#import "RTTYRoundupMults.h" ;
#import "RTTYRoundupMults.h"
#import "TextEncoding.h"
#import "TransparentTextField.h"
#import "UserInfo.h"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Interfaces/Contest/ContestInterface.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ - (id)initIntoTabView:(NSTabView*)tabview nib:(NSString*)nib manager:(ModemManag
self = [ super initIntoTabView:tabview nib:nib manager:mgr ] ;
if ( self ) {
contestBar = nil ;
savedString = [ NSString stringWithString:@"" ] ;
savedString = @"" ;
}
return self ;
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Modems/Base/SendView.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ @implementation SendView
- (NSArray*)readablePasteboardTypes
{
// allow only plain text
return @[[ NSString stringWithString:@"NSStringPboardType" ]] ;
return @[@"NSStringPboardType"] ;
}

- (void)viewDidMoveToWindow
Expand Down
2 changes: 1 addition & 1 deletion Sources/Modems/CoreModem/FSK/CMATC.m
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ static int transitions( CMATCPair* pair, int bitn, int bitsPerCharacter )
for ( k = 0; k < n; k++ ) {
p++ ;
v = p->mark - p->space ;
if ( u > 0 && v <= 0 || u < 0 && v >= 0 ) count++ ;
if ( (u > 0 && v <= 0) || (u < 0 && v >= 0) ) count++ ;
u = v ;
}
pair += bitn ;
Expand Down
3 changes: 1 addition & 2 deletions Sources/Modems/HF-FAX/FAX.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
//

#ifndef _FAX_H_
#define _FAXR_H_

#define _FAX_H_
#import <Cocoa/Cocoa.h>
#include "Modem.h"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Modems/RTTY/New Demodulator/RTTYATC.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static int transitions( CMATCPair* pair, int bitn, int bitsPerCharacter )
for ( k = 0; k < n; k++ ) {
p++ ;
v = p->mark - p->space ;
if ( u > 0 && v <= 0 || u < 0 && v >= 0 ) count++ ;
if ( (u > 0 && v <= 0) || (u < 0 && v >= 0) ) count++ ;
u = v ;
}
pair += bitn ;
Expand Down
2 changes: 1 addition & 1 deletion Sources/NetAudio/NetReceive Class/NetReceive.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ - (Boolean)setServiceName:(NSString*)name

- (Boolean)setPassword:(NSString*)password
{
NSString *name = ( password == nil ) ? [ NSString stringWithString:@"" ] : password ;
NSString *name = ( password == nil ) ? @"" : password ;
return ( AudioUnitSetProperty( netReceiveAudioUnit, kAUNetReceiveProperty_Password, kAudioUnitScope_Global, 0, &name, sizeof(CFStringRef) ) == noErr ) ;
}

Expand Down
8 changes: 4 additions & 4 deletions Sources/NetAudio/NetSend Class/NetSend.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ - (Boolean)setCurrentServiceName
// note: cannot clear password
- (Boolean)setCurrentPassword
{
NSString *name = ( password == nil ) ? [ NSString stringWithString:@"" ] : password ;
NSString *name = ( password == nil ) ? @"" : password ;
return ( AudioUnitSetProperty( netSendAudioUnit, kAUNetSendProperty_Password, kAudioUnitScope_Global, 0, &name, sizeof(CFStringRef) ) == noErr ) ;
}

Expand Down Expand Up @@ -283,14 +283,14 @@ - (Boolean)startSampling
- (void)stopSampling
{
// the tick: timer routine will catch this flag and stop the timer.
netAudioStruct.runState == kNetAudioStopped ;
netAudioStruct.runState = kNetAudioStopped ;
}

- (id)initWithService:(NSString*)service delegate:(id)inDelegate samplesPerBuffer:(int)size
{
self = [ super init ] ;
if ( self ) {
netAudioStruct.runState == kNetAudioIdle ;
netAudioStruct.runState = kNetAudioIdle ;
if ( [ self setupWithService:service delegate:inDelegate samplesPerBuffer:size ] == NO ) return nil ;
}
return self ;
Expand All @@ -300,7 +300,7 @@ - (id)init
{
self = [ super init ] ;
if ( self ) {
netAudioStruct.runState == kNetAudioIdle ;
netAudioStruct.runState = kNetAudioIdle ;
if ( [ self setupWithService:@"AUNetSend" delegate:nil samplesPerBuffer:512 ] == NO ) return nil ;
}
return self ;
Expand Down

0 comments on commit b1525bf

Please sign in to comment.