Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two small fixes that help this compile with the LLVM shipped in Xcode 4.3.2. #1

Merged
merged 2 commits into from May 15, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/JWConstraint.h
Expand Up @@ -22,7 +22,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef enum {
kJWConstraintMinX = 1 << 0,
Expand Down
8 changes: 4 additions & 4 deletions Classes/JWConstraintGraphNode.m
Expand Up @@ -60,25 +60,25 @@ - (void)dealloc;
- (void)addIncoming:(JWConstraintGraphNode*)aNode;
{
if (![self.incomingEdges containsObject:aNode])
[self.incomingEdges addObject:aNode];
[(NSMutableArray *)self.incomingEdges addObject:aNode];
}

- (void)addOutgoing:(JWConstraintGraphNode*)aNode;
{
if (![self.outgoingEdges containsObject:aNode])
[self.outgoingEdges addObject:aNode];
[(NSMutableArray *)self.outgoingEdges addObject:aNode];
}

- (void)removeOutgoing:(JWConstraintGraphNode*)aNode;
{
if ([self.outgoingEdges containsObject:aNode])
[self.outgoingEdges removeObject:aNode];
[(NSMutableArray *)self.outgoingEdges removeObject:aNode];
}

- (void)removeIncoming:(JWConstraintGraphNode*)aNode;
{
if ([self.incomingEdges containsObject:aNode])
[self.incomingEdges removeObject:aNode];
[(NSMutableArray *)self.incomingEdges removeObject:aNode];
}

#pragma mark Debugging
Expand Down