summaryrefslogtreecommitdiff
path: root/update.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-04-24 14:46:37 -0400
committerGlenn Smith <glenn@vector35.com>2025-04-25 13:43:01 -0400
commit9262278979709181414664053523657355762707 (patch)
treec472e0620b1fdfe3b3c9fd26c7cbf41425b27740 /update.cpp
parent4aac12b0e429fedb02a645e5eb82ca2d88902e25 (diff)
std::function<bool(size_t,size_t)> ==> ProgressFunction
Diffstat (limited to 'update.cpp')
-rw-r--r--update.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/update.cpp b/update.cpp
index a1ad18ad..7fe2eec7 100644
--- a/update.cpp
+++ b/update.cpp
@@ -27,7 +27,7 @@ using namespace std;
namespace BinaryNinja {
struct UpdateProgress
{
- function<bool(size_t progress, size_t total)> func;
+ ProgressFunction func;
static bool UpdateCallback(void* ctxt, size_t progress, size_t total)
{
@@ -90,7 +90,7 @@ BNUpdateResult UpdateChannel::UpdateToVersion(const string& version)
BNUpdateResult UpdateChannel::UpdateToVersion(
- const string& version, const function<bool(size_t progress, size_t total)>& progress)
+ const string& version, const ProgressFunction& progress)
{
UpdateProgress up;
up.func = progress;
@@ -116,7 +116,7 @@ BNUpdateResult UpdateChannel::UpdateToLatestVersion()
}
-BNUpdateResult UpdateChannel::UpdateToLatestVersion(const function<bool(size_t progress, size_t total)>& progress)
+BNUpdateResult UpdateChannel::UpdateToLatestVersion(const ProgressFunction& progress)
{
UpdateProgress up;
up.func = progress;