All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

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.
Review request changed
Updated (June 30, 2011, 1:27 a.m.)
Updated comment per Nicky's suggestion
Ship it!
Posted (June 30, 2011, 11:02 a.m.)
No major objections.
indra/newview/llpanelwearing.cpp (Diff revision 3)
 
 
 
 
 
 
 
Looks a bit confusing.
  1. but it's elegant!
  2. Just needs some parens:
    text += (iter != data.end()) ? item->getName() + "\n" : item->getName();
    
    But otherwise it looks just like a a lot of lines I've run across in the past, and with the comment it's not all that difficult to understand.