diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-03-03 22:26:57 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-03-03 22:26:57 +0100 |
commit | 9f14962a6c1c9b2610d0294dca2a28d2b23a958b (patch) | |
tree | fdee152985cc2f94ff7796808a14a10aef883823 /sal | |
parent | bcbb8d7962cf94993af56970b5625adf2875c636 (diff) |
Remove "using namespace ::rtl"
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/OStringBuffer/rtl_OStringBuffer.cxx | 4 | ||||
-rw-r--r-- | sal/qa/OStringBuffer/rtl_String_Utils.cxx | 3 | ||||
-rw-r--r-- | sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx | 6 | ||||
-rw-r--r-- | sal/qa/rtl/process/rtl_Process.cxx | 5 | ||||
-rw-r--r-- | sal/qa/rtl/uuid/rtl_Uuid.cxx | 5 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_OString.cxx | 3 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_OUString.cxx | 4 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_OUStringBuffer.cxx | 4 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_String_Utils.cxx | 3 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_old_testostring.cxx | 5 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_old_testowstring.cxx | 5 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_old_teststrbuf.cxx | 6 |
12 files changed, 29 insertions, 24 deletions
diff --git a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx index 8beb523ccdf6..fb49c34af41a 100644 --- a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx +++ b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx @@ -40,8 +40,8 @@ #include "cppunit/plugin/TestPlugIn.h" #include <string.h> -using namespace rtl; - +using ::rtl::OStringBuffer; +using ::rtl::OString; // This file contains cppunit tests for the // OString and OStringBuffer classes diff --git a/sal/qa/OStringBuffer/rtl_String_Utils.cxx b/sal/qa/OStringBuffer/rtl_String_Utils.cxx index c7809e574744..06764b177e27 100644 --- a/sal/qa/OStringBuffer/rtl_String_Utils.cxx +++ b/sal/qa/OStringBuffer/rtl_String_Utils.cxx @@ -48,8 +48,7 @@ #include <rtl_String_Utils_Const.h> #endif -using namespace rtl; - +using ::rtl::OString; sal_uInt32 AStringLen( const sal_Char *pAStr ) { sal_uInt32 nStrLen = 0; diff --git a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx index 90f4b0c79259..e10c75f1a020 100644 --- a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx +++ b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx @@ -51,8 +51,10 @@ #include <osl/thread.hxx> -using namespace rtl; - +using ::rtl::OUString; +using ::rtl::OUStringBuffer; +using ::rtl::OUStringToOString; +using ::rtl::OString; #define TESTSHL2_INI "testshl2" #define PSEUDO_INI "pseudo" diff --git a/sal/qa/rtl/process/rtl_Process.cxx b/sal/qa/rtl/process/rtl_Process.cxx index c69436467427..a8e95d199d1c 100644 --- a/sal/qa/rtl/process/rtl_Process.cxx +++ b/sal/qa/rtl/process/rtl_Process.cxx @@ -44,7 +44,10 @@ #include "rtl_Process_Const.h" using namespace osl; -using namespace rtl; + +using ::rtl::OUString; +using ::rtl::OString; +using ::rtl::OUStringToOString; /** print a UNI_CODE String. And also print some comments of the string. */ diff --git a/sal/qa/rtl/uuid/rtl_Uuid.cxx b/sal/qa/rtl/uuid/rtl_Uuid.cxx index 2b85e5d6fe06..18d032dc1d20 100644 --- a/sal/qa/rtl/uuid/rtl_Uuid.cxx +++ b/sal/qa/rtl/uuid/rtl_Uuid.cxx @@ -42,8 +42,9 @@ #include <time.h> #endif -using namespace rtl; - +using ::rtl::OUString; +using ::rtl::OUStringToOString; +using ::rtl::OString; /** print a UNI_CODE String. And also print some comments of the string. */ inline void printUString( const ::rtl::OUString & str, const sal_Char * msg = "" ) diff --git a/sal/qa/rtl_strings/rtl_OString.cxx b/sal/qa/rtl_strings/rtl_OString.cxx index e4eabfca434a..b72197e45963 100644 --- a/sal/qa/rtl_strings/rtl_OString.cxx +++ b/sal/qa/rtl_strings/rtl_OString.cxx @@ -49,8 +49,7 @@ #endif #include <rtl/ustring.h> -using namespace rtl; - +using ::rtl::OString; //------------------------------------------------------------------------ // test classes //------------------------------------------------------------------------ diff --git a/sal/qa/rtl_strings/rtl_OUString.cxx b/sal/qa/rtl_strings/rtl_OUString.cxx index bb00fd3e5544..b585c04efa05 100644 --- a/sal/qa/rtl_strings/rtl_OUString.cxx +++ b/sal/qa/rtl_strings/rtl_OUString.cxx @@ -42,8 +42,8 @@ #include <rtl_String_Utils.hxx> - - using namespace rtl; +using ::rtl::OUString; +using ::rtl::OString; //------------------------------------------------------------------------ // test classes diff --git a/sal/qa/rtl_strings/rtl_OUStringBuffer.cxx b/sal/qa/rtl_strings/rtl_OUStringBuffer.cxx index 17a364744745..73403d150177 100644 --- a/sal/qa/rtl_strings/rtl_OUStringBuffer.cxx +++ b/sal/qa/rtl_strings/rtl_OUStringBuffer.cxx @@ -68,7 +68,9 @@ #endif #include "stdio.h" -using namespace rtl; + +using ::rtl::OUString; +using ::rtl::OUStringBuffer; //------------------------------------------------------------------------ // test classes diff --git a/sal/qa/rtl_strings/rtl_String_Utils.cxx b/sal/qa/rtl_strings/rtl_String_Utils.cxx index 2b0d3c5ba3fa..9f882f796a7c 100644 --- a/sal/qa/rtl_strings/rtl_String_Utils.cxx +++ b/sal/qa/rtl_strings/rtl_String_Utils.cxx @@ -48,8 +48,7 @@ #include <rtl_String_Utils_Const.h> #endif -using namespace rtl; - +using ::rtl::OString; sal_uInt32 AStringLen( const sal_Char *pAStr ) { sal_uInt32 nStrLen = 0; diff --git a/sal/qa/rtl_strings/rtl_old_testostring.cxx b/sal/qa/rtl_strings/rtl_old_testostring.cxx index 53668061173b..6f7ce6fb0b58 100644 --- a/sal/qa/rtl_strings/rtl_old_testostring.cxx +++ b/sal/qa/rtl_strings/rtl_old_testostring.cxx @@ -41,10 +41,7 @@ #include <testshl/simpleheader.hxx> #define TEST_ENSURE(c, m) CPPUNIT_ASSERT_MESSAGE((m), (c)) - - -using namespace rtl; - +using ::rtl::OString; namespace rtl_OString { class oldtests : public CppUnit::TestFixture diff --git a/sal/qa/rtl_strings/rtl_old_testowstring.cxx b/sal/qa/rtl_strings/rtl_old_testowstring.cxx index 63778adb9112..b16fcf254e08 100644 --- a/sal/qa/rtl_strings/rtl_old_testowstring.cxx +++ b/sal/qa/rtl_strings/rtl_old_testowstring.cxx @@ -53,8 +53,9 @@ #define TEST_ENSURE(c, m) CPPUNIT_ASSERT_MESSAGE((m), (c)) - -using namespace rtl; +using ::rtl::OUString; +using ::rtl::OUStringToOString; +using ::rtl::OStringToOUString; namespace rtl_OUString { diff --git a/sal/qa/rtl_strings/rtl_old_teststrbuf.cxx b/sal/qa/rtl_strings/rtl_old_teststrbuf.cxx index 6f21cf655cac..0ed2c39e70d1 100644 --- a/sal/qa/rtl_strings/rtl_old_teststrbuf.cxx +++ b/sal/qa/rtl_strings/rtl_old_teststrbuf.cxx @@ -42,8 +42,10 @@ #include <testshl/simpleheader.hxx> -using namespace rtl; - +using ::rtl::OUString; +using ::rtl::OString; +using ::rtl::OUStringBuffer; +using ::rtl::OStringBuffer; #define TEST_ENSURE(c, m) CPPUNIT_ASSERT_MESSAGE((m), (c)) |