chore: Fix C++ indents

This commit is contained in:
Marc Rousavy 2021-06-29 10:38:13 +02:00
parent 45fad5ab19
commit 5ab1a72e01
2 changed files with 16 additions and 14 deletions

View File

@ -6,6 +6,7 @@
#include <android/log.h>
#include <jni.h>
#include <utility>
#include <string>
#include "RuntimeDecorator.h"
#include "RuntimeManager.h"
@ -83,22 +84,22 @@ CameraView* FrameProcessorRuntimeManager::findCameraViewById(int viewId) {
}
void FrameProcessorRuntimeManager::logErrorToJS(const std::string& message) {
if (!this->jsCallInvoker_) {
return;
}
if (!this->jsCallInvoker_) {
return;
}
this->jsCallInvoker_->invokeAsync([this, message]() {
if (this->runtime_ == nullptr) {
return;
}
this->jsCallInvoker_->invokeAsync([this, message]() {
if (this->runtime_ == nullptr) {
return;
}
auto& runtime = *this->runtime_;
auto consoleError = runtime
.global()
.getPropertyAsObject(runtime, "console")
.getPropertyAsFunction(runtime, "error");
consoleError.call(runtime, jsi::String::createFromUtf8(runtime, message));
});
auto& runtime = *this->runtime_;
auto consoleError = runtime
.global()
.getPropertyAsObject(runtime, "console")
.getPropertyAsFunction(runtime, "error");
consoleError.call(runtime, jsi::String::createFromUtf8(runtime, message));
});
}

View File

@ -8,6 +8,7 @@
#include <jsi/jsi.h>
#include <ReactCommon/CallInvokerHolder.h>
#include <memory>
#include <string>
#include "Scheduler.h"
#include "RuntimeManager.h"