diff options
Diffstat (limited to 'update.cpp')
| -rw-r--r-- | update.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -24,8 +24,7 @@ using namespace BinaryNinja; using namespace std; -namespace BinaryNinja -{ +namespace BinaryNinja { struct UpdateProgress { function<bool(uint64_t progress, uint64_t total)> func; @@ -36,7 +35,7 @@ namespace BinaryNinja return self->func(progress, total); } }; -} +} // namespace BinaryNinja vector<UpdateChannel> UpdateChannel::GetList() @@ -86,19 +85,19 @@ bool UpdateChannel::AreUpdatesAvailable(uint64_t* expireTime, uint64_t* serverTi BNUpdateResult UpdateChannel::UpdateToVersion(const string& version) { - return UpdateToVersion(version, [](uint64_t, uint64_t){ return true; }); + return UpdateToVersion(version, [](uint64_t, uint64_t) { return true; }); } -BNUpdateResult UpdateChannel::UpdateToVersion(const string& version, - const function<bool(uint64_t progress, uint64_t total)>& progress) +BNUpdateResult UpdateChannel::UpdateToVersion( + const string& version, const function<bool(uint64_t progress, uint64_t total)>& progress) { UpdateProgress up; up.func = progress; char* errors; - BNUpdateResult result = BNUpdateToVersion(name.c_str(), version.c_str(), &errors, - UpdateProgress::UpdateCallback, &up); + BNUpdateResult result = + BNUpdateToVersion(name.c_str(), version.c_str(), &errors, UpdateProgress::UpdateCallback, &up); if (errors) { @@ -113,7 +112,7 @@ BNUpdateResult UpdateChannel::UpdateToVersion(const string& version, BNUpdateResult UpdateChannel::UpdateToLatestVersion() { - return UpdateToLatestVersion([](uint64_t, uint64_t){ return true; }); + return UpdateToLatestVersion([](uint64_t, uint64_t) { return true; }); } |
