On Sunday 15 of April 2012, Rafael Dominguez wrote: > Here are the patching fixing the issues you pointed me out.
Yes, good, pushed, thanks again. One thing I didn't mention explicitly when talking about the named return value optimization was that it is done only if the named return variable is actually needed. If all return statements are expressions invoking constructors, then the named variable is not needed and the (non-named) return value optimization takes care of avoiding copies as well. So SdInsertPagesObjsDlg::GetList() can simply do if( ... ) return std::vector<rtl::OUString>(); return aLbTree.GetSelectEntryList( nType ); which will avoid the copy when calling the other function as well, and the function is not called at all when not needed. I tweaked that before committing, now it's perfect :). -- Lubos Lunak l.lu...@suse.cz _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice