Skip to content

Commit bab96b9

Browse files
ComixHereddevillg
authored andcommitted
fix: building failed when using Qt5
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
1 parent 62baa65 commit bab96b9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

libs/linglong/src/linglong/package/uab_packager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ prepareSymlink(const std::filesystem::path &sourceRoot,
381381
}
382382

383383
if (maxDepth < 0) {
384-
return LINGLONG_ERR(QString{ "resolve symlink %1 too deep" }.arg(source.string()));
384+
return LINGLONG_ERR(QString{ "resolve symlink %1 too deep" }.arg(source.c_str()));
385385
}
386386

387387
return std::make_pair(std::move(source), std::move(destination));
@@ -658,12 +658,12 @@ utils::error::Result<void> UABPackager::prepareBundle(const QDir &bundleDir, boo
658658
if (!std::filesystem::exists(source, ec)) {
659659
if (ec) {
660660
return LINGLONG_ERR(
661-
QString{ "couldn't check file %1 exists: %2" }.arg(source.string(),
661+
QString{ "couldn't check file %1 exists: %2" }.arg(source.c_str(),
662662
ec.message().c_str()));
663663
}
664664

665665
// source file must exist, it must be a regular file
666-
return LINGLONG_ERR(QString{ "file %1 doesn't exist" }.arg(source.string()));
666+
return LINGLONG_ERR(QString{ "file %1 doesn't exist" }.arg(source.c_str()));
667667
}
668668

669669
auto relative = destination.lexically_relative(fakePrefix);
@@ -946,7 +946,7 @@ UABPackager::filteringFiles(const LayerDir &layer) const noexcept
946946

947947
if (ec) {
948948
return LINGLONG_ERR(
949-
QString{ "failed to check file %1 type: %2" }.arg(file.path().string(),
949+
QString{ "failed to check file %1 type: %2" }.arg(file.path().c_str(),
950950
ec.message().c_str()));
951951
}
952952

0 commit comments

Comments
 (0)