[Libreoffice] Question about using namespace ::com::sun::star::uno
bjoern.michaelsen at canonical.com
Mon Mar 7 12:43:24 PST 2011
On Mon, 07 Mar 2011 15:03:25 -0500
Kohei Yoshida <kyoshida at novell.com> wrote:
> Yeah, although if you have to type a lot of it along with UNO_QUERY it
> becomes a bit cumbersome to type
> uno::Reference<container::XFoo> xSomeRef(SomeThing, uno::UNO_QUERY);
> instead of
> Reference<container::XFoo> xSomeRef(SomeThing, UNO_QUERY);
> Especially these two symbols are used a lot when you work in a code
> that is heavily UNO-centric.
> Still, I agree with the removal of using namespace
> com::sun::star::uno. I'm just not sure about spelling out the
> uno::Reference part... My thinking is that, if the existing file
> already specifies "using com::sun::star::uno::Reference", then I'd
> rather we leave that as-is rather than replacing each use of
> Reference with uno::Reference.
Yes. I updated it on the wiki:
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 490 bytes
Desc: not available
More information about the LibreOffice