summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/brew
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/brew')
-rw-r--r--Source/WebCore/platform/brew/FileSystemBrew.cpp12
-rw-r--r--Source/WebCore/platform/brew/LocalizedStringsBrew.cpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/Source/WebCore/platform/brew/FileSystemBrew.cpp b/Source/WebCore/platform/brew/FileSystemBrew.cpp
index 61d568d..251c004 100644
--- a/Source/WebCore/platform/brew/FileSystemBrew.cpp
+++ b/Source/WebCore/platform/brew/FileSystemBrew.cpp
@@ -186,7 +186,7 @@ String directoryName(const String& path)
return dirName;
}
-CString openTemporaryFile(const char* prefix, PlatformFileHandle& handle)
+String openTemporaryFile(const String& prefix, PlatformFileHandle& handle)
{
// BREW does not have a system-wide temporary directory,
// use "fs:/~/tmp" as our temporary directory.
@@ -199,24 +199,24 @@ CString openTemporaryFile(const char* prefix, PlatformFileHandle& handle)
// Loop until we find a temporary filename that does not exist.
int number = static_cast<int>(randomNumber() * 10000);
- CString filename;
+ String filename;
do {
StringBuilder builder;
builder.append(tempPath);
builder.append('/');
builder.append(prefix);
builder.append(String::number(number));
- filename = builder.toString().utf8();
+ filename = builder.toString();
number++;
- } while (IFILEMGR_Test(fileMgr.get(), filename.data()) == SUCCESS);
+ } while (IFILEMGR_Test(fileMgr.get(), filename.utf8().data()) == SUCCESS);
- IFile* tempFile = IFILEMGR_OpenFile(fileMgr.get(), filename.data(), _OFM_CREATE);
+ IFile* tempFile = IFILEMGR_OpenFile(fileMgr.get(), filename.utf8().data(), _OFM_CREATE);
if (tempFile) {
handle = tempFile;
return filename;
}
- return CString();
+ return String();
}
void closeFile(PlatformFileHandle& handle)
diff --git a/Source/WebCore/platform/brew/LocalizedStringsBrew.cpp b/Source/WebCore/platform/brew/LocalizedStringsBrew.cpp
index c4dac1a..ba5d4a9 100644
--- a/Source/WebCore/platform/brew/LocalizedStringsBrew.cpp
+++ b/Source/WebCore/platform/brew/LocalizedStringsBrew.cpp
@@ -206,7 +206,7 @@ String contextMenuItemTagSearchWeb()
return "Search web";
}
-String contextMenuItemTagLookUpInDictionary()
+String contextMenuItemTagLookUpInDictionary(const String&)
{
return "Lookup in dictionary";
}