aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPArrayAdditions.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-24 21:51:27 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-24 21:51:27 +0000
commit3b70bf3ed475602fac435b86ab564423ae1dfdb0 (patch)
tree2328be21dbfdaec7e07caad38c2b46d26c76fcd7 /Source/SPArrayAdditions.h
parent47f354070f1fa8dfeb46c4065075ee53de4c1626 (diff)
downloadsequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.tar.gz
sequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.tar.bz2
sequelpro-3b70bf3ed475602fac435b86ab564423ae1dfdb0.zip
General tidy up, with a focus on consolidating more constants in SPConstants.h/m.
Diffstat (limited to 'Source/SPArrayAdditions.h')
-rw-r--r--Source/SPArrayAdditions.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/SPArrayAdditions.h b/Source/SPArrayAdditions.h
index 2c3ce7c4..284e588a 100644
--- a/Source/SPArrayAdditions.h
+++ b/Source/SPArrayAdditions.h
@@ -24,13 +24,18 @@
#import <Cocoa/Cocoa.h>
-static inline id NSArrayObjectAtIndex(NSArray* self, NSUInteger i) {
+static inline id NSArrayObjectAtIndex(NSArray *self, NSUInteger i)
+{
return (id)CFArrayGetValueAtIndex((CFArrayRef)self, i);
}
-static inline void NSMutableArrayAddObject(NSArray* self, id anObject) {
+
+static inline void NSMutableArrayAddObject(NSArray *self, id anObject)
+{
CFArrayAppendValue((CFMutableArrayRef)self, anObject);
}
-static inline void NSMutableArrayReplaceObject(NSArray* self, CFIndex idx, id anObject) {
+
+static inline void NSMutableArrayReplaceObject(NSArray *self, CFIndex idx, id anObject)
+{
CFArraySetValueAtIndex((CFMutableArrayRef)self, idx, anObject);
}