Skip to content

Commit

Permalink
Replace #define constants with external strings
Browse files Browse the repository at this point in the history
  • Loading branch information
fcanas committed Jan 2, 2015
1 parent d711bce commit 126a79f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/NSString+Morphing.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

#import <Foundation/Foundation.h>

#define kTOMSDictionaryKeyMergedString @"mergedString"
#define kTOMSDictionaryKeyAdditionRanges @"additionRanges"
#define kTOMSDictionaryKeyDeletionRanges @"deletionRanges"
extern NSString * const kTOMSDictionaryKeyMergedString;
extern NSString * const kTOMSDictionaryKeyAdditionRanges;
extern NSString * const kTOMSDictionaryKeyDeletionRanges;

@interface NSString (Morphing)

Expand Down
4 changes: 4 additions & 0 deletions Classes/NSString+Morphing.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

#import "NSString+Morphing.h"

NSString * const kTOMSDictionaryKeyMergedString = @"mergedString";
NSString * const kTOMSDictionaryKeyAdditionRanges = @"additionRanges";
NSString * const kTOMSDictionaryKeyDeletionRanges = @"deletionRanges";

@implementation NSString (Morphing)

- (NSUInteger)toms_unicodeLength
Expand Down

0 comments on commit 126a79f

Please sign in to comment.