Bug 1910698 - Fix a base-toolchains-clang build warning.

MANUAL PUSH: bustage fix CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2024-08-02 01:32:10 +02:00
parent c85e818da0
commit 1a191fedc2

View File

@ -273,7 +273,8 @@ nsCString nsContentSecurityUtils::SmartFormatCrashString(
* filename to be smaller and collect more data.
*/
nsCString OptimizeFileName(const nsAString& aFileName) {
NS_ConvertUTF16toUTF8 optimizedName(aFileName);
nsCString optimizedName;
CopyUTF16toUTF8(aFileName, optimizedName);
MOZ_LOG(sCSMLog, LogLevel::Verbose,
("Optimizing FileName: %s", optimizedName.get()));