Hello,
why not preventing "using namespace" in general and using
namespace alias instead ...
E.g.
#include <rtl/ustring.hxx>
#include <rtl/reference.hxx>
#include <com/sun/star/uno/Reference.hxx>
namespace css = ::com::sun::star;
void test()
{
css::uno::Reference< css::uno::XInterface > xFoo;
::rtl::OUString sFoo;
::rtl::Reference< ... > rFoo;
}
Btw; this can be used even in exported header files.
The trick ...
// Place ALL(!) includes here
#include ...
#include ...
// Define CSS after all includes was done so this wont influence
// other files.
#ifdef css
#error "Clash on using namespace alias."
#else
#define css ::com::sun::star
#endif
// Place your code here ...
// Make sure that following header files dont see these define.
#undef css
Regards
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]