[Libreoffice-commits] .: sal/qa

Julien Nabet serval2412 at kemper.freedesktop.org
Thu Mar 3 13:27:08 PST 2011


 sal/qa/OStringBuffer/rtl_OStringBuffer.cxx  |    4 ++--
 sal/qa/OStringBuffer/rtl_String_Utils.cxx   |    3 +--
 sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx      |    6 ++++--
 sal/qa/rtl/process/rtl_Process.cxx          |    5 ++++-
 sal/qa/rtl/uuid/rtl_Uuid.cxx                |    5 +++--
 sal/qa/rtl_strings/rtl_OString.cxx          |    3 +--
 sal/qa/rtl_strings/rtl_OUString.cxx         |    4 ++--
 sal/qa/rtl_strings/rtl_OUStringBuffer.cxx   |    4 +++-
 sal/qa/rtl_strings/rtl_String_Utils.cxx     |    3 +--
 sal/qa/rtl_strings/rtl_old_testostring.cxx  |    5 +----
 sal/qa/rtl_strings/rtl_old_testowstring.cxx |    5 +++--
 sal/qa/rtl_strings/rtl_old_teststrbuf.cxx   |    6 ++++--
 12 files changed, 29 insertions(+), 24 deletions(-)

New commits:
commit 7ba51c3d250c7ba35babcab88326ed53bb78962a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Thu Mar 3 22:26:57 2011 +0100

    Remove "using namespace ::rtl"

diff --git a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
index 0fb611c..5b00ba4 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 0713133..e072991 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 f250dfa..c7161d5 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 c4a762f..81627c3 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 201dfb5..ccf4588 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 19532e5..7fdd1ef 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 5eb38fb..4e5dc49 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 988a53e..165d30c 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 f138c7c..2250d98 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 8b04de2..ee0e8d7 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 15861dd..4afeb04 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 a3df89a..9efc997 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))
 
 


More information about the Libreoffice-commits mailing list