From 2ba431964429fd116da3cf6c8aa8cda5a5d89b07 Mon Sep 17 00:00:00 2001
From: XenHat <me@xenh.at>
Date: Sun, 18 Dec 2022 21:53:43 -0500
Subject: [PATCH] The compiler lied!

---
 indra/newview/llexternaleditor.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/indra/newview/llexternaleditor.cpp b/indra/newview/llexternaleditor.cpp
index 0837b280ac5..660d955bef3 100644
--- a/indra/newview/llexternaleditor.cpp
+++ b/indra/newview/llexternaleditor.cpp
@@ -49,11 +49,11 @@ LLExternalEditor::EErrorCode LLExternalEditor::setCommand(const std::string& env
 		static std::string comspec = getenv("COMSPEC");
 		static const std::string os_cmd = comspec.append(" /C START \"%s\"");
 #elif LL_DARWIN
-		constexpr std::string_view os_cmd = "/usr/bin/open \"%s\"";
+		static const std::string os_cmd = "/usr/bin/open \"%s\"";
 #elif LL_LINUX
-		constexpr std::string_view os_cmd = "/usr/bin/xdg-open \"%s\"";
+		static const std::string os_cmd = "/usr/bin/xdg-open \"%s\"";
 #endif
-		cmd = findCommand("",os_cmd);
+		cmd = findCommand("", os_cmd);
 		if (cmd.empty())
 		{
 			LL_WARNS() << "Failed to find the OS-specific open handler \"" << cmd << "\"" << LL_ENDL;
-- 
GitLab