summaryrefslogtreecommitdiff
path: root/indra/llinventory/llnotecard.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-06-26 00:39:00 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-06-26 00:39:00 +0000
commit25c10ed028da5c547b11f1f461916897272b0e6d (patch)
tree350a5858f8970b6e28b2dc395625d74d8bd597b2 /indra/llinventory/llnotecard.cpp
parent6dd125d375b38455997a0c4b8747659f4c2351aa (diff)
QAR-628 merge string-cleanup-5 -r 90476:90508 -> release
dataserver-is-deprecated
Diffstat (limited to 'indra/llinventory/llnotecard.cpp')
-rw-r--r--indra/llinventory/llnotecard.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/indra/llinventory/llnotecard.cpp b/indra/llinventory/llnotecard.cpp
index 733a5673c5..60eba2decd 100644
--- a/indra/llinventory/llnotecard.cpp
+++ b/indra/llinventory/llnotecard.cpp
@@ -222,7 +222,7 @@ bool LLNotecard::importStream(std::istream& str)
if(success)
{
// Actually set the text
- mText = text;
+ mText = std::string(text);
}
delete[] text;
@@ -281,22 +281,12 @@ bool LLNotecard::exportStream( std::ostream& out_stream )
////////////////////////////////////////////////////////////////////////////
-const std::vector<LLPointer<LLInventoryItem> >& LLNotecard::getItems() const
-{
- return mItems;
-}
-
-LLString& LLNotecard::getText()
-{
- return mText;
-}
-
void LLNotecard::setItems(const std::vector<LLPointer<LLInventoryItem> >& items)
{
mItems = items;
}
-void LLNotecard::setText(const LLString& text)
+void LLNotecard::setText(const std::string& text)
{
mText = text;
}