[Libreoffice] weird code, please advise...
Michael Meeks
michael.meeks at suse.com
Tue Dec 13 10:09:29 PST 2011
Hi Olivier,
On Tue, 2011-12-13 at 16:02 -0200, Olivier Hallot wrote:
> I am stumbling on the following piece of code
>
> if (nodepath.getLength() != 0 || !(value >>= nodepath) || nodepath.getLength() == 0)
...
> in configmgr/source/configurationprovider.cxx:204,
> and nodepath is an rtl::OUString
>
> is this TRUE always, or did I missed something?
What you're missing is this mid-mashing operator overloading; whereby
>>= actually assigns a string to nodepath ;-) so what it says to me is:
if the length > 0 and we successfully assign it to something else from
'value' and the result is non zero - then don't fail ;-)
HTH,
Michael.
--
michael.meeks at suse.com <><, Pseudo Engineer, itinerant idiot
More information about the LibreOffice
mailing list