1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00

Fix build of archivers/ark on 10.3 (old clang). Make the return

type of the lambda explicit, to avoid this build error:

error: return type 'QString' must match previous return type 'const QString' when lambda expression has unspecified explicit return type
                return QString();

Reported by:	pkg-fallout
Approved by:	tcberner (mentor, implicit)
This commit is contained in:
Adriaan de Groot 2018-04-08 12:12:24 +00:00
parent edc41da735
commit 79426f758a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466795

View File

@ -0,0 +1,11 @@
--- kerfuffle/pluginmanager.cpp.orig 2018-03-03 22:55:29 UTC
+++ kerfuffle/pluginmanager.cpp
@@ -258,7 +258,7 @@ QStringList PluginManager::sortByComment
bool PluginManager::libarchiveHasLzo()
{
// Step 1: look for the libarchive plugin, which is built against libarchive.
- const QString pluginPath = []() {
+ const QString pluginPath = []() -> const QString {
foreach (const QString &path, QCoreApplication::libraryPaths()) {
const QString pluginPath = QStringLiteral("%1/kerfuffle/kerfuffle_libarchive.so").arg(path);
if (QFileInfo::exists(pluginPath)) {