chore: Fix C++ indents
This commit is contained in:
parent
45fad5ab19
commit
5ab1a72e01
@ -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));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user