Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 08/30/2012 01:09 PM, Caolán McNamara wrote:
What's the most efficient way to repeatedly get an up-to-date
configuration value ?

Just do
sal_Int32 nFoo = officecfg::Office::Writer::Foo::get();
every time you need Foo, or request Foo once and register some listener
of some kind on Foo modifications ?

Which is more efficient overall depends on whether there will be more instances where your code wants to obtain the value or more instances of other code modifying it. I would go with the simple approach of reading the value afresh whenever needed.

Stephan

Context


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.