Apply clang-format update fixes

Reviewed By: igorsugak

Differential Revision: D25861849

fbshipit-source-id: 840dc1061e557717c7f9ffcccbc09c24b96b78e0
This commit is contained in:
Andres Suarez
2021-01-10 10:03:53 -08:00
committed by Facebook GitHub Bot
parent 98b74c4f49
commit 731e39445f
3 changed files with 36 additions and 31 deletions

View File

@@ -610,17 +610,18 @@ class JFlipperClient : public jni::HybridClass<JFlipperClient> {
const std::string app, const std::string app,
const std::string appId, const std::string appId,
const std::string privateAppDirectory) { const std::string privateAppDirectory) {
FlipperClient::init({{std::move(host), FlipperClient::init(
std::move(os), {{std::move(host),
std::move(device), std::move(os),
std::move(deviceId), std::move(device),
std::move(app), std::move(deviceId),
std::move(appId), std::move(app),
std::move(privateAppDirectory)}, std::move(appId),
callbackWorker->eventBase(), std::move(privateAppDirectory)},
connectionWorker->eventBase(), callbackWorker->eventBase(),
insecurePort, connectionWorker->eventBase(),
securePort}); insecurePort,
securePort});
} }
private: private:

View File

@@ -57,21 +57,24 @@ static CKComponent* componentForModel(
id<NSObject> context) { id<NSObject> context) {
return CK::BackgroundLayoutComponentBuilder() return CK::BackgroundLayoutComponentBuilder()
.component(CK::FlexboxComponentBuilder() .component(CK::FlexboxComponentBuilder()
.child({.component = CK::ButtonComponentBuilder() .child(
.action(nil) {.component = CK::ButtonComponentBuilder()
.title(@"Purple") .action(nil)
.titleColor(UIColor.purpleColor) .title(@"Purple")
.build()}) .titleColor(UIColor.purpleColor)
.child({.component = CK::ButtonComponentBuilder() .build()})
.action(nil) .child(
.title(@"Brown") {.component = CK::ButtonComponentBuilder()
.titleColor(UIColor.brownColor) .action(nil)
.build()}) .title(@"Brown")
.child({.component = CK::ButtonComponentBuilder() .titleColor(UIColor.brownColor)
.action(nil) .build()})
.title(@"Cyan") .child(
.titleColor(UIColor.cyanColor) {.component = CK::ButtonComponentBuilder()
.build()}) .action(nil)
.title(@"Cyan")
.titleColor(UIColor.cyanColor)
.build()})
.build()) .build())
.background(CK::ImageComponentBuilder() .background(CK::ImageComponentBuilder()
.image([UIImage imageNamed:@"sonarpattern"]) .image([UIImage imageNamed:@"sonarpattern"])

View File

@@ -124,11 +124,12 @@ bool ConnectionContextStore::resetState() {
int ret = mkdir(dirPath.c_str(), S_IRUSR | S_IWUSR | S_IXUSR); int ret = mkdir(dirPath.c_str(), S_IRUSR | S_IWUSR | S_IXUSR);
return ret == 0; return ret == 0;
} else if (info.st_mode & S_IFDIR) { } else if (info.st_mode & S_IFDIR) {
for (auto file : {CSR_FILE_NAME, for (auto file :
FLIPPER_CA_FILE_NAME, {CSR_FILE_NAME,
CLIENT_CERT_FILE_NAME, FLIPPER_CA_FILE_NAME,
PRIVATE_KEY_FILE, CLIENT_CERT_FILE_NAME,
CONNECTION_CONFIG_FILE}) { PRIVATE_KEY_FILE,
CONNECTION_CONFIG_FILE}) {
std::remove(absoluteFilePath(file).c_str()); std::remove(absoluteFilePath(file).c_str());
} }
return true; return true;