summaryrefslogtreecommitdiff
path: root/indra/llinventory/llinventory.h
diff options
context:
space:
mode:
authorVladimir Pchelko <pchelko@productengine.com>2010-06-08 18:44:11 +0300
committerVladimir Pchelko <pchelko@productengine.com>2010-06-08 18:44:11 +0300
commitd0dd18a9087d107fd2feec17f554bef4be81c1d5 (patch)
treef98105de58a830a55f0c9344dcfe7acccd18c90d /indra/llinventory/llinventory.h
parent206745402589974237802d5394e76f2885c3f0df (diff)
EXT-6934 FIXED method LLInventoryObject::rename does not change Name, if string is empty after correction.
Problem description: LLInventoryObject::rename corrects incoming string and remove odd spaces, for example converts string " " to empty string "", as the result empty string can be set as InventoryObject name. Reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/505/ --HG-- branch : product-engine
Diffstat (limited to 'indra/llinventory/llinventory.h')
-rw-r--r--indra/llinventory/llinventory.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llinventory/llinventory.h b/indra/llinventory/llinventory.h
index b083e305b1..4c6ac83ab8 100644
--- a/indra/llinventory/llinventory.h
+++ b/indra/llinventory/llinventory.h
@@ -92,9 +92,13 @@ public:
void setParent(const LLUUID& new_parent);
void setType(LLAssetType::EType type);
+private:
+ // in place correction for inventory name string
+ void correctInventoryName(std::string& name);
+
//--------------------------------------------------------------------
// File Support
- // Implemented here so that a minimal information set can be transmitted
+ // Implemented here so that a minimal information set can be transmitted
// between simulator and viewer.
//--------------------------------------------------------------------
public: