summaryrefslogtreecommitdiff
path: root/update.cpp
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2022-01-27 22:43:28 -0500
committerKyleMiles <krm504@nyu.edu>2022-01-28 00:24:06 -0500
commit6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (patch)
treedace4156d03148bcaf02df138ab4e0d93e61bc6f /update.cpp
parent519c9db22367f2659d1a54599fab47e6313be06e (diff)
Format All Files
Diffstat (limited to 'update.cpp')
-rw-r--r--update.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/update.cpp b/update.cpp
index 3e80b935..3ae4158d 100644
--- a/update.cpp
+++ b/update.cpp
@@ -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; });
}