Skip to content

Commit 8e5b8ef

Browse files
AppleApple
Apple
authored and
Apple
committed
Got rid from Block implicitly warning
1 parent d9b5772 commit 8e5b8ef

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

MGSwipeTableCell.xcodeproj/project.pbxproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
C63EE5621BBA07ED008F46BB /* Project object */ = {
101101
isa = PBXProject;
102102
attributes = {
103-
LastUpgradeCheck = 0920;
103+
LastUpgradeCheck = 0940;
104104
ORGANIZATIONNAME = mortimergoro;
105105
TargetAttributes = {
106106
C63EE56A1BBA07ED008F46BB = {
@@ -160,12 +160,14 @@
160160
CLANG_WARN_BOOL_CONVERSION = YES;
161161
CLANG_WARN_COMMA = YES;
162162
CLANG_WARN_CONSTANT_CONVERSION = YES;
163+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
163164
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
164165
CLANG_WARN_EMPTY_BODY = YES;
165166
CLANG_WARN_ENUM_CONVERSION = YES;
166167
CLANG_WARN_INFINITE_RECURSION = YES;
167168
CLANG_WARN_INT_CONVERSION = YES;
168169
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
170+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
169171
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
170172
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
171173
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -215,12 +217,14 @@
215217
CLANG_WARN_BOOL_CONVERSION = YES;
216218
CLANG_WARN_COMMA = YES;
217219
CLANG_WARN_CONSTANT_CONVERSION = YES;
220+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
218221
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
219222
CLANG_WARN_EMPTY_BODY = YES;
220223
CLANG_WARN_ENUM_CONVERSION = YES;
221224
CLANG_WARN_INFINITE_RECURSION = YES;
222225
CLANG_WARN_INT_CONVERSION = YES;
223226
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
227+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
224228
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
225229
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
226230
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

MGSwipeTableCell.xcodeproj/xcshareddata/xcschemes/MGSwipeTableCell.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0920"
3+
LastUpgradeVersion = "0940"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,7 +26,6 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
3029
shouldUseLaunchSchemeArgsEnv = "YES">
3130
<Testables>
3231
<TestableReference
@@ -56,7 +55,6 @@
5655
buildConfiguration = "Debug"
5756
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5857
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59-
language = ""
6058
launchStyle = "0"
6159
useCustomWorkingDirectory = "NO"
6260
ignoresPersistentStateOnLaunch = "NO"

MGSwipeTableCell/MGSwipeTableCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ -(void) expandToOffset:(CGFloat) offset settings:(MGSwipeExpansionSettings*) set
268268
[self->_expandedButton.superview bringSubviewToFront:self->_expandedButton];
269269
self->_expansionBackground.frame = self->_container.bounds;
270270
}
271-
else if (_fromLeft) {
271+
else if (self->_fromLeft) {
272272
self->_expandedButton.frame = CGRectMake(self->_container.bounds.size.width - self->_expandedButton.bounds.size.width, 0, self->_expandedButton.bounds.size.width, self->_expandedButton.bounds.size.height);
273273
self->_expandedButton.autoresizingMask|= UIViewAutoresizingFlexibleLeftMargin;
274274
self->_expansionBackground.frame = [self expansionBackgroundRect:self->_expandedButton];

0 commit comments

Comments
 (0)