diff options
author | ritsuka <[email protected]> | 2015-05-31 06:53:10 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-05-31 06:53:10 +0000 |
commit | d2be4a57668e8399a4b60f5d9e96554336abe157 (patch) | |
tree | b0e0819204e571ff04c943d4da66c9b95dcb7c3b /macosx | |
parent | 3f61d2fb74139a0878a42484b6b061ec213ef59c (diff) |
MacGui: remove a useless cast for the deblock value.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7251 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBFilters+UIAdditions.m | 2 | ||||
-rw-r--r-- | macosx/HBFilters.h | 2 | ||||
-rw-r--r-- | macosx/HBFilters.m | 4 | ||||
-rw-r--r-- | macosx/HBJob+HBJobConversion.m | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/macosx/HBFilters+UIAdditions.m b/macosx/HBFilters+UIAdditions.m index 6d2c255fe..33acb81b9 100644 --- a/macosx/HBFilters+UIAdditions.m +++ b/macosx/HBFilters+UIAdditions.m @@ -319,7 +319,7 @@ static NSDictionary *denoiseTypesDict = nil; // Deblock if (self.deblock > 0) { - [summary appendFormat:@" - Deblock (%ld)", self.deblock]; + [summary appendFormat:@" - Deblock (%d)", self.deblock]; } // Denoise diff --git a/macosx/HBFilters.h b/macosx/HBFilters.h index 1d1cdb9ff..edac30f84 100644 --- a/macosx/HBFilters.h +++ b/macosx/HBFilters.h @@ -32,7 +32,7 @@ extern NSString * const HBFiltersChangedNotification; @property (nonatomic, readwrite, copy) NSString *denoiseTune; @property (nonatomic, readwrite, copy) NSString *denoiseCustomString; -@property (nonatomic, readwrite) NSInteger deblock; +@property (nonatomic, readwrite) int deblock; @property (nonatomic, readwrite) BOOL grayscale; @end diff --git a/macosx/HBFilters.m b/macosx/HBFilters.m index 90a031c6d..ebd38558c 100644 --- a/macosx/HBFilters.m +++ b/macosx/HBFilters.m @@ -189,7 +189,7 @@ NSString * const HBFiltersChangedNotification = @"HBFiltersChangedNotification"; [self postChangedNotification]; } -- (void)setDeblock:(NSInteger)deblock +- (void)setDeblock:(int)deblock { _deblock = deblock; [self postChangedNotification]; @@ -306,7 +306,7 @@ NSString * const HBFiltersChangedNotification = @"HBFiltersChangedNotification"; decodeObject(_denoiseTune, NSString); decodeObject(_denoiseCustomString, NSString); - decodeInteger(_deblock); + decodeInt(_deblock); decodeBool(_grayscale); decodeBool(_useDecomb); diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m index 464882652..70692d801 100644 --- a/macosx/HBJob+HBJobConversion.m +++ b/macosx/HBJob+HBJobConversion.m @@ -479,7 +479,7 @@ if (self.filters.deblock) { filter = hb_filter_init(HB_FILTER_DEBLOCK); - hb_add_filter(job, filter, [NSString stringWithFormat:@"%ld", (long)self.filters.deblock].UTF8String); + hb_add_filter(job, filter, [NSString stringWithFormat:@"%d", self.filters.deblock].UTF8String); } // Add Crop/Scale filter |