diff --git a/indra/llui/tests/llurlentry_test.cpp b/indra/llui/tests/llurlentry_test.cpp
index e7af64187c726671c4bd7875ec293a1df30330ae..89a80f1e73fe488073fb48ad205d9a2840f2a788 100644
--- a/indra/llui/tests/llurlentry_test.cpp
+++ b/indra/llui/tests/llurlentry_test.cpp
@@ -50,7 +50,7 @@ namespace tut
 		std::string url = "";
 		boost::wcmatch result;
 		LLWString wtext = utf8str_to_wstring(text);
-		const wchar_t *wctext = (const wchar_t *)(wtext.c_str());
+		const wchar_t *wctext = wtext.c_str();
 		bool found = boost::regex_search(wctext, result, regex);
 		if (found)
 		{