summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/lldate.cpp5
-rw-r--r--indra/llcommon/lldate.h2
-rw-r--r--indra/llcommon/lluri.cpp5
-rw-r--r--indra/llcommon/lluri.h3
-rw-r--r--indra/test/lltut.cpp4
5 files changed, 17 insertions, 2 deletions
diff --git a/indra/llcommon/lldate.cpp b/indra/llcommon/lldate.cpp
index 3cc4cca706..6b4bd0d7ef 100644
--- a/indra/llcommon/lldate.cpp
+++ b/indra/llcommon/lldate.cpp
@@ -234,6 +234,11 @@ void LLDate::secondsSinceEpoch(F64 seconds)
mSecondsSinceEpoch = seconds;
}
+bool operator!=(const LLDate& first, const LLDate& second)
+{
+ return (first.secondsSinceEpoch() != second.secondsSinceEpoch());
+}
+
std::ostream& operator<<(std::ostream& s, const LLDate& date)
{
date.toStream(s);
diff --git a/indra/llcommon/lldate.h b/indra/llcommon/lldate.h
index 7bff18d927..2b53c8cc9a 100644
--- a/indra/llcommon/lldate.h
+++ b/indra/llcommon/lldate.h
@@ -116,6 +116,8 @@ private:
F64 mSecondsSinceEpoch;
};
+// this operator required for tut
+bool operator!=(const LLDate& first, const LLDate& second);
// Helper function to stream out a date
std::ostream& operator<<(std::ostream& s, const LLDate& date);
diff --git a/indra/llcommon/lluri.cpp b/indra/llcommon/lluri.cpp
index 57d55c7e71..173479ab33 100644
--- a/indra/llcommon/lluri.cpp
+++ b/indra/llcommon/lluri.cpp
@@ -599,3 +599,8 @@ std::string LLURI::mapToQueryString(const LLSD& queryMap)
}
return query_string;
}
+
+bool operator!=(const LLURI& first, const LLURI& second)
+{
+ return (first.asString() != second.asString());
+}
diff --git a/indra/llcommon/lluri.h b/indra/llcommon/lluri.h
index 953e652704..c2e6ef4a9b 100644
--- a/indra/llcommon/lluri.h
+++ b/indra/llcommon/lluri.h
@@ -187,4 +187,7 @@ private:
std::string mEscapedQuery;
};
+// this operator required for tut
+bool operator!=(const LLURI& first, const LLURI& second);
+
#endif // LL_LLURI_H
diff --git a/indra/test/lltut.cpp b/indra/test/lltut.cpp
index b9a46544fa..89ec9a7388 100644
--- a/indra/test/lltut.cpp
+++ b/indra/test/lltut.cpp
@@ -124,7 +124,7 @@ namespace tut
{
ensure_equals(msg + " map keys",
actual_iter->first, expected_iter->first);
- ensure_equals(msg + "[" + actual_iter->first + "]",
+ ensure_equals((msg + "[" + actual_iter->first + "]").c_str(),
actual_iter->second, expected_iter->second);
++actual_iter;
++expected_iter;
@@ -137,7 +137,7 @@ namespace tut
for(int i = 0; i < actual.size(); ++i)
{
- ensure_equals(msg + llformat("[%d]", i),
+ ensure_equals((msg + llformat("[%d]", i)).c_str(),
actual[i], expected[i]);
}
return;