[Libreoffice-commits] .: ucb/source uui/source xmloff/source xmlscript/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sat Feb 26 13:39:37 PST 2011


 ucb/source/core/ucbprops.cxx                    |    3 ++-
 ucb/source/ucp/ftp/ftpdirp.cxx                  |    3 +--
 ucb/source/ucp/gvfs/gvfs_stream.cxx             |    3 ++-
 ucb/source/ucp/package/pkguri.cxx               |    3 ++-
 ucb/source/ucp/webdav/DateTimeHelper.cxx        |    4 +++-
 ucb/source/ucp/webdav/NeonInputStream.cxx       |    2 --
 ucb/source/ucp/webdav/NeonPropFindRequest.cxx   |    5 ++++-
 uui/source/services.cxx                         |    3 ++-
 xmloff/source/core/facreg.cxx                   |    3 ++-
 xmloff/source/core/i18nmap.cxx                  |    2 +-
 xmloff/source/core/xmlcnitm.cxx                 |    3 ++-
 xmloff/source/core/xmltkmap.cxx                 |    3 ++-
 xmloff/source/draw/XMLNumberStyles.cxx          |    3 ++-
 xmloff/source/draw/viewcontext.cxx              |    3 ++-
 xmloff/source/style/impastp1.cxx                |    2 +-
 xmloff/source/style/impastp2.cxx                |    4 +++-
 xmloff/source/style/impastp3.cxx                |    3 ++-
 xmlscript/source/xml_helper/xml_byteseq.cxx     |    2 +-
 xmlscript/source/xml_helper/xml_element.cxx     |    3 +--
 xmlscript/source/xmllib_imexp/xmllib_export.cxx |    3 ++-
 xmlscript/source/xmlmod_imexp/xmlmod_export.cxx |    3 ++-
 21 files changed, 39 insertions(+), 24 deletions(-)

New commits:
commit 6519686660d66b11cedd5fb64ada4c324f3b6b9a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Feb 26 22:39:23 2011 +0100

    Remove "using namespace ::rtl"

diff --git a/ucb/source/core/ucbprops.cxx b/ucb/source/core/ucbprops.cxx
index a401106..e75e449 100644
--- a/ucb/source/core/ucbprops.cxx
+++ b/ucb/source/core/ucbprops.cxx
@@ -43,13 +43,14 @@
 #include <com/sun/star/ucb/XDataContainer.hpp>
 #include "ucbprops.hxx"
 
-using namespace rtl;
 using namespace com::sun::star::beans;
 using namespace com::sun::star::lang;
 using namespace com::sun::star::ucb;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::util;
 
+using ::rtl::OUString;
+
 //=========================================================================
 //
 // struct PropertyTableEntry
diff --git a/ucb/source/ucp/ftp/ftpdirp.cxx b/ucb/source/ucp/ftp/ftpdirp.cxx
index 6bccaa2..4c8c2d5 100644
--- a/ucb/source/ucp/ftp/ftpdirp.cxx
+++ b/ucb/source/ucp/ftp/ftpdirp.cxx
@@ -38,10 +38,9 @@
 #include <osl/time.h>
 
 
-using namespace rtl;
 using namespace ftp;
 
-
+using ::rtl::OUString;
 typedef sal_uInt32 ULONG;
 
 
diff --git a/ucb/source/ucp/gvfs/gvfs_stream.cxx b/ucb/source/ucp/gvfs/gvfs_stream.cxx
index 2a804bf..9ead4bc 100644
--- a/ucb/source/ucp/gvfs/gvfs_stream.cxx
+++ b/ucb/source/ucp/gvfs/gvfs_stream.cxx
@@ -35,12 +35,13 @@
 #include <libgnomevfs/gnome-vfs-ops.h>
 
 using namespace cppu;
-using namespace rtl;
 using namespace com::sun::star::io;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::ucb;
 using namespace gvfs;
 
+using ::rtl::OUString;
+
 Stream::Stream( GnomeVFSHandle         *handle,
         const GnomeVFSFileInfo *aInfo ) :
     m_eof (sal_False),
diff --git a/ucb/source/ucp/package/pkguri.cxx b/ucb/source/ucp/package/pkguri.cxx
index 49a6bc6..67d1c13 100644
--- a/ucb/source/ucp/package/pkguri.cxx
+++ b/ucb/source/ucp/package/pkguri.cxx
@@ -44,7 +44,8 @@
 #include "pkguri.hxx"
 
 using namespace package_ucp;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 //=========================================================================
 //=========================================================================
diff --git a/ucb/source/ucp/webdav/DateTimeHelper.cxx b/ucb/source/ucp/webdav/DateTimeHelper.cxx
index 5b7f976..7547c01 100644
--- a/ucb/source/ucp/webdav/DateTimeHelper.cxx
+++ b/ucb/source/ucp/webdav/DateTimeHelper.cxx
@@ -35,10 +35,12 @@
 #include "DateTimeHelper.hxx"
 
 using namespace com::sun::star::util;
-using namespace rtl;
 
 using namespace webdav_ucp;
 
+using ::rtl::OUString;
+using ::rtl::OString;
+
 bool DateTimeHelper::ISO8601_To_DateTime (const OUString& s,
     DateTime& dateTime)
 {
diff --git a/ucb/source/ucp/webdav/NeonInputStream.cxx b/ucb/source/ucp/webdav/NeonInputStream.cxx
index 2b438e4..53f816b 100644
--- a/ucb/source/ucp/webdav/NeonInputStream.cxx
+++ b/ucb/source/ucp/webdav/NeonInputStream.cxx
@@ -32,12 +32,10 @@
 #include <rtl/memory.h>
 
 using namespace cppu;
-using namespace rtl;
 using namespace com::sun::star::io;
 using namespace com::sun::star::uno;
 using namespace webdav_ucp;
 
-
 // -------------------------------------------------------------------
 // Constructor
 // -------------------------------------------------------------------
diff --git a/ucb/source/ucp/webdav/NeonPropFindRequest.cxx b/ucb/source/ucp/webdav/NeonPropFindRequest.cxx
index 86aacd1..8256d97 100644
--- a/ucb/source/ucp/webdav/NeonPropFindRequest.cxx
+++ b/ucb/source/ucp/webdav/NeonPropFindRequest.cxx
@@ -40,12 +40,15 @@
 #include "LockEntrySequence.hxx"
 #include "UCBDeadPropertyValue.hxx"
 
-using namespace rtl;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::ucb;
 using namespace std;
 using namespace webdav_ucp;
 
+using ::rtl::OUString;
+using ::rtl::OString;
+using ::rtl::OStringToOUString;
+
 // -------------------------------------------------------------------
 namespace
 {
diff --git a/uui/source/services.cxx b/uui/source/services.cxx
index 6973a23..40be265 100644
--- a/uui/source/services.cxx
+++ b/uui/source/services.cxx
@@ -37,11 +37,12 @@
 #include "requeststringresolver.hxx"
 #include "passwordcontainer.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;
+
 namespace {
 
 sal_Bool writeInfo( void * pRegistryKey,
diff --git a/xmloff/source/core/facreg.cxx b/xmloff/source/core/facreg.cxx
index 24e8613..5234c8d 100644
--- a/xmloff/source/core/facreg.cxx
+++ b/xmloff/source/core/facreg.cxx
@@ -43,9 +43,10 @@
 #include <uno/lbnames.h>
 #include "xmlreg.hxx"
 
-using namespace rtl;
 using namespace com::sun::star;
 
+using ::rtl::OUString;
+
 #define SERVICE( className )										\
 extern OUString SAL_CALL className##_getImplementationName() throw();	\
 extern uno::Sequence< OUString > SAL_CALL className##_getSupportedServiceNames() throw();\
diff --git a/xmloff/source/core/i18nmap.cxx b/xmloff/source/core/i18nmap.cxx
index dd75bd6..225a5f1 100644
--- a/xmloff/source/core/i18nmap.cxx
+++ b/xmloff/source/core/i18nmap.cxx
@@ -33,7 +33,7 @@
 #include <svl/svarray.hxx>
 #include "i18nmap.hxx"
 
-using namespace rtl;
+using ::rtl::OUString;
 
 class SvI18NMapEntry_Impl
 {
diff --git a/xmloff/source/core/xmlcnitm.cxx b/xmloff/source/core/xmlcnitm.cxx
index 720c1fc..390318a 100644
--- a/xmloff/source/core/xmlcnitm.cxx
+++ b/xmloff/source/core/xmlcnitm.cxx
@@ -35,12 +35,13 @@
 #include <xmloff/xmlcnimp.hxx>
 #include "unoatrcn.hxx"
 
-using namespace rtl;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::container;
 using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::xml;
 
+using ::rtl::OUString;
+
 typedef ::rtl::OUString *OUStringPtr;
 SV_DECL_PTRARR_DEL( SvXMLAttrContainerData_Impl, OUStringPtr, 5, 5 )
 SV_IMPL_PTRARR( SvXMLAttrContainerData_Impl, OUStringPtr )
diff --git a/xmloff/source/core/xmltkmap.cxx b/xmloff/source/core/xmltkmap.cxx
index be06698..505937d 100644
--- a/xmloff/source/core/xmltkmap.cxx
+++ b/xmloff/source/core/xmltkmap.cxx
@@ -34,9 +34,10 @@
 #include <xmloff/xmltkmap.hxx>
 #include <xmloff/xmltoken.hxx>
 
-using namespace rtl;
 using namespace ::xmloff::token;
 
+using ::rtl::OUString;
+
 class SvXMLTokenMapEntry_Impl
 {
     sal_uInt16	nPrefixKey;
diff --git a/xmloff/source/draw/XMLNumberStyles.cxx b/xmloff/source/draw/XMLNumberStyles.cxx
index 3289b68..7dce0b8 100644
--- a/xmloff/source/draw/XMLNumberStyles.cxx
+++ b/xmloff/source/draw/XMLNumberStyles.cxx
@@ -39,9 +39,10 @@
 #include "sdxmlexp_impl.hxx"
 #include "sdxmlimp_impl.hxx"
 
-using namespace rtl;
 using namespace ::xmloff::token;
 
+using ::rtl::OUString;
+
 struct SdXMLDataStyleNumber
 {
     enum XMLTokenEnum meNumberStyle;
diff --git a/xmloff/source/draw/viewcontext.cxx b/xmloff/source/draw/viewcontext.cxx
index a43bf17..08818eb 100644
--- a/xmloff/source/draw/viewcontext.cxx
+++ b/xmloff/source/draw/viewcontext.cxx
@@ -36,11 +36,12 @@
 #include "VisAreaContext.hxx"
 
 using namespace com::sun::star;
-using namespace rtl;
 using ::xmloff::token::IsXMLToken;
 
 using ::xmloff::token::XML_EMBEDDED_VISIBLE_AREA;
 
+using ::rtl::OUString;
+
 //------------------------------------------------------------------
 
 SdXMLViewSettingsContext::SdXMLViewSettingsContext( SdXMLImport& rImport, USHORT nPrfx, const OUString& rLName, const uno::Reference<xml::sax::XAttributeList>& ) :
diff --git a/xmloff/source/style/impastp1.cxx b/xmloff/source/style/impastp1.cxx
index 20e2464..8cfdcb3 100644
--- a/xmloff/source/style/impastp1.cxx
+++ b/xmloff/source/style/impastp1.cxx
@@ -31,7 +31,7 @@
 #include <tools/debug.hxx>
 #include "impastpl.hxx"
 
-using namespace rtl;
+using ::rtl::OUString;
 
 //#############################################################################
 //
diff --git a/xmloff/source/style/impastp2.cxx b/xmloff/source/style/impastp2.cxx
index c4bc848..dbeb870 100644
--- a/xmloff/source/style/impastp2.cxx
+++ b/xmloff/source/style/impastp2.cxx
@@ -32,7 +32,9 @@
 #include "impastpl.hxx"
 
 using namespace std;
-using namespace rtl;
+
+using ::rtl::OUString;
+using ::rtl::OUStringBuffer;
 
 //#############################################################################
 //
diff --git a/xmloff/source/style/impastp3.cxx b/xmloff/source/style/impastp3.cxx
index 07aa28f..0c51db5 100644
--- a/xmloff/source/style/impastp3.cxx
+++ b/xmloff/source/style/impastp3.cxx
@@ -32,7 +32,8 @@
 #include <xmloff/xmlprmap.hxx>
 
 using namespace std;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 //#############################################################################
 //
diff --git a/xmlscript/source/xml_helper/xml_byteseq.cxx b/xmlscript/source/xml_helper/xml_byteseq.cxx
index 43ac3da..777e3c6 100644
--- a/xmlscript/source/xml_helper/xml_byteseq.cxx
+++ b/xmlscript/source/xml_helper/xml_byteseq.cxx
@@ -34,11 +34,11 @@
 #include <xmlscript/xml_helper.hxx>
 
 
-using namespace rtl;
 using namespace osl;
 using namespace com::sun::star;
 using namespace com::sun::star::uno;
 
+using ::rtl::ByteSequence;
 
 namespace xmlscript
 {
diff --git a/xmlscript/source/xml_helper/xml_element.cxx b/xmlscript/source/xml_helper/xml_element.cxx
index 3774f43..dc12562 100644
--- a/xmlscript/source/xml_helper/xml_element.cxx
+++ b/xmlscript/source/xml_helper/xml_element.cxx
@@ -31,11 +31,10 @@
 #include <xmlscript/xml_helper.hxx>
 
 
-using namespace rtl;
 using namespace com::sun::star;
 using namespace com::sun::star::uno;
 
-
+using ::rtl::OUString;
 namespace xmlscript
 {
 
diff --git a/xmlscript/source/xmllib_imexp/xmllib_export.cxx b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
index 774a76f..62b2552 100644
--- a/xmlscript/source/xmllib_imexp/xmllib_export.cxx
+++ b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
@@ -34,7 +34,8 @@
 
 using namespace com::sun::star::uno;
 using namespace com::sun::star;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 namespace xmlscript
 {
diff --git a/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx b/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx
index 1d7f396..7ed227c 100644
--- a/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx
+++ b/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx
@@ -34,7 +34,8 @@
 
 using namespace com::sun::star::uno;
 using namespace com::sun::star;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 namespace xmlscript
 {


More information about the Libreoffice-commits mailing list