Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/browser/AppFileLocProvider.d @ 111:b6e9904989ed
Updated to dmd 1.065.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sat, 13 Nov 2010 14:15:51 +0100 |
parents | ea8b884d85f6 |
children | 536e43f63c81 |
comparison
equal
deleted
inserted
replaced
110:5d01af878529 | 111:b6e9904989ed |
---|---|
101 | 101 |
102 void setProfilePath (String path) { | 102 void setProfilePath (String path) { |
103 profilePath = path; | 103 profilePath = path; |
104 if (!Compatibility.fileExists (path, "")) { //$NON-NLS-1$ | 104 if (!Compatibility.fileExists (path, "")) { //$NON-NLS-1$ |
105 nsILocalFile file; | 105 nsILocalFile file; |
106 scope auto nsEmbedString pathString = new nsEmbedString (toWCharArray(path)); | 106 scope nsEmbedString pathString = new nsEmbedString (toWCharArray(path)); |
107 int rc = XPCOM.NS_NewLocalFile (cast(nsAString*)pathString, 1, &file); | 107 int rc = XPCOM.NS_NewLocalFile (cast(nsAString*)pathString, 1, &file); |
108 if (rc !is XPCOM.NS_OK) Mozilla.error (rc); | 108 if (rc !is XPCOM.NS_OK) Mozilla.error (rc); |
109 if (file is null) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); | 109 if (file is null) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER); |
110 | 110 |
111 rc = file.Create (nsILocalFile.DIRECTORY_TYPE, 0700); | 111 rc = file.Create (nsILocalFile.DIRECTORY_TYPE, 0700); |