Prefer using declarations over using directives

Change-Id: I1316fc4ae1d4dab91684bdc059f5c69c5e0c401a
This commit is contained in:
Stephan Bergmann 2013-08-19 11:49:57 +02:00
parent 477e7ad9d0
commit e89e7cded7
10 changed files with 26 additions and 16 deletions

View File

@ -25,12 +25,12 @@
#include <com/sun/star/io/FilePermission.hpp>
#include <com/sun/star/connection/SocketPermission.hpp>
using namespace ::rtl;
using namespace ::osl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using rtl::OUString;
namespace
{
inline OUString str_ac_singleton()

View File

@ -44,12 +44,13 @@
#define ARLEN(x) sizeof (x) / sizeof *(x)
using namespace ::rtl;
using namespace ::osl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using rtl::Bootstrap;
using rtl::OUString;
namespace cppu
{

View File

@ -60,12 +60,14 @@
#define TDMGR_SINGLETON "/singletons/com.sun.star.reflection.theTypeDescriptionManager"
#define AC_SINGLETON "/singletons/com.sun.star.security.theAccessController"
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star;
using rtl::OUString;
using rtl::OUStringBuffer;
using rtl::OUStringHash;
namespace cppu
{

View File

@ -29,8 +29,6 @@
#include "cppuhelper/exc_hlp.hxx"
using namespace ::rtl;
using namespace ::osl;
using namespace ::cppu;
using namespace ::com::sun::star;

View File

@ -27,10 +27,11 @@
#include "com/sun/star/uno/RuntimeException.hpp"
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using rtl::OUString;
namespace
{
class theImplHelperInitMutex : public rtl::Static<Mutex, theImplHelperInitMutex>{};

View File

@ -30,10 +30,13 @@
using namespace ::cppu;
using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using rtl::OString;
using rtl::OUString;
using rtl::OUStringBuffer;
namespace cppu
{

View File

@ -20,11 +20,13 @@
#include <cppuhelper/implementationentry.hxx>
#include <rtl/ustrbuf.hxx>
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::registry;
using rtl::OUString;
using rtl::OUStringBuffer;
namespace cppu {
sal_Bool component_writeInfoHelper(

View File

@ -38,12 +38,13 @@
#define SERVICE_NAME_B "com.sun.star.lang.BootstrapMacroExpander"
#define IMPL_NAME "com.sun.star.lang.comp.cppuhelper.BootstrapMacroExpander"
using namespace ::rtl;
using namespace ::osl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using rtl::Bootstrap;
using rtl::OUString;
namespace cppu
{

View File

@ -43,12 +43,14 @@
#include <osl/detail/ios-bootstrap.h>
#endif
using namespace ::rtl;
using namespace ::osl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using rtl::OString;
using rtl::OUString;
using rtl::OUStringBuffer;
namespace cppu
{

View File

@ -51,11 +51,11 @@
#include "boost/scoped_array.hpp"
using namespace ::rtl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::reflection;
using rtl::OUString;
namespace cppu
{