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

View File

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