Make countOfLeafs/Excluded a readonly property

This commit is contained in:
Allan Odgaard
2014-10-15 15:35:54 +02:00
parent ece4ca014a
commit 4f807fd109
2 changed files with 4 additions and 2 deletions

View File

@@ -6,8 +6,8 @@
@property (nonatomic, weak) FFResultNode* parent;
@property (nonatomic, weak) FFResultNode* next;
@property (nonatomic, weak) FFResultNode* previous;
@property (nonatomic) NSUInteger countOfLeafs;
@property (nonatomic) NSUInteger countOfExcluded;
@property (nonatomic, readonly) NSUInteger countOfLeafs;
@property (nonatomic, readonly) NSUInteger countOfExcluded;
+ (FFResultNode*)resultNodeWithMatch:(FFMatch*)aMatch baseDirectory:(NSString*)base;
+ (FFResultNode*)resultNodeWithMatch:(FFMatch*)aMatch;

View File

@@ -107,6 +107,8 @@ static NSAttributedString* AttributedStringForMatch (std::string const& text, si
{
document::document_t::callback_t* _callback;
}
@property (nonatomic, readwrite) NSUInteger countOfLeafs;
@property (nonatomic, readwrite) NSUInteger countOfExcluded;
@end
@implementation FFResultNode