From 9262278979709181414664053523657355762707 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 24 Apr 2025 14:46:37 -0400 Subject: std::function ==> ProgressFunction --- ui/progresstask.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ui/progresstask.h') diff --git a/ui/progresstask.h b/ui/progresstask.h index a1a375cb..6765ec2d 100644 --- a/ui/progresstask.h +++ b/ui/progresstask.h @@ -88,7 +88,7 @@ class BINARYNINJAUIAPI ProgressDialog : public QDialog \code{.cpp} // Starts task ProgressTask* task = new ProgressTask("Long Operation", "Long Operation", "Cancel", - [](std::function progress) { + [](ProgressFunction progress) { doLongOperationWithProgress(progress); // Report progress by calling the progress function @@ -107,7 +107,7 @@ class BINARYNINJAUIAPI ProgressTask : public QObject Q_OBJECT ProgressDialog* m_dialog; - std::function)> m_func; + std::function m_func; std::thread m_thread; std::mutex m_mutex; std::condition_variable m_cv; @@ -133,7 +133,7 @@ class BINARYNINJAUIAPI ProgressTask : public QObject cancellation. */ ProgressTask(QWidget* parent, const QString& name, const QString& text, const QString& cancel, - std::function)> func); + std::function func); virtual ~ProgressTask(); /*! @@ -279,7 +279,7 @@ class BINARYNINJAUIAPI BackgroundThread : public QObject Q_OBJECT public: - typedef std::function ProgressFunction; + typedef BinaryNinja::ProgressFunction ProgressFunction; typedef std::function ThenFunction; typedef std::function CatchFunction; -- cgit v1.3.1