summaryrefslogtreecommitdiff
path: root/update.cpp
diff options
context:
space:
mode:
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;