Browse Source

some minor style changes

pull/161/head
JP Cimalando 6 years ago
parent
commit
7cd541d068
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      dgl/src/Window.cpp

+ 4
- 4
dgl/src/Window.cpp View File

@@ -1387,19 +1387,19 @@ bool Window::openFileBrowser(const FileBrowserOptions& options)
{
if (result == NSFileHandlingPanelOKButton)
{
NSArray *urls = [panel URLs];
NSURL *fileUrl = nullptr;
NSArray* urls = [panel URLs];
NSURL* fileUrl = nullptr;

for (NSUInteger i = 0, n = [urls count]; i < n && !fileUrl; ++i)
{
NSURL *url = (NSURL *)[urls objectAtIndex:i];
NSURL* url = (NSURL*)[urls objectAtIndex:i];
if ([url isFileURL])
fileUrl = url;
}

if (fileUrl)
{
PuglView *view = pData->fView;
PuglView* view = pData->fView;
if (view->fileSelectedFunc)
{
const char* fileName = [fileUrl.path UTF8String];


Loading…
Cancel
Save