Skip to content

Commit

Permalink
Use toStdU16String when converting string to std::filesystem::path
Browse files Browse the repository at this point in the history
qUtf16Printable causes a crash in linux.

Pick-to: 6.8.0 6.8 6.7
Fixes: QTBUG-129375
Change-Id: Icb0aed74e0a2af762aee464d52a63e0f847b85a9
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
  • Loading branch information
anttimaa committed Oct 1, 2024
1 parent 39e7016 commit a599838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/tracing/qctflib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ QCtfLibImpl::QCtfLibImpl()
void QCtfLibImpl::clearLocation()
{
#if QT_CONFIG(cxx17_filesystem)
const std::filesystem::path location{qUtf16Printable(m_location)};
const std::filesystem::path location{m_location.toStdU16String()};
for (auto const& dirEntry : std::filesystem::directory_iterator{location})
{
const auto path = dirEntry.path();
Expand Down

0 comments on commit a599838

Please sign in to comment.