Title: [295133] trunk/Source/WTF/wtf/GenerateProfiles.h
Revision
295133
Author
[email protected]
Date
2022-06-02 11:25:20 -0700 (Thu, 02 Jun 2022)

Log Message

Improved inefficient string handling method to fix conversion error
https://bugs.webkit.org/show_bug.cgi?id=241194

Patch by briannafan <[email protected]> on 2022-06-02
Reviewed by Dewei Zhu and Chris Dumez.

Enabling profile generation for WebKit build resulted in a compile error. Fixed conversion error so that the build completes.

* Source/wtf/GenerateProfiles.h

Canonical link: https://commits.webkit.org/251224@main

Modified Paths

Diff

Modified: trunk/Source/WTF/wtf/GenerateProfiles.h (295132 => 295133)


--- trunk/Source/WTF/wtf/GenerateProfiles.h	2022-06-02 18:13:50 UTC (rev 295132)
+++ trunk/Source/WTF/wtf/GenerateProfiles.h	2022-06-02 18:25:20 UTC (rev 295133)
@@ -62,7 +62,7 @@
         {
             // Maybe we could use %t instead here, but this folder is permitted through the sandbox because of ANGLE.
             FileSystem::PlatformFileHandle fileHandle;
-            auto filePath = FileSystem::openTemporaryFile(makeString(name, "-", getpid()), fileHandle, ".profraw");
+            auto filePath = FileSystem::openTemporaryFile(makeString(name, "-", getpid()), fileHandle, ".profraw"_s);
             profileFileBase.get() = String::fromUTF8(filePath.utf8().data());
             FileSystem::closeFile(fileHandle);
         }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to