On 05.10.2011 22:02, Maciej Rumianowski wrote:
Dnia 2011-10-05, śro o godzinie 17:35 +0200, Lubos Lunak pisze:
On Wednesday 05 of October 2011, Jan Holesovsky wrote:
That would allow you to convert the pO->GetData() to something like
po->data(), instead of&(*pO)[0] (and similar) used on many places...
That same would be allowed by
class bytes : public std::vector<sal_uInt8>
{
public:
const sal_uInt8* data() const { return&front(); }
...
So if it is desired solution I can modify Patches?
why not just use "&po->front()" directly instead, that's nicer than
&(*po)[0] and no need to introduce a class just for this IMHO.
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.