diff --git a/android/src/main/cpp/FrameProcessorRuntimeManager.cpp b/android/src/main/cpp/FrameProcessorRuntimeManager.cpp index 811181a..c54632c 100644 --- a/android/src/main/cpp/FrameProcessorRuntimeManager.cpp +++ b/android/src/main/cpp/FrameProcessorRuntimeManager.cpp @@ -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; } diff --git a/android/src/main/cpp/FrameProcessorRuntimeManager.h b/android/src/main/cpp/FrameProcessorRuntimeManager.h index f8cbc02..49bcdd3 100644 --- a/android/src/main/cpp/FrameProcessorRuntimeManager.h +++ b/android/src/main/cpp/FrameProcessorRuntimeManager.h @@ -53,7 +53,7 @@ class FrameProcessorRuntimeManager : public jni::HybridClass plugin); - void logErrorToJS(std::string message); + void logErrorToJS(const std::string& message); }; } // namespace vision