From 53f24729fdad9fd4075d007a935c54f86d42426c Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Mon, 23 Nov 2020 17:39:43 -0330 Subject: [PATCH] Fix compile warning and error in clang. --- src/gui/FileListWidget.cxx | 2 +- src/gui/FileListWidget.hxx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/FileListWidget.cxx b/src/gui/FileListWidget.cxx index be68d632f..c0a889f1b 100644 --- a/src/gui/FileListWidget.cxx +++ b/src/gui/FileListWidget.cxx @@ -75,7 +75,7 @@ void FileListWidget::setLocation(const FilesystemNode& node, { progress().resetProgress(); progress().open(); - class FilesystemNode::CancelCheck isCancelled = []() { + FilesystemNode::CancelCheck isCancelled = []() { return myProgressDialog->isCancelled(); }; diff --git a/src/gui/FileListWidget.hxx b/src/gui/FileListWidget.hxx index 98c149223..63c39136f 100644 --- a/src/gui/FileListWidget.hxx +++ b/src/gui/FileListWidget.hxx @@ -69,7 +69,6 @@ class FileListWidget : public StringListWidget @param node The directory to display. If this is a file, its parent will instead be used, and the file will be selected @param select An optional entry to select (if applicable) - @param recursive Recursively list sub-directories too */ void setDirectory(const FilesystemNode& node, const string& select = EmptyString);