summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/efl/FileSystemEfl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/efl/FileSystemEfl.cpp')
-rw-r--r--Source/WebCore/platform/efl/FileSystemEfl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/platform/efl/FileSystemEfl.cpp b/Source/WebCore/platform/efl/FileSystemEfl.cpp
index cb117bc..01c6c67 100644
--- a/Source/WebCore/platform/efl/FileSystemEfl.cpp
+++ b/Source/WebCore/platform/efl/FileSystemEfl.cpp
@@ -67,7 +67,7 @@ CString fileSystemRepresentation(const String& path)
#endif
}
-CString openTemporaryFile(const char* prefix, PlatformFileHandle& handle)
+String openTemporaryFile(const String& prefix, PlatformFileHandle& handle)
{
char buffer[PATH_MAX];
const char* tmpDir = getenv("TMPDIR");
@@ -75,18 +75,18 @@ CString openTemporaryFile(const char* prefix, PlatformFileHandle& handle)
if (!tmpDir)
tmpDir = "/tmp";
- if (snprintf(buffer, PATH_MAX, "%s/%sXXXXXX", tmpDir, prefix) >= PATH_MAX)
+ if (snprintf(buffer, PATH_MAX, "%s/%sXXXXXX", tmpDir, prefix.utf8().data()) >= PATH_MAX)
goto end;
handle = mkstemp(buffer);
if (handle < 0)
goto end;
- return CString(buffer);
+ return String::fromUTF8(buffer);
end:
handle = invalidPlatformFileHandle;
- return CString();
+ return String();
}
bool unloadModule(PlatformModule module)