STORM-1459 "Wearing Tab" - Add ability to copy displayed inventory names to clipboard
Review Request #370 - Created June 29, 2011 and submitted
Jonathan Yap | Reviewers | ||
2.7 | viewer | ||
STORM-1459 | |||
None | viewer-development |
Add a feature on the "Wearing TAB" where users could copy to the clipboard everything you see in the "Wearing TAB". This would make the blogging communities life soooooo much easier instead of having to type out all that information. The label on this button needs input from someone on the XD team. I would like to know if my code for adding a CR to the end of every line but the last one could be done in a more elegant way.
Clicked on Send to Clipboard button and was able to paste results into an editor.
Posted (June 29, 2011, 7:52 a.m.)
Looks good apart from missing NULL check.
-
indra/newview/llpanelwearing.cpp (Diff revision 1) -
I'd use const_iterator instead.
-
indra/newview/llpanelwearing.cpp (Diff revision 1) -
A bit of code duplication. I'd rewrite it like this: ///////////////////////////////// if (!need_cr) { need_cr = true; } else { text += "\n"; } text += item->getName(); ///////////////////////////////// Please also make sure the item is not NULL to prevent a crash.
Review request changed
Updated (June 29, 2011, 12:14 p.m.)
-
- added Diff r2
Made changes requested by Oz and Vadim and with help from Alexandrea Fride.
Posted (June 29, 2011, 6:34 p.m.)
\n is a new line character(line-feed) \r is a carriage return. maybe change the comment to new line.
Review request changed
Updated (June 30, 2011, 1:27 a.m.)
-
- added Diff r3
Updated comment per Nicky's suggestion
Other reviews