From 411506127c782ef064ca13ef4c27e9bd49410760 Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Wed, 13 Jan 2021 16:42:34 +0300 Subject: [PATCH] Fix RuntimeCheck usage (#4638) --- kotlin-native/runtime/src/objc/cpp/ObjCExportClasses.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-native/runtime/src/objc/cpp/ObjCExportClasses.mm b/kotlin-native/runtime/src/objc/cpp/ObjCExportClasses.mm index 655cc9eca0b..888a88a4b87 100644 --- a/kotlin-native/runtime/src/objc/cpp/ObjCExportClasses.mm +++ b/kotlin-native/runtime/src/objc/cpp/ObjCExportClasses.mm @@ -233,7 +233,7 @@ OBJ_GETTER(Kotlin_boxDouble, KDouble value); static void injectToRuntime() { // If the code below fails, then it is most likely caused by KT-42254. - const char* errorMessage = "runtime injected twice; https://youtrack.jetbrains.com/issue/KT-42254 might be related"; + constexpr const char* errorMessage = "runtime injected twice; https://youtrack.jetbrains.com/issue/KT-42254 might be related"; RuntimeCheck(Kotlin_ObjCExport_toKotlinSelector == nullptr, errorMessage); Kotlin_ObjCExport_toKotlinSelector = @selector(toKotlin:);