diff --git a/indra/newview/llfloaterbuycurrency.cpp b/indra/newview/llfloaterbuycurrency.cpp
index a3e9161ee89d9a12e29a7aa2dc4677103d3fdba4..5ee6f122bfa51599d031409703e8c33e2fada19b 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 1722f56dc1b5d03815cd0ccd62965cef44b189aa..88d3d17cd6ac7c55087ba10574d75f3e64df152c 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"