diff options
| author | Glenn Smith <glenn@vector35.com> | 2025-04-24 14:46:37 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2025-04-25 13:43:01 -0400 |
| commit | 9262278979709181414664053523657355762707 (patch) | |
| tree | c472e0620b1fdfe3b3c9fd26c7cbf41425b27740 /update.cpp | |
| parent | 4aac12b0e429fedb02a645e5eb82ca2d88902e25 (diff) | |
std::function<bool(size_t,size_t)> ==> ProgressFunction
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; |
