openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Regina Henschel <rb.hensc...@t-online.de>
Subject Re: Need help to understand code "moVert.get( XML_horz ) != XML_horz"
Date Fri, 25 Apr 2014 08:07:27 GMT
Hi Andre,

thanks, for the pointer. It is clear now.

Andre Fischer schrieb:
[..]
>
> moVert is defined as
>
> OptValue< sal_Int32 > moVert;
>
> The oox::OptValue template class, defined in
> oox/inc/oox/helper/helper.hxx, does not provide direct access to its
> value.  You have to call the get() method to read the
> value<http://aoodev1:8080/source/xref/current/main/oox/inc/oox/helper/helper.hxx>.
>
>
> Looking at the code you pasted, I am asking myself if there should not
> be a call to OptValue::has() before the get() method is called.

"has" is inside get, when get is called with a parameter.

Kind regards
Regina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Mime
View raw message