Kaydet (Commit) e89e7cde authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Prefer using declarations over using directives

Change-Id: I1316fc4ae1d4dab91684bdc059f5c69c5e0c401a
üst 477e7ad9
...@@ -25,12 +25,12 @@ ...@@ -25,12 +25,12 @@
#include <com/sun/star/io/FilePermission.hpp> #include <com/sun/star/io/FilePermission.hpp>
#include <com/sun/star/connection/SocketPermission.hpp> #include <com/sun/star/connection/SocketPermission.hpp>
using namespace ::rtl;
using namespace ::osl; using namespace ::osl;
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using rtl::OUString;
namespace namespace
{ {
inline OUString str_ac_singleton() inline OUString str_ac_singleton()
......
...@@ -44,12 +44,13 @@ ...@@ -44,12 +44,13 @@
#define ARLEN(x) sizeof (x) / sizeof *(x) #define ARLEN(x) sizeof (x) / sizeof *(x)
using namespace ::rtl;
using namespace ::osl; using namespace ::osl;
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using rtl::Bootstrap;
using rtl::OUString;
namespace cppu namespace cppu
{ {
......
...@@ -60,12 +60,14 @@ ...@@ -60,12 +60,14 @@
#define TDMGR_SINGLETON "/singletons/com.sun.star.reflection.theTypeDescriptionManager" #define TDMGR_SINGLETON "/singletons/com.sun.star.reflection.theTypeDescriptionManager"
#define AC_SINGLETON "/singletons/com.sun.star.security.theAccessController" #define AC_SINGLETON "/singletons/com.sun.star.security.theAccessController"
using namespace ::osl; using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using namespace ::com::sun::star; using namespace ::com::sun::star;
using rtl::OUString;
using rtl::OUStringBuffer;
using rtl::OUStringHash;
namespace cppu namespace cppu
{ {
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include "cppuhelper/exc_hlp.hxx" #include "cppuhelper/exc_hlp.hxx"
using namespace ::rtl;
using namespace ::osl; using namespace ::osl;
using namespace ::cppu; using namespace ::cppu;
using namespace ::com::sun::star; using namespace ::com::sun::star;
......
...@@ -27,10 +27,11 @@ ...@@ -27,10 +27,11 @@
#include "com/sun/star/uno/RuntimeException.hpp" #include "com/sun/star/uno/RuntimeException.hpp"
using namespace ::osl; using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using rtl::OUString;
namespace namespace
{ {
class theImplHelperInitMutex : public rtl::Static<Mutex, theImplHelperInitMutex>{}; class theImplHelperInitMutex : public rtl::Static<Mutex, theImplHelperInitMutex>{};
......
...@@ -30,10 +30,13 @@ ...@@ -30,10 +30,13 @@
using namespace ::cppu; using namespace ::cppu;
using namespace ::osl; using namespace ::osl;
using namespace ::rtl;
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using rtl::OString;
using rtl::OUString;
using rtl::OUStringBuffer;
namespace cppu namespace cppu
{ {
......
...@@ -20,11 +20,13 @@ ...@@ -20,11 +20,13 @@
#include <cppuhelper/implementationentry.hxx> #include <cppuhelper/implementationentry.hxx>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
using namespace ::rtl;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang; using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::registry; using namespace ::com::sun::star::registry;
using rtl::OUString;
using rtl::OUStringBuffer;
namespace cppu { namespace cppu {
sal_Bool component_writeInfoHelper( sal_Bool component_writeInfoHelper(
......
...@@ -38,12 +38,13 @@ ...@@ -38,12 +38,13 @@
#define SERVICE_NAME_B "com.sun.star.lang.BootstrapMacroExpander" #define SERVICE_NAME_B "com.sun.star.lang.BootstrapMacroExpander"
#define IMPL_NAME "com.sun.star.lang.comp.cppuhelper.BootstrapMacroExpander" #define IMPL_NAME "com.sun.star.lang.comp.cppuhelper.BootstrapMacroExpander"
using namespace ::rtl;
using namespace ::osl; using namespace ::osl;
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using rtl::Bootstrap;
using rtl::OUString;
namespace cppu namespace cppu
{ {
......
...@@ -43,12 +43,14 @@ ...@@ -43,12 +43,14 @@
#include <osl/detail/ios-bootstrap.h> #include <osl/detail/ios-bootstrap.h>
#endif #endif
using namespace ::rtl;
using namespace ::osl; using namespace ::osl;
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using rtl::OString;
using rtl::OUString;
using rtl::OUStringBuffer;
namespace cppu namespace cppu
{ {
......
...@@ -51,11 +51,11 @@ ...@@ -51,11 +51,11 @@
#include "boost/scoped_array.hpp" #include "boost/scoped_array.hpp"
using namespace ::rtl;
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::reflection; using namespace ::com::sun::star::reflection;
using rtl::OUString;
namespace cppu namespace cppu
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment