summaryrefslogtreecommitdiff
path: root/indra/newview/lllocationhistory.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-07-27 16:50:01 +0000
committerJames Cook <james@lindenlab.com>2009-07-27 16:50:01 +0000
commitca51e8f33dfa0cd455438f11902fb1d839bf6206 (patch)
tree0e261edeab3e2e3f53a1f3ab825aa76906fff152 /indra/newview/lllocationhistory.cpp
parentf5ba6df4c2dc5a5e0842ed028dd4de01406dca3b (diff)
Merge xui-army-8 to pick up 2+ weeks of art, colors, and dialog layout changes.
svn merge -r128075:128364 svn+ssh://svn.lindenlab.com/svn/linden/branches/skinning/xui-army-8
Diffstat (limited to 'indra/newview/lllocationhistory.cpp')
-rw-r--r--indra/newview/lllocationhistory.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lllocationhistory.cpp b/indra/newview/lllocationhistory.cpp
index 179eca2532..ed56e3e195 100644
--- a/indra/newview/lllocationhistory.cpp
+++ b/indra/newview/lllocationhistory.cpp
@@ -55,6 +55,11 @@ void LLLocationHistory::addItem(std::string item)
mItems.erase(mItems.begin(), mItems.end()-max_items);
}
+void LLLocationHistory::removeItems()
+{
+ mItems.erase(mItems.begin(), mItems.end());
+}
+
bool LLLocationHistory::getMatchingItems(std::string substring, location_list_t& result) const
{