[Libreoffice-commits] .: ucb/source

Tor Lillqvist tml at kemper.freedesktop.org
Mon Feb 21 06:21:53 PST 2011


 ucb/source/cacher/cachedcontentresultset.cxx     |   33 +++++++-------
 ucb/source/cacher/cachedcontentresultsetstub.cxx |    3 -
 ucb/source/cacher/cacheddynamicresultset.cxx     |    3 -
 ucb/source/cacher/cacheddynamicresultsetstub.cxx |    3 -
 ucb/source/cacher/cacheserv.cxx                  |    3 -
 ucb/source/cacher/contentresultsetwrapper.cxx    |    7 +--
 ucb/source/cacher/dynamicresultsetwrapper.cxx    |    3 -
 ucb/source/core/identify.cxx                     |    3 -
 ucb/source/core/provprox.cxx                     |    3 -
 ucb/source/core/ucb.cxx                          |   53 +++++++++++------------
 ucb/source/core/ucbserv.cxx                      |    3 -
 ucb/source/core/ucbstore.cxx                     |   28 ++++++------
 ucb/source/sorter/sortdynres.cxx                 |    3 -
 ucb/source/sorter/sortmain.cxx                   |    3 -
 ucb/source/sorter/sortresult.cxx                 |    3 -
 15 files changed, 85 insertions(+), 69 deletions(-)

New commits:
commit 79b8edd85443a60c589fe9ef35079c60d80c102e
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Mon Feb 21 15:48:08 2011 +0200

    Remove 'using namespace rtl'
    
    The ambiguity of 'Reference' causes compilation errors when using
    precompiled headers. Instead use 'using ::rtl::OUString' and 'using
    ::rtl::OUStringBuffer'.

diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx
index 12910f0..06fd429 100644
--- a/ucb/source/cacher/cachedcontentresultset.cxx
+++ b/ucb/source/cacher/cachedcontentresultset.cxx
@@ -47,7 +47,8 @@ using namespace com::sun::star::ucb;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::util;
 using namespace cppu;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 #define COMSUNSTARUCBCCRS_DEFAULT_FETCH_SIZE 256
 #define COMSUNSTARUCBCCRS_DEFAULT_FETCH_DIRECTION FetchDirection::FORWARD
@@ -309,7 +310,7 @@ const Any& SAL_CALL CachedContentResultSet::CCRS_Cache
     return rRow[nColumnIndex-1];
 }
 
