diff options
Diffstat (limited to 'update.cpp')
| -rw-r--r-- | update.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |
