From a913bd059790781bb4706bada40309c441129026 Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Wed, 9 Oct 2024 15:52:01 +0200 Subject: [PATCH] Add `const` modifier --- android/src/main/cpp/MarkdownUtils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/android/src/main/cpp/MarkdownUtils.cpp b/android/src/main/cpp/MarkdownUtils.cpp index c95bbfa7..dceba15f 100644 --- a/android/src/main/cpp/MarkdownUtils.cpp +++ b/android/src/main/cpp/MarkdownUtils.cpp @@ -11,15 +11,15 @@ namespace livemarkdown { jni::alias_ref jThis, jni::alias_ref input, int parserId) { - auto markdownRuntime = expensify::livemarkdown::getMarkdownRuntime(); + const auto markdownRuntime = expensify::livemarkdown::getMarkdownRuntime(); jsi::Runtime &rt = markdownRuntime->getJSIRuntime(); - auto markdownWorklet = expensify::livemarkdown::getMarkdownWorklet(parserId); + const auto markdownWorklet = expensify::livemarkdown::getMarkdownWorklet(parserId); - auto text = jsi::String::createFromUtf8(rt, input->toStdString()); - auto result = markdownRuntime->runGuarded(markdownWorklet, text); + const auto text = jsi::String::createFromUtf8(rt, input->toStdString()); + const auto result = markdownRuntime->runGuarded(markdownWorklet, text); - auto json = rt.global().getPropertyAsObject(rt, "JSON").getPropertyAsFunction(rt, "stringify").call(rt, result).asString(rt).utf8(rt); + const auto json = rt.global().getPropertyAsObject(rt, "JSON").getPropertyAsFunction(rt, "stringify").call(rt, result).asString(rt).utf8(rt); return jni::make_jstring(json); }