summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2010-01-28 09:50:06 +0200
committerMike Antipov <mantipov@productengine.com>2010-01-28 09:50:06 +0200
commitb80cd227042f8e461fa0a2f9a5ae3b448842b863 (patch)
tree06bfd54dbbd7a6119e45750cb5405a96dc303392
parentb3763f1ec1e20226bf489042346c5827d187ba42 (diff)
Work on major bug EXT-3985 ([BSI] Landmarks created in Viewer 2.0 show up with 1@ in Viewer 1.23.x)
-- removed using of the LM Prefix while renaming Inventori item --HG-- branch : product-engine
-rw-r--r--indra/newview/llviewerinventory.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp
index f7529dd553..a3cbd80c84 100644
--- a/indra/newview/llviewerinventory.cpp
+++ b/indra/newview/llviewerinventory.cpp
@@ -1310,27 +1310,10 @@ void LLViewerInventoryItem::setSortField(S32 sortField)
LLFavoritesOrderStorage::instance().setSortIndex(mUUID, sortField);
}
+// *TODO: mantipov: REMOVE, EXT-3985
void LLViewerInventoryItem::rename(const std::string& n)
{
- using std::string;
-
- string new_name(n);
- LLStringUtil::replaceNonstandardASCII(new_name, ' ');
- LLStringUtil::replaceChar(new_name, '|', ' ');
- LLStringUtil::trim(new_name);
- LLStringUtil::truncate(new_name, DB_INV_ITEM_NAME_STR_LEN);
-
- const char separator = getSeparator();
- const string::size_type separatorPos = mName.find(separator, 0);
-
- if (separatorPos < string::npos)
- {
- mName.replace(separatorPos + 1, string::npos, new_name);
- }
- else
- {
- mName = new_name;
- }
+ LLInventoryItem::rename(n);
}
const LLPermissions& LLViewerInventoryItem::getPermissions() const