Fix compile warning and error in clang.

This commit is contained in:
Stephen Anthony 2020-11-23 17:39:43 -03:30
parent d309279852
commit 53f24729fd
2 changed files with 1 additions and 2 deletions

View File

@ -75,7 +75,7 @@ void FileListWidget::setLocation(const FilesystemNode& node,
{ {
progress().resetProgress(); progress().resetProgress();
progress().open(); progress().open();
class FilesystemNode::CancelCheck isCancelled = []() { FilesystemNode::CancelCheck isCancelled = []() {
return myProgressDialog->isCancelled(); return myProgressDialog->isCancelled();
}; };

View File

@ -69,7 +69,6 @@ class FileListWidget : public StringListWidget
@param node The directory to display. If this is a file, its parent @param node The directory to display. If this is a file, its parent
will instead be used, and the file will be selected will instead be used, and the file will be selected
@param select An optional entry to select (if applicable) @param select An optional entry to select (if applicable)
@param recursive Recursively list sub-directories too
*/ */
void setDirectory(const FilesystemNode& node, void setDirectory(const FilesystemNode& node,
const string& select = EmptyString); const string& select = EmptyString);