perf: Avoid error message copying
This commit is contained in:
parent
4bacee796a
commit
da84a0fd42
@ -82,7 +82,7 @@ CameraView* FrameProcessorRuntimeManager::findCameraViewById(int viewId) {
|
||||
return result->cthis();
|
||||
}
|
||||
|
||||
void FrameProcessorRuntimeManager::logErrorToJS(std::string message) {
|
||||
void FrameProcessorRuntimeManager::logErrorToJS(const std::string& message) {
|
||||
if (!this->jsCallInvoker_) {
|
||||
return;
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ class FrameProcessorRuntimeManager : public jni::HybridClass<FrameProcessorRunti
|
||||
void initializeRuntime();
|
||||
void installJSIBindings();
|
||||
void registerPlugin(alias_ref<FrameProcessorPlugin::javaobject> plugin);
|
||||
void logErrorToJS(std::string message);
|
||||
void logErrorToJS(const std::string& message);
|
||||
};
|
||||
|
||||
} // namespace vision
|
||||
|
Loading…
Reference in New Issue
Block a user