diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-07-15 08:54:55 +0100 |
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-07-15 08:54:55 +0100 |
| commit | f65a95157ae603116e61ee0203c0b22e6ac4f903 (patch) | |
| tree | 84a561d48e9ec2dcec59e435850756d727a8e266 /indra/newview/llinventorylistitem.cpp | |
| parent | be299644e3448ad2d613b97aba478c5807f346ec (diff) | |
| parent | 83e4862f9918037fc89e527d5f8f5b26323f30f0 (diff) | |
merge from PE's viewer-trunk (viewer-public)
Diffstat (limited to 'indra/newview/llinventorylistitem.cpp')
| -rw-r--r-- | indra/newview/llinventorylistitem.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llinventorylistitem.cpp b/indra/newview/llinventorylistitem.cpp index e4a7a158a3..ea57d36c06 100644 --- a/indra/newview/llinventorylistitem.cpp +++ b/indra/newview/llinventorylistitem.cpp @@ -234,6 +234,17 @@ const std::string& LLPanelInventoryListItemBase::getDescription() const return inv_item->getDescription(); } +time_t LLPanelInventoryListItemBase::getCreationDate() const +{ + LLViewerInventoryItem* inv_item = getItem(); + if (NULL == inv_item) + { + return 0; + } + + return inv_item->getCreationDate(); +} + LLViewerInventoryItem* LLPanelInventoryListItemBase::getItem() const { return gInventory.getItem(mInventoryItemUUID); |