-const rtl::OUString& SAL_CALL CachedContentResultSet::CCRS_Cache
+const OUString& SAL_CALL CachedContentResultSet::CCRS_Cache
     ::getContentIdentifierString( sal_Int32 nRow )
     throw( com::sun::star::uno::RuntimeException )
 {
@@ -318,12 +319,12 @@ const rtl::OUString& SAL_CALL CachedContentResultSet::CCRS_Cache
         if( m_xContentIdentifierMapping.is() && !isRowMapped( nRow ) )
         {
             Any& rRow = getRowAny( nRow );
-            rtl::OUString aValue;
+            OUString aValue;
             rRow >>= aValue;
             rRow <<= m_xContentIdentifierMapping->mapContentIdentifierString( aValue );
             remindMapped( nRow );
         }
-        return (* reinterpret_cast< const rtl::OUString * >
+        return (* reinterpret_cast< const OUString * >
                 (getRowAny( nRow ).getValue() ));
     }
     catch( SQLException )
@@ -396,10 +397,10 @@ class CCRS_PropertySetInfo :
                             m_pProperties;
 
     //some helping variables ( names for my special properties )
-    static rtl::OUString	m_aPropertyNameForCount;
-    static rtl::OUString	m_aPropertyNameForFinalCount;
-    static rtl::OUString	m_aPropertyNameForFetchSize;
-    static rtl::OUString	m_aPropertyNameForFetchDirection;
+    static OUString	m_aPropertyNameForCount;
+    static OUString	m_aPropertyNameForFinalCount;
+    static OUString	m_aPropertyNameForFetchSize;
+    static OUString	m_aPropertyNameForFetchDirection;
 
     long					m_nFetchSizePropertyHandle;
     long					m_nFetchDirectionPropertyHandle;
@@ -410,13 +411,13 @@ private:
 
     sal_Bool SAL_CALL
     impl_queryProperty(
-            const rtl::OUString& rName
+            const OUString& rName
             , com::sun::star::beans::Property& rProp ) const;
     sal_Int32 SAL_CALL
-    impl_getPos( const rtl::OUString& rName ) const;
+    impl_getPos( const OUString& rName ) const;
 
     static sal_Bool SAL_CALL
-    impl_isMyPropertyName( const rtl::OUString& rName );
+    impl_isMyPropertyName( const OUString& rName );
 
 public:
     CCRS_PropertySetInfo(	Reference<
@@ -436,11 +437,11 @@ public:
         throw( RuntimeException );
 
     virtual com::sun::star::beans::Property SAL_CALL
-    getPropertyByName( const rtl::OUString& aName )
+    getPropertyByName( const OUString& aName )
         throw( com::sun::star::beans::UnknownPropertyException, RuntimeException );
 
     virtual sal_Bool SAL_CALL
-    hasPropertyByName( const rtl::OUString& Name )
+    hasPropertyByName( const OUString& Name )
         throw( RuntimeException );
 };
 
@@ -556,7 +557,7 @@ Sequence< Property > SAL_CALL CCRS_PropertySetInfo
 
 //virtual
 Property SAL_CALL CCRS_PropertySetInfo
-    ::getPropertyByName( const rtl::OUString& aName )
+    ::getPropertyByName( const OUString& aName )
         throw( UnknownPropertyException, RuntimeException )
 {
     if ( !aName.getLength() )
@@ -571,7 +572,7 @@ Property SAL_CALL CCRS_PropertySetInfo
 
 //virtual
 sal_Bool SAL_CALL CCRS_PropertySetInfo
-    ::hasPropertyByName( const rtl::OUString& Name )
+    ::hasPropertyByName( const OUString& Name )
         throw( RuntimeException )
 {
     return ( impl_getPos( Name ) != -1 );
@@ -1929,7 +1930,7 @@ sal_Bool SAL_CALL CachedContentResultSet
 }
 
 //virtual
-rtl::OUString SAL_CALL CachedContentResultSet
+OUString SAL_CALL CachedContentResultSet
     ::getString( sal_Int32 columnIndex )
     throw( SQLException,
            RuntimeException )
diff --git a/ucb/source/cacher/cachedcontentresultsetstub.cxx b/ucb/source/cacher/cachedcontentresultsetstub.cxx
index 9a87b67..452fa50 100644
--- a/ucb/source/cacher/cachedcontentresultsetstub.cxx
+++ b/ucb/source/cacher/cachedcontentresultsetstub.cxx
@@ -41,7 +41,8 @@ using namespace com::sun::star::ucb;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::util;
 using namespace cppu;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 CachedContentResultSetStub::CachedContentResultSetStub( Reference< XResultSet > xOrigin	)
                 : ContentResultSetWrapper( xOrigin )
diff --git a/ucb/source/cacher/cacheddynamicresultset.cxx b/ucb/source/cacher/cacheddynamicresultset.cxx
index 0384b48..5c79514 100644
--- a/ucb/source/cacher/cacheddynamicresultset.cxx
+++ b/ucb/source/cacher/cacheddynamicresultset.cxx
@@ -38,7 +38,8 @@ using namespace com::sun::star::lang;
 using namespace com::sun::star::sdbc;
 using namespace com::sun::star::ucb;
 using namespace com::sun::star::uno;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 CachedDynamicResultSet::CachedDynamicResultSet(
         Reference< XDynamicResultSet > xOrigin
diff --git a/ucb/source/cacher/cacheddynamicresultsetstub.cxx b/ucb/source/cacher/cacheddynamicresultsetstub.cxx
index 3976e30..0373ca4 100644
--- a/ucb/source/cacher/cacheddynamicresultsetstub.cxx
+++ b/ucb/source/cacher/cacheddynamicresultsetstub.cxx
@@ -40,7 +40,8 @@ using namespace com::sun::star::lang;
 using namespace com::sun::star::sdbc;
 using namespace com::sun::star::ucb;
 using namespace com::sun::star::uno;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 CachedDynamicResultSetStub::CachedDynamicResultSetStub(
         Reference< XDynamicResultSet > xOrigin
diff --git a/ucb/source/cacher/cacheserv.cxx b/ucb/source/cacher/cacheserv.cxx
index ea3c5ea..5f335ab 100644
--- a/ucb/source/cacher/cacheserv.cxx
+++ b/ucb/source/cacher/cacheserv.cxx
@@ -36,11 +36,12 @@
 #include <cacheddynamicresultset.hxx>
 #include <cacheddynamicresultsetstub.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;
+
 //=========================================================================
 static sal_Bool writeInfo( void * pRegistryKey,
                            const OUString & rImplementationName,
diff --git a/ucb/source/cacher/contentresultsetwrapper.cxx b/ucb/source/cacher/contentresultsetwrapper.cxx
index ea307f5..f0e2c5f 100644
--- a/ucb/source/cacher/contentresultsetwrapper.cxx
+++ b/ucb/source/cacher/contentresultsetwrapper.cxx
@@ -45,7 +45,8 @@ using namespace com::sun::star::ucb;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::util;
 using namespace cppu;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 //--------------------------------------------------------------------------
 //--------------------------------------------------------------------------
@@ -320,7 +321,7 @@ sal_Bool SAL_CALL ContentResultSetWrapper
         }
         aGuard.reacquire();
 
-        rtl::OUString aName(RTL_CONSTASCII_USTRINGPARAM("ResultSetType"));
+        OUString aName(RTL_CONSTASCII_USTRINGPARAM("ResultSetType"));
         //find out, if we are ForwardOnly and cache the value:
 
         impl_init_xPropertySetOrigin();
@@ -1216,7 +1217,7 @@ sal_Bool SAL_CALL ContentResultSetWrapper
 }
 
 //virtual
-rtl::OUString SAL_CALL ContentResultSetWrapper
+OUString SAL_CALL ContentResultSetWrapper
     ::getString( sal_Int32 columnIndex )
     throw( SQLException,
            RuntimeException )
diff --git a/ucb/source/cacher/dynamicresultsetwrapper.cxx b/ucb/source/cacher/dynamicresultsetwrapper.cxx
index b1f3a4e..801e932 100644
--- a/ucb/source/cacher/dynamicresultsetwrapper.cxx
+++ b/ucb/source/cacher/dynamicresultsetwrapper.cxx
@@ -42,7 +42,8 @@ using namespace com::sun::star::sdbc;
 using namespace com::sun::star::ucb;
 using namespace com::sun::star::uno;
 using namespace cppu;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 //--------------------------------------------------------------------------
 //--------------------------------------------------------------------------
diff --git a/ucb/source/core/identify.cxx b/ucb/source/core/identify.cxx
index ca9b3a4..9b02439 100644
--- a/ucb/source/core/identify.cxx
+++ b/ucb/source/core/identify.cxx
@@ -37,11 +37,12 @@
 
 #include "identify.hxx"
 
-using namespace rtl;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::lang;
 using namespace com::sun::star::ucb;
 
+using ::rtl::OUString;
+
 //=========================================================================
 //
 // ContentIdentifier Implementation.
diff --git a/ucb/source/core/provprox.cxx b/ucb/source/core/provprox.cxx
index d821676..d54c830 100644
--- a/ucb/source/core/provprox.cxx
+++ b/ucb/source/core/provprox.cxx
@@ -32,11 +32,12 @@
 #include "provprox.hxx"
 #include <com/sun/star/lang/XInitialization.hpp>
 
-using namespace rtl;
 using namespace com::sun::star::lang;
 using namespace com::sun::star::ucb;
 using namespace com::sun::star::uno;
 
+using ::rtl::OUString;
+
 //=========================================================================
 //=========================================================================
 //
diff --git a/ucb/source/core/ucb.cxx b/ucb/source/core/ucb.cxx
index a993eda..8325bac 100644
--- a/ucb/source/core/ucb.cxx
+++ b/ucb/source/core/ucb.cxx
@@ -59,7 +59,6 @@
 #include <regexpmap.tpt>
 #endif
 
-using namespace rtl;
 using namespace cppu;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::lang;
@@ -68,6 +67,8 @@ using namespace ucb_impl;
 using namespace com::sun::star;
 using namespace ucbhelper;
 
+using ::rtl::OUString;
+using ::rtl::OUStringBuffer;
 
 #define CONFIG_CONTENTPROVIDERS_KEY	\
                 "/org.openoffice.ucb.Configuration/ContentProviders"
@@ -75,14 +76,14 @@ using namespace ucbhelper;
 
 namespace {
 
-bool fillPlaceholders(rtl::OUString const & rInput,
+bool fillPlaceholders(OUString const & rInput,
                       uno::Sequence< uno::Any > const & rReplacements,
-                      rtl::OUString * pOutput)
+                      OUString * pOutput)
 {
     sal_Unicode const * p = rInput.getStr();
     sal_Unicode const * pEnd = p + rInput.getLength();
     sal_Unicode const * pCopy = p;
-    rtl::OUStringBuffer aBuffer;
+    OUStringBuffer aBuffer;
     while (p != pEnd)
         switch (*p++)
         {
@@ -120,13 +121,13 @@ bool fillPlaceholders(rtl::OUString const & rInput,
                     ++q;
                 if (q == pEnd)
                     break;
-                rtl::OUString aKey(p, q - p);
-                rtl::OUString aValue;
+                OUString aKey(p, q - p);
+                OUString aValue;
                 bool bFound = false;
                 for (sal_Int32 i = 2; i + 1 < rReplacements.getLength();
                      i += 2)
                 {
-                    rtl::OUString aReplaceKey;
+                    OUString aReplaceKey;
                     if ((rReplacements[i] >>= aReplaceKey)
                         && aReplaceKey == aKey
                         && (rReplacements[i + 1] >>= aValue))
@@ -149,7 +150,7 @@ bool fillPlaceholders(rtl::OUString const & rInput,
 }
 
 void makeAndAppendXMLName(
-                rtl::OUStringBuffer & rBuffer, const rtl::OUString & rIn )
+                OUStringBuffer & rBuffer, const OUString & rIn )
 {
     sal_Int32 nCount = rIn.getLength();
     for ( sal_Int32 n = 0; n < nCount; ++n )
@@ -185,15 +186,15 @@ void makeAndAppendXMLName(
 }
 
 bool createContentProviderData(
-    const rtl::OUString & rProvider,
+    const OUString & rProvider,
     const uno::Reference< container::XHierarchicalNameAccess >& rxHierNameAccess,
     ContentProviderData & rInfo)
 {
     // Obtain service name.
-    rtl::OUStringBuffer aKeyBuffer (rProvider);
+    OUStringBuffer aKeyBuffer (rProvider);
     aKeyBuffer.appendAscii( "/ServiceName" );
 
-    rtl::OUString aValue;
+    OUString aValue;
     try
     {
         if ( !( rxHierNameAccess->getByHierarchicalName(
@@ -659,7 +660,7 @@ Any SAL_CALL UniversalContentBroker::execute(
         {
             ucbhelper::cancelCommandExecution(
                 makeAny( IllegalArgumentException(
-                                rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+                                OUString(RTL_CONSTASCII_USTRINGPARAM(
                                         "Wrong argument type!" )),
                                 static_cast< cppu::OWeakObject * >( this ),
                                 -1 ) ),
@@ -677,7 +678,7 @@ Any SAL_CALL UniversalContentBroker::execute(
 
         ucbhelper::cancelCommandExecution(
             makeAny( UnsupportedCommandException(
-                            rtl::OUString(),
+                            OUString(),
                             static_cast< cppu::OWeakObject * >( this ) ) ),
             Environment );
         // Unreachable
@@ -718,7 +719,7 @@ void SAL_CALL UniversalContentBroker::changesOccurred( const util::ChangesEvent&
         for ( sal_Int32 n = 0; n < nCount; ++n )
         {
             const util::ElementChange& rElem = pElementChanges[ n ];
-            rtl::OUString aKey;
+            OUString aKey;
             rElem.Accessor >>= aKey;
 
             ContentProviderData aInfo;
@@ -780,8 +781,8 @@ Reference< XContentProvider > UniversalContentBroker::queryContentProvider(
 bool UniversalContentBroker::configureUcb()
     throw (uno::RuntimeException)
 {
-    rtl::OUString aKey1;
-    rtl::OUString aKey2;
+    OUString aKey1;
+    OUString aKey2;
     if (m_aArguments.getLength() < 2
         || !(m_aArguments[0] >>= aKey1) || !(m_aArguments[1] >>= aKey2))
     {
@@ -808,7 +809,7 @@ void UniversalContentBroker::prepareAndRegister(
     for (ContentProviderDataList::const_iterator aIt(rData.begin());
          aIt != aEnd; ++aIt)
     {
-        rtl::OUString aProviderArguments;
+        OUString aProviderArguments;
         if (fillPlaceholders(aIt->Arguments,
                              m_aArguments,
                              &aProviderArguments))
@@ -829,8 +830,8 @@ void UniversalContentBroker::prepareAndRegister(
 
 //=========================================================================
 bool UniversalContentBroker::getContentProviderData(
-            const rtl::OUString & rKey1,
-            const rtl::OUString & rKey2,
+            const OUString & rKey1,
+            const OUString & rKey2,
             ContentProviderDataList & rListToFill )
 {
     if ( !m_xSMgr.is() || !rKey1.getLength() || !rKey2.getLength() )
@@ -844,11 +845,11 @@ bool UniversalContentBroker::getContentProviderData(
     {
         uno::Reference< lang::XMultiServiceFactory > xConfigProv(
                 m_xSMgr->createInstance(
-                    rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+                    OUString(RTL_CONSTASCII_USTRINGPARAM(
                         "com.sun.star.configuration.ConfigurationProvider" )) ),
                 uno::UNO_QUERY_THROW );
 
-        rtl::OUStringBuffer aFullPath;
+        OUStringBuffer aFullPath;
         aFullPath.appendAscii( CONFIG_CONTENTPROVIDERS_KEY "/['" );
         makeAndAppendXMLName( aFullPath, rKey1 );
         aFullPath.appendAscii( "']/SecondaryKeys/['" );
@@ -858,13 +859,13 @@ bool UniversalContentBroker::getContentProviderData(
         uno::Sequence< uno::Any > aArguments( 1 );
         beans::PropertyValue      aProperty;
         aProperty.Name
-            = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "nodepath" ) );
+            = OUString( RTL_CONSTASCII_USTRINGPARAM( "nodepath" ) );
         aProperty.Value <<= aFullPath.makeStringAndClear();
         aArguments[ 0 ] <<= aProperty;
 
         uno::Reference< uno::XInterface > xInterface(
                 xConfigProv->createInstanceWithArguments(
-                    rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
+                    OUString( RTL_CONSTASCII_USTRINGPARAM(
                         "com.sun.star.configuration.ConfigurationAccess" ) ),
                     aArguments ) );
 
@@ -879,8 +880,8 @@ bool UniversalContentBroker::getContentProviderData(
         uno::Reference< container::XNameAccess > xNameAccess(
                                             xInterface, uno::UNO_QUERY_THROW );
 
-        uno::Sequence< rtl::OUString > aElems = xNameAccess->getElementNames();
-        const rtl::OUString* pElems = aElems.getConstArray();
+        uno::Sequence< OUString > aElems = xNameAccess->getElementNames();
+        const OUString* pElems = aElems.getConstArray();
         sal_Int32 nCount = aElems.getLength();
 
         if ( nCount > 0 )
@@ -897,7 +898,7 @@ bool UniversalContentBroker::getContentProviderData(
 
                     ContentProviderData aInfo;
 
-                    rtl::OUStringBuffer aElemBuffer;
+                    OUStringBuffer aElemBuffer;
                     aElemBuffer.appendAscii( "['" );
                     makeAndAppendXMLName( aElemBuffer, pElems[ n ] );
                     aElemBuffer.appendAscii( "']" );
diff --git a/ucb/source/core/ucbserv.cxx b/ucb/source/core/ucbserv.cxx
index f5a07e4..b5eb9d0 100644
--- a/ucb/source/core/ucbserv.cxx
+++ b/ucb/source/core/ucbserv.cxx
@@ -37,11 +37,12 @@
 #include "provprox.hxx"
 #include "cmdenv.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;
+
 //=========================================================================
 static sal_Bool writeInfo( void * pRegistryKey,
                            const OUString & rImplementationName,
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx
index 20a4dfd..82e6245 100644
--- a/ucb/source/core/ucbstore.cxx
+++ b/ucb/source/core/ucbstore.cxx
@@ -55,12 +55,14 @@ using namespace com::sun::star::ucb;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::util;
 using namespace cppu;
-using namespace rtl;
+
+using ::rtl::OUString;
+using ::rtl::OUStringBuffer;
 
 //=========================================================================
-rtl::OUString makeHierarchalNameSegment( const rtl::OUString & rIn  )
+OUString makeHierarchalNameSegment( const OUString & rIn  )
 {
-    rtl::OUStringBuffer aBuffer;
+    OUStringBuffer aBuffer;
     aBuffer.appendAscii( "['" );
 
     sal_Int32 nCount = rIn.getLength();
@@ -96,7 +98,7 @@ rtl::OUString makeHierarchalNameSegment( const rtl::OUString & rIn  )
     }
 
     aBuffer.appendAscii( "']" );
-    return rtl::OUString( aBuffer.makeStringAndClear() );
+    return OUString( aBuffer.makeStringAndClear() );
 }
 
 //=========================================================================
@@ -843,7 +845,7 @@ void PropertySetRegistry::renamePropertySet( const OUString& rOldKey,
 
                 try
                 {
-                    rtl::OUString aOldValuesKey
+                    OUString aOldValuesKey
                         = makeHierarchalNameSegment( rOldKey );
                     aOldValuesKey += OUString(RTL_CONSTASCII_USTRINGPARAM("/Values"));
 
@@ -865,7 +867,7 @@ void PropertySetRegistry::renamePropertySet( const OUString& rOldKey,
                     sal_Int32 nCount = aElems.getLength();
                     if ( nCount )
                     {
-                        rtl::OUString aNewValuesKey
+                        OUString aNewValuesKey
                             = makeHierarchalNameSegment( rNewKey );
                         aNewValuesKey += OUString(RTL_CONSTASCII_USTRINGPARAM("/Values"));
 
@@ -1134,10 +1136,10 @@ Reference< XInterface > PropertySetRegistry::getRootConfigReadAccess()
                 Sequence< Any > aArguments( 1 );
                 PropertyValue aProperty;
                 aProperty.Name
-                    = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
+                    = OUString( RTL_CONSTASCII_USTRINGPARAM(
                                             CFGPROPERTY_NODEPATH ) );
                 aProperty.Value
-                    <<= rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
+                    <<= OUString( RTL_CONSTASCII_USTRINGPARAM(
                                             STORE_CONTENTPROPERTIES_KEY ) );
                 aArguments[ 0 ] <<= aProperty;
 
@@ -1718,7 +1720,7 @@ OUString SAL_CALL PersistentPropertySet::getKey()
 //=========================================================================
 
 // virtual
-rtl::OUString SAL_CALL PersistentPropertySet::getName()
+OUString SAL_CALL PersistentPropertySet::getName()
     throw( RuntimeException )
 {
     // same as getKey()
@@ -2434,7 +2436,7 @@ const OUString& PersistentPropertySet::getFullKey()
             m_pImpl->m_aFullKey
                 = makeHierarchalNameSegment( m_pImpl->m_aKey );
             m_pImpl->m_aFullKey
-                += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/Values" ) );
+                += OUString( RTL_CONSTASCII_USTRINGPARAM( "/Values" ) );
         }
     }
 
@@ -2558,7 +2560,7 @@ Sequence< Property > SAL_CALL PropertySetInfo_Impl::getProperties()
                                 try
                                 {
                                     // Obtain and set property handle
-                                    rtl::OUString aHierName = aXMLName;
+                                    OUString aHierName = aXMLName;
                                     aHierName += aHandleName;
                                     Any aKeyValue
                                         = xHierNameAccess->getByHierarchicalName(
@@ -2581,7 +2583,7 @@ Sequence< Property > SAL_CALL PropertySetInfo_Impl::getProperties()
                                 try
                                 {
                                     // Obtain and set property type
-                                    rtl::OUString aHierName = aXMLName;
+                                    OUString aHierName = aXMLName;
                                     aHierName += aValueName;
                                     Any aKeyValue
                                         = xHierNameAccess->getByHierarchicalName(
@@ -2605,7 +2607,7 @@ Sequence< Property > SAL_CALL PropertySetInfo_Impl::getProperties()
                                 try
                                 {
                                     // Obtain and set property attributes
-                                    rtl::OUString aHierName = aXMLName;
+                                    OUString aHierName = aXMLName;
                                     aHierName += aAttrName;
                                     Any aKeyValue
                                         = xHierNameAccess->getByHierarchicalName(
diff --git a/ucb/source/sorter/sortdynres.cxx b/ucb/source/sorter/sortdynres.cxx
index 0402355..b36c25e 100644
--- a/ucb/source/sorter/sortdynres.cxx
+++ b/ucb/source/sorter/sortdynres.cxx
@@ -45,7 +45,8 @@ using namespace com::sun::star::sdbc;
 using namespace com::sun::star::ucb;
 using namespace com::sun::star::uno;
 using namespace cppu;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 //=========================================================================
 
diff --git a/ucb/source/sorter/sortmain.cxx b/ucb/source/sorter/sortmain.cxx
index 318b5e8..1e87bd2 100644
--- a/ucb/source/sorter/sortmain.cxx
+++ b/ucb/source/sorter/sortmain.cxx
@@ -33,11 +33,12 @@
 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
 #include <com/sun/star/registry/XRegistryKey.hpp>
 
-using namespace rtl;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::lang;
 using namespace com::sun::star::registry;
 
+using ::rtl::OUString;
+
 //=========================================================================
 static sal_Bool writeInfo( void * pRegistryKey,
                            const OUString & rImplementationName,
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx
index c50b20c..0e868e4 100644
--- a/ucb/source/sorter/sortresult.cxx
+++ b/ucb/source/sorter/sortresult.cxx
@@ -50,7 +50,8 @@ using namespace com::sun::star::ucb;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::util;
 using namespace cppu;
-using namespace rtl;
+
+using ::rtl::OUString;
 
 //=========================================================================
 


More information about the Libreoffice-commits mailing list