From 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 27 Jan 2022 22:43:28 -0500 Subject: Format All Files --- update.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'update.cpp') 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 func; @@ -36,7 +35,7 @@ namespace BinaryNinja return self->func(progress, total); } }; -} +} // namespace BinaryNinja vector 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& progress) +BNUpdateResult UpdateChannel::UpdateToVersion( + const string& version, const function& 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; }); } -- cgit v1.3.1