diff options
author | Steve Block <steveblock@google.com> | 2011-05-25 19:08:45 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-06-08 13:51:31 +0100 |
commit | 2bde8e466a4451c7319e3a072d118917957d6554 (patch) | |
tree | 28f4a1b869a513e565c7760d0e6a06e7cf1fe95a /Source/WebCore/platform/android | |
parent | 6939c99b71d9372d14a0c74a772108052e8c48c8 (diff) | |
download | external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.zip external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.gz external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.bz2 |
Merge WebKit at r82507: Initial merge by git
Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e
Diffstat (limited to 'Source/WebCore/platform/android')
-rw-r--r-- | Source/WebCore/platform/android/FileSystemAndroid.cpp | 11 | ||||
-rw-r--r-- | Source/WebCore/platform/android/LocalizedStringsAndroid.cpp | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/Source/WebCore/platform/android/FileSystemAndroid.cpp b/Source/WebCore/platform/android/FileSystemAndroid.cpp index 9ed43f0..30dc1d3 100644 --- a/Source/WebCore/platform/android/FileSystemAndroid.cpp +++ b/Source/WebCore/platform/android/FileSystemAndroid.cpp @@ -55,26 +55,25 @@ CString fileSystemRepresentation(const String& path) return path.utf8(); } -CString openTemporaryFile(const char* prefix, PlatformFileHandle& handle) +String openTemporaryFile(const String& prefix, PlatformFileHandle& handle) { int number = rand() % 10000 + 1; - CString filename; + String filename; do { StringBuilder builder; builder.append(sPluginPath); builder.append('/'); builder.append(prefix); builder.append(String::number(number)); - filename = builder.toString().utf8(); - const char* fstr = filename.data(); - handle = open(filename.data(), O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); + filename = builder.toString(); + handle = open(filename.utf8().data(), O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); number++; if (handle != -1) return filename; } while (errno == EEXIST); - return CString(); + return String(); } bool unloadModule(PlatformModule module) diff --git a/Source/WebCore/platform/android/LocalizedStringsAndroid.cpp b/Source/WebCore/platform/android/LocalizedStringsAndroid.cpp index 5a96cf6..e5a733a 100644 --- a/Source/WebCore/platform/android/LocalizedStringsAndroid.cpp +++ b/Source/WebCore/platform/android/LocalizedStringsAndroid.cpp @@ -230,7 +230,7 @@ String contextMenuItemTagSearchWeb() return String(); } -String contextMenuItemTagLookUpInDictionary() +String contextMenuItemTagLookUpInDictionary(const String&) { notImplemented(); return String(); |