summaryrefslogtreecommitdiff
path: root/indra/newview/tests/llviewerhelputil_test.cpp
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2010-01-15 12:35:10 +0200
committerMike Antipov <mantipov@productengine.com>2010-01-15 12:35:10 +0200
commit3cf98103561d79a6758bbb57662e1dc2e4a5198c (patch)
tree492ca7bd797c34ed29e927e649c5aa3582ff9f49 /indra/newview/tests/llviewerhelputil_test.cpp
parenteb12963eec5ffad5c8be59e97301fa98ef4dda7a (diff)
parent30a47979a13af8d6c3e89ce5dddb5d7c37011012 (diff)
Merge with default branch
--HG-- branch : product-engine
Diffstat (limited to 'indra/newview/tests/llviewerhelputil_test.cpp')
-rw-r--r--indra/newview/tests/llviewerhelputil_test.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/tests/llviewerhelputil_test.cpp b/indra/newview/tests/llviewerhelputil_test.cpp
index ec612c4606..d7dd199722 100644
--- a/indra/newview/tests/llviewerhelputil_test.cpp
+++ b/indra/newview/tests/llviewerhelputil_test.cpp
@@ -78,9 +78,21 @@ static void substitute_string(std::string &input, const std::string &search, con
}
}
+class LLAgent
+{
+public:
+ LLAgent() {}
+ ~LLAgent() {}
+ BOOL isGodlike() const { return FALSE; }
+private:
+ int dummy;
+};
+LLAgent gAgent;
+
std::string LLWeb::expandURLSubstitutions(const std::string &url,
const LLSD &default_subs)
{
+ (void)gAgent.isGodlike(); // ref symbol to stop compiler from stripping it
std::string new_url = url;
substitute_string(new_url, "[TOPIC]", default_subs["TOPIC"].asString());
substitute_string(new_url, "[VERSION]", gVersion);
@@ -91,6 +103,7 @@ std::string LLWeb::expandURLSubstitutions(const std::string &url,
return new_url;
}
+
//----------------------------------------------------------------------------
namespace tut