vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndex.m in motion-yapper-0.0.1 vs vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndex.m in motion-yapper-0.0.2
- old
+ new
@@ -51,20 +51,30 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark Instance
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+@synthesize version = version;
+
- (id)init
{
NSAssert(NO, @"Must use designated initializer");
return nil;
}
- (id)initWithSetup:(YapDatabaseSecondaryIndexSetup *)inSetup
block:(YapDatabaseSecondaryIndexBlock)inBlock
blockType:(YapDatabaseSecondaryIndexBlockType)inBlockType
{
+ return [self initWithSetup:inSetup block:inBlock blockType:inBlockType version:0];
+}
+
+- (id)initWithSetup:(YapDatabaseSecondaryIndexSetup *)inSetup
+ block:(YapDatabaseSecondaryIndexBlock)inBlock
+ blockType:(YapDatabaseSecondaryIndexBlockType)inBlockType
+ version:(int)inVersion
+{
// Sanity checks
if (inSetup == nil)
{
NSAssert(NO, @"Invalid setup: nil");
@@ -108,9 +118,11 @@
block = inBlock;
blockType = inBlockType;
columnNamesSharedKeySet = [NSDictionary sharedKeySetForKeys:[setup columnNames]];
+
+ version = inVersion;
}
return self;
}
/**