[Libreoffice] Question about using namespace ::com::sun::star::uno

Bjoern Michaelsen 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:

 http://wiki.documentfoundation.org/index.php?title=Development%2FEasy_Hacks&action=historysubmit&diff=15954&oldid=15847

Best,

Bjoern


-- 
https://launchpad.net/~bjoern-michaelsen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110307/8803a85e/attachment.pgp>


More information about the LibreOffice mailing list