[Libreoffice-commits] .: sal/qa sal/rtl
Julien Nabet
serval2412 at kemper.freedesktop.org
Wed Mar 2 13:24:22 PST 2011
sal/qa/osl/module/osl_Module.cxx | 5 +++--
sal/qa/osl/pipe/osl_Pipe.cxx | 5 ++++-
sal/qa/osl/process/osl_Thread.cxx | 3 ++-
sal/qa/osl/process/osl_process.cxx | 5 ++++-
sal/qa/osl/socket/osl_Socket.cxx | 5 ++++-
sal/rtl/source/logfile.cxx | 4 +++-
6 files changed, 20 insertions(+), 7 deletions(-)
New commits:
commit 8c77c301c72d96e0bf0f648e05f8784fcefc2604
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Wed Mar 2 22:24:11 2011 +0100
Remove "using namespace ::rtl"
diff --git a/sal/qa/osl/module/osl_Module.cxx b/sal/qa/osl/module/osl_Module.cxx
index 914d678..85af98a 100644
--- a/sal/qa/osl/module/osl_Module.cxx
+++ b/sal/qa/osl/module/osl_Module.cxx
@@ -35,9 +35,10 @@
#include <osl_Module_Const.h>
using namespace osl;
-using namespace rtl;
-
+using ::rtl::OUString;
+using ::rtl::OUStringToOString;
+using ::rtl::OString;
//------------------------------------------------------------------------
// helper functions and classes
//------------------------------------------------------------------------
diff --git a/sal/qa/osl/pipe/osl_Pipe.cxx b/sal/qa/osl/pipe/osl_Pipe.cxx
index 53d8a62..a495b5a 100644
--- a/sal/qa/osl/pipe/osl_Pipe.cxx
+++ b/sal/qa/osl/pipe/osl_Pipe.cxx
@@ -53,7 +53,10 @@
#include <string.h>
using namespace osl;
-using namespace rtl;
+
+using ::rtl::OUString;
+using ::rtl::OUStringToOString;
+using ::rtl::OString;
//------------------------------------------------------------------------
// helper functions
diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx
index ec4bd7b..724cdbe 100644
--- a/sal/qa/osl/process/osl_Thread.cxx
+++ b/sal/qa/osl/process/osl_Thread.cxx
@@ -60,7 +60,8 @@
#define t_print printf
using namespace osl;
-using namespace rtl;
+
+using ::rtl::OString;
// -----------------------------------------------------------------------------
// Kleine Stopuhr
diff --git a/sal/qa/osl/process/osl_process.cxx b/sal/qa/osl/process/osl_process.cxx
index 155817c..2ab0396 100644
--- a/sal/qa/osl/process/osl_process.cxx
+++ b/sal/qa/osl/process/osl_process.cxx
@@ -87,7 +87,10 @@ std::string OUString_to_std_string(const rtl::OUString& oustr)
//########################################
using namespace osl;
-using namespace rtl;
+
+using ::rtl::OUString;
+using ::rtl::OUStringToOString;
+using ::rtl::OString;
/** print a UNI_CODE String.
*/
diff --git a/sal/qa/osl/socket/osl_Socket.cxx b/sal/qa/osl/socket/osl_Socket.cxx
index bdefd90..bb4a04f 100644
--- a/sal/qa/osl/socket/osl_Socket.cxx
+++ b/sal/qa/osl/socket/osl_Socket.cxx
@@ -65,7 +65,10 @@
#include <testshl/simpleheader.hxx>
using namespace osl;
-using namespace rtl;
+
+using ::rtl::OUString;
+using ::rtl::OUStringToOString;
+using ::rtl::OString;
//------------------------------------------------------------------------
// helper functions
diff --git a/sal/rtl/source/logfile.cxx b/sal/rtl/source/logfile.cxx
index c00ba76..51fdcdc 100644
--- a/sal/rtl/source/logfile.cxx
+++ b/sal/rtl/source/logfile.cxx
@@ -50,10 +50,12 @@
#define vsnprintf _vsnprintf
#endif
-using namespace rtl;
using namespace osl;
using namespace std;
+using ::rtl::OUString;
+using ::rtl::OUStringBuffer;
+
namespace {
static oslFileHandle g_aFile = 0;
More information about the Libreoffice-commits
mailing list