mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Convention naming
This commit is contained in:
committed by
Kevin Sawicki
parent
0ec57cca32
commit
d26601f695
@@ -493,7 +493,7 @@ bool ScopedDisableResize::disable_resize_ = false;
|
||||
}
|
||||
|
||||
- (void)previewFileAtPath:(NSString*)path withName:(NSString*) fileName {
|
||||
NSURL * url = [[[NSURL alloc] initFileURLWithPath:path] autorelease];
|
||||
NSURL* url = [[[NSURL alloc] initFileURLWithPath:path] autorelease];
|
||||
[self setQuickLookItem:[[[AtomPreviewItem alloc] initWithURL:url title:fileName] autorelease]];
|
||||
[[QLPreviewPanel sharedPreviewPanel] makeKeyAndOrderFront:nil];
|
||||
}
|
||||
@@ -954,8 +954,8 @@ void NativeWindowMac::SetAspectRatio(double aspect_ratio,
|
||||
}
|
||||
|
||||
void NativeWindowMac::PreviewFile(const std::string& path, const std::string& fileName) {
|
||||
NSString *pathStr = [NSString stringWithUTF8String:path.c_str()];
|
||||
NSString *nameStr = [NSString stringWithUTF8String:fileName.c_str()];
|
||||
NSString* pathStr = [NSString stringWithUTF8String:path.c_str()];
|
||||
NSString* nameStr = [NSString stringWithUTF8String:fileName.c_str()];
|
||||
|
||||
[window_ previewFileAtPath:pathStr withName:nameStr];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user