From 71537daefda469c390b10f48bd01c9a2d59b8624 Mon Sep 17 00:00:00 2001
From: Mnikolenko Productengine <mnikolenko@productengine.com>
Date: Fri, 2 Oct 2020 18:53:36 +0300
Subject: [PATCH] SL-14057 FIXED The viewer crashes when trying to make a
 transaction exceeding the L$ balance

---
 indra/newview/llfloaterbuycurrency.cpp | 2 +-
 indra/newview/llfloaterbuycurrency.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/indra/newview/llfloaterbuycurrency.cpp b/indra/newview/llfloaterbuycurrency.cpp
index a3e9161ee89..5ee6f122bfa 100644
--- a/indra/newview/llfloaterbuycurrency.cpp
+++ b/indra/newview/llfloaterbuycurrency.cpp
@@ -307,7 +307,7 @@ void LLFloaterBuyCurrency::buyCurrency(const std::string& name, S32 price)
 }
 
 // static
-void LLFloaterBuyCurrency::handleBuyCurrency(bool has_piof, bool has_target, const std::string& name, S32 price)
+void LLFloaterBuyCurrency::handleBuyCurrency(bool has_piof, bool has_target, const std::string name, S32 price)
 {
 	delete sPropertiesRequest;
 	sPropertiesRequest = NULL;
diff --git a/indra/newview/llfloaterbuycurrency.h b/indra/newview/llfloaterbuycurrency.h
index 1722f56dc1b..88d3d17cd6a 100644
--- a/indra/newview/llfloaterbuycurrency.h
+++ b/indra/newview/llfloaterbuycurrency.h
@@ -54,7 +54,7 @@ class LLFloaterBuyCurrency
 	static void buyCurrency();
 	static void buyCurrency(const std::string& name, S32 price);
 
-		static void handleBuyCurrency(bool has_piof, bool has_target, const std::string& name, S32 price);
+		static void handleBuyCurrency(bool has_piof, bool has_target, const std::string name, S32 price);
 		/* name should be a noun phrase of the object or service being bought:
 				"That object costs"
 				"Trying to give"
-- 
GitLab