aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2014-12-13 18:02:01 +0100
committerMax <post@wickenrode.com>2014-12-13 18:02:01 +0100
commit876dde21d97897ad4ee98aa0d6b11898282982ce (patch)
tree49dfcdf83e94937bdc7a3f09ca82ccacec3a5aed /Source/SPFieldEditorController.m
parent994057ae2a82dc110a385ced4239ce49cc0601f8 (diff)
downloadsequelpro-876dde21d97897ad4ee98aa0d6b11898282982ce.tar.gz
sequelpro-876dde21d97897ad4ee98aa0d6b11898282982ce.tar.bz2
sequelpro-876dde21d97897ad4ee98aa0d6b11898282982ce.zip
Change [NSArray arrayWithObject:] to @[] literal
Note: [NSArray arrayWithObjects:...,nil] is left unchanged as that could possibly cause a NPE if converted to @[]
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r--Source/SPFieldEditorController.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 9c2de5fc..2d8e9529 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -895,8 +895,7 @@
id ql = [NSClassFromString(@"QLPreviewPanel") sharedPreviewPanel];
[[ql delegate] setDelegate:self];
- [ql setURLs:[NSArray arrayWithObject:
- [NSURL fileURLWithPath:tmpFileName]] currentIndex:0 preservingDisplayState:YES];
+ [ql setURLs:@[[NSURL fileURLWithPath:tmpFileName]] currentIndex:0 preservingDisplayState:YES];
// TODO: No interaction with iChat and iPhoto due to .scriptSuite warning:
// unknown image format