diff options
353 files changed, 1403 insertions, 1403 deletions
diff --git a/dbaccess/source/core/api/CIndexes.hxx b/dbaccess/source/core/api/CIndexes.hxx index e77ff65c6bc8..6f8e5c6fe1c1 100644 --- a/dbaccess/source/core/api/CIndexes.hxx +++ b/dbaccess/source/core/api/CIndexes.hxx @@ -35,7 +35,7 @@ namespace dbaccess public: OIndexes(connectivity::OTableHelper* _pTable, ::osl::Mutex& _rMutex, - const ::std::vector< OUString> &_rVector, + const std::vector< OUString> &_rVector, const css::uno::Reference< css::container::XNameAccess >& _rxIndexes ) : connectivity::OIndexesHelper(_pTable,_rMutex,_rVector) ,m_xIndexes(_rxIndexes) diff --git a/dbaccess/source/core/api/CRowSetDataColumn.cxx b/dbaccess/source/core/api/CRowSetDataColumn.cxx index 243dc54969ac..99b15f7d335f 100644 --- a/dbaccess/source/core/api/CRowSetDataColumn.cxx +++ b/dbaccess/source/core/api/CRowSetDataColumn.cxx @@ -198,7 +198,7 @@ ORowSetDataColumns::ORowSetDataColumns( const ::rtl::Reference< ::connectivity::OSQLColumns>& _rColumns, ::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex, - const ::std::vector< OUString> &_rVector + const std::vector< OUString> &_rVector ) : connectivity::sdbcx::OCollection(_rParent,_bCase,_rMutex,_rVector) ,m_aColumns(_rColumns) { @@ -226,7 +226,7 @@ void SAL_CALL ORowSetDataColumns::disposing() m_aColumns = nullptr; } -void ORowSetDataColumns::assign(const ::rtl::Reference< ::connectivity::OSQLColumns>& _rColumns,const ::std::vector< OUString> &_rVector) +void ORowSetDataColumns::assign(const ::rtl::Reference< ::connectivity::OSQLColumns>& _rColumns,const std::vector< OUString> &_rVector) { m_aColumns = _rColumns; reFill(_rVector); diff --git a/dbaccess/source/core/api/CRowSetDataColumn.hxx b/dbaccess/source/core/api/CRowSetDataColumn.hxx index a09bc21230fc..2ae7789ac399 100644 --- a/dbaccess/source/core/api/CRowSetDataColumn.hxx +++ b/dbaccess/source/core/api/CRowSetDataColumn.hxx @@ -88,12 +88,12 @@ namespace dbaccess const ::rtl::Reference< ::connectivity::OSQLColumns>& _rColumns, ::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex, - const ::std::vector< OUString> &_rVector + const std::vector< OUString> &_rVector ); virtual ~ORowSetDataColumns() override; // only the name is identical to ::cppu::OComponentHelper virtual void SAL_CALL disposing() override; - void assign(const ::rtl::Reference< ::connectivity::OSQLColumns>& _rColumns,const ::std::vector< OUString> &_rVector); + void assign(const ::rtl::Reference< ::connectivity::OSQLColumns>& _rColumns,const std::vector< OUString> &_rVector); }; } diff --git a/dbaccess/source/core/api/CacheSet.cxx b/dbaccess/source/core/api/CacheSet.cxx index ed1a12a4e8c8..f15c752e6972 100644 --- a/dbaccess/source/core/api/CacheSet.cxx +++ b/dbaccess/source/core/api/CacheSet.cxx @@ -194,7 +194,7 @@ void OCacheSet::fillParameters( const ORowSetRow& _rRow ,const connectivity::OSQLTable& _xTable ,OUStringBuffer& _sCondition ,OUStringBuffer& _sParameter - ,::std::vector< sal_Int32>& _rOrgValues) + ,std::vector< sal_Int32>& _rOrgValues) { // use keys and indexes for exact positioning // first the keys @@ -209,7 +209,7 @@ void OCacheSet::fillParameters( const ORowSetRow& _rRow // Reference<XColumnsSupplier> Reference<XPropertySet> xIndexColsSup; Reference<XNameAccess> xIndexColumns; - ::std::vector< Reference<XNameAccess> > aAllIndexColumns; + std::vector< Reference<XNameAccess> > aAllIndexColumns; if(xIndexes.is()) { for(sal_Int32 j=0;j<xIndexes->getCount();++j) @@ -250,8 +250,8 @@ void OCacheSet::fillParameters( const ORowSetRow& _rRow _rOrgValues.push_back(nCheckCount); } - ::std::vector< Reference<XNameAccess> >::const_iterator aIndexEnd = aAllIndexColumns.end(); - for( ::std::vector< Reference<XNameAccess> >::const_iterator aIndexIter = aAllIndexColumns.begin(); + std::vector< Reference<XNameAccess> >::const_iterator aIndexEnd = aAllIndexColumns.end(); + for( std::vector< Reference<XNameAccess> >::const_iterator aIndexIter = aAllIndexColumns.begin(); aIndexIter != aIndexEnd;++aIndexIter) { if((*aIndexIter)->hasByName(aColumnName)) @@ -282,7 +282,7 @@ void SAL_CALL OCacheSet::updateRow(const ORowSetRow& _rInsertRow ,const ORowSetR // list all columns that should be set OUStringBuffer aCondition; - ::std::vector< sal_Int32> aOrgValues; + std::vector< sal_Int32> aOrgValues; fillParameters(_rInsertRow,_xTable,aCondition,aSql,aOrgValues); aSql[aSql.getLength() - 1] = ' '; if ( !aCondition.isEmpty() ) @@ -336,7 +336,7 @@ void SAL_CALL OCacheSet::deleteRow(const ORowSetRow& _rDeleteRow ,const connecti // Reference<XColumnsSupplier> Reference<XPropertySet> xIndexColsSup; Reference<XNameAccess> xIndexColumns; - ::std::vector< Reference<XNameAccess> > aAllIndexColumns; + std::vector< Reference<XNameAccess> > aAllIndexColumns; if(xIndexes.is()) { for(sal_Int32 j=0;j<xIndexes->getCount();++j) @@ -351,7 +351,7 @@ void SAL_CALL OCacheSet::deleteRow(const ORowSetRow& _rDeleteRow ,const connecti } OUStringBuffer aColumnName; - ::std::vector< sal_Int32> aOrgValues; + std::vector< sal_Int32> aOrgValues; fillParameters(_rDeleteRow,_xTable,aSql,aColumnName,aOrgValues); aSql.setLength(aSql.getLength()-5); @@ -594,7 +594,7 @@ bool OCacheSet::isResultSetChanged() const return false; } -void OCacheSet::mergeColumnValues(sal_Int32 i_nColumnIndex,ORowSetValueVector::Vector& /*io_aInsertRow*/,ORowSetValueVector::Vector& /*io_aRow*/,::std::vector<sal_Int32>& o_aChangedColumns) +void OCacheSet::mergeColumnValues(sal_Int32 i_nColumnIndex,ORowSetValueVector::Vector& /*io_aInsertRow*/,ORowSetValueVector::Vector& /*io_aRow*/,std::vector<sal_Int32>& o_aChangedColumns) { o_aChangedColumns.push_back(i_nColumnIndex); } @@ -604,7 +604,7 @@ bool OCacheSet::columnValuesUpdated(ORowSetValueVector::Vector& /*io_aCachedRow* return false; } -bool OCacheSet::updateColumnValues(const ORowSetValueVector::Vector& /*io_aCachedRow*/,ORowSetValueVector::Vector& /*io_aRow*/,const ::std::vector<sal_Int32>& /*i_aChangedColumns*/) +bool OCacheSet::updateColumnValues(const ORowSetValueVector::Vector& /*io_aCachedRow*/,ORowSetValueVector::Vector& /*io_aRow*/,const std::vector<sal_Int32>& /*i_aChangedColumns*/) { return true; } diff --git a/dbaccess/source/core/api/CacheSet.hxx b/dbaccess/source/core/api/CacheSet.hxx index 214f50986ea9..5f2c50da9a90 100644 --- a/dbaccess/source/core/api/CacheSet.hxx +++ b/dbaccess/source/core/api/CacheSet.hxx @@ -68,7 +68,7 @@ namespace dbaccess ,const connectivity::OSQLTable& _xTable ,OUStringBuffer& _sCondition ,OUStringBuffer& _sParameter - ,::std::vector< sal_Int32>& _rOrgValues); + ,std::vector< sal_Int32>& _rOrgValues); /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException void fillTableName(const css::uno::Reference< css::beans::XPropertySet>& _xTable); @@ -173,9 +173,9 @@ namespace dbaccess virtual bool isResultSetChanged() const; virtual void reset(const css::uno::Reference< css::sdbc::XResultSet>& _xDriverSet) = 0; - virtual void mergeColumnValues(sal_Int32 i_nColumnIndex,ORowSetValueVector::Vector& io_aInsertRow,ORowSetValueVector::Vector& io_aRow,::std::vector<sal_Int32>& o_aChangedColumns); + virtual void mergeColumnValues(sal_Int32 i_nColumnIndex,ORowSetValueVector::Vector& io_aInsertRow,ORowSetValueVector::Vector& io_aRow,std::vector<sal_Int32>& o_aChangedColumns); virtual bool columnValuesUpdated(ORowSetValueVector::Vector& o_aCachedRow,const ORowSetValueVector::Vector& i_aRow); - virtual bool updateColumnValues(const ORowSetValueVector::Vector& io_aCachedRow,ORowSetValueVector::Vector& io_aRow,const ::std::vector<sal_Int32>& i_aChangedColumns); + virtual bool updateColumnValues(const ORowSetValueVector::Vector& io_aCachedRow,ORowSetValueVector::Vector& io_aRow,const std::vector<sal_Int32>& i_aChangedColumns); virtual void fillMissingValues(ORowSetValueVector::Vector& io_aRow) const; virtual bool previous_checked( bool i_bFetchRow ); virtual bool absolute_checked( sal_Int32 row,bool i_bFetchRow ); diff --git a/dbaccess/source/core/api/FilteredContainer.cxx b/dbaccess/source/core/api/FilteredContainer.cxx index e0d61ef24136..7a599e940c44 100644 --- a/dbaccess/source/core/api/FilteredContainer.cxx +++ b/dbaccess/source/core/api/FilteredContainer.cxx @@ -45,7 +45,7 @@ namespace dbaccess /** creates a vector of WildCards and reduce the _rTableFilter of the length of WildsCards */ -sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vector< WildCard >& _rOut) +sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, std::vector< WildCard >& _rOut) { // for wildcard search : remove all table filters which are a wildcard expression and build a WildCard // for them @@ -74,17 +74,17 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto bool lcl_isElementAllowed( const OUString& _rName, const Sequence< OUString >& _rTableFilter, - const ::std::vector< WildCard >& _rWCSearch ) + const std::vector< WildCard >& _rWCSearch ) { sal_Int32 nTableFilterLen = _rTableFilter.getLength(); const OUString* tableFilter = _rTableFilter.getConstArray(); const OUString* tableFilterEnd = _rTableFilter.getConstArray() + nTableFilterLen; - bool bFilterMatch = ::std::find( tableFilter, tableFilterEnd, _rName ) != tableFilterEnd; + bool bFilterMatch = std::find( tableFilter, tableFilterEnd, _rName ) != tableFilterEnd; // the table is allowed to "pass" if we had no filters at all or any of the non-wildcard filters matches if (!bFilterMatch && !_rWCSearch.empty()) { // or if one of the wildcard expression matches - for ( ::std::vector< WildCard >::const_iterator aLoop = _rWCSearch.begin(); + for ( std::vector< WildCard >::const_iterator aLoop = _rWCSearch.begin(); aLoop != _rWCSearch.end() && !bFilterMatch; ++aLoop ) @@ -118,7 +118,7 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto { } }; - typedef ::std::vector< TableInfo > TableInfos; + typedef std::vector< TableInfo > TableInfos; void lcl_ensureComposedName( TableInfo& _io_tableInfo, const Reference< XDatabaseMetaData >& _metaData ) { @@ -176,7 +176,7 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto { // for wildcard search : remove all table filters which are a wildcard expression and build a WildCard // for them - ::std::vector< WildCard > aWildCardTableFilter; + std::vector< WildCard > aWildCardTableFilter; Sequence< OUString > aNonWildCardTableFilter = _tableFilter; nTableFilterCount = createWildCardVector( aNonWildCardTableFilter, aWildCardTableFilter ); @@ -216,7 +216,7 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto // ensure that we know the table type lcl_ensureType( *table, _metaData, _masterContainer ); - if ( ::std::find( pTableTypeFilterBegin, pTableTypeFilterEnd, *table->sType ) != pTableTypeFilterEnd ) + if ( std::find( pTableTypeFilterBegin, pTableTypeFilterEnd, *table->sType ) != pTableTypeFilterEnd ) aFilteredTables.push_back( *table ); } } @@ -241,7 +241,7 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto IRefreshListener* _pRefreshListener, ::dbtools::WarningsContainer* _pWarningsContainer ,oslInterlockedCount& _nInAppend) - :OCollection(_rParent,_bCase,_rMutex,::std::vector< OUString>()) + :OCollection(_rParent,_bCase,_rMutex,std::vector< OUString>()) ,m_bConstructed(false) ,m_pWarningsContainer(_pWarningsContainer) ,m_pRefreshListener(_pRefreshListener) @@ -297,7 +297,7 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto // for wildcard search : remove all table filters which are a wildcard expression and build a WildCard // for them - ::std::vector< WildCard > aWCSearch; + std::vector< WildCard > aWCSearch; createWildCardVector(aTableFilter,aWCSearch); try diff --git a/dbaccess/source/core/api/HelperCollections.cxx b/dbaccess/source/core/api/HelperCollections.cxx index ce1662eebd36..6042d163c8e4 100644 --- a/dbaccess/source/core/api/HelperCollections.cxx +++ b/dbaccess/source/core/api/HelperCollections.cxx @@ -41,7 +41,7 @@ namespace dbaccess bool _bCase, ::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex, - const ::std::vector< OUString> &_rVector, + const std::vector< OUString> &_rVector, bool _bUseAsIndex ) : sdbcx::OCollection(_rParent,_bCase,_rMutex,_rVector,_bUseAsIndex) ,m_aColumns(_rColumns) @@ -51,7 +51,7 @@ namespace dbaccess OPrivateColumns* OPrivateColumns::createWithIntrinsicNames( const ::rtl::Reference< ::connectivity::OSQLColumns >& _rColumns, bool _bCase, ::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex ) { - ::std::vector< OUString > aNames; aNames.reserve( _rColumns->get().size() ); + std::vector< OUString > aNames; aNames.reserve( _rColumns->get().size() ); OUString sColumName; for ( ::connectivity::OSQLColumns::Vector::const_iterator column = _rColumns->get().begin(); diff --git a/dbaccess/source/core/api/HelperCollections.hxx b/dbaccess/source/core/api/HelperCollections.hxx index 1f9bbb46e0d4..b64501246c56 100644 --- a/dbaccess/source/core/api/HelperCollections.hxx +++ b/dbaccess/source/core/api/HelperCollections.hxx @@ -57,7 +57,7 @@ namespace dbaccess bool _bCase, ::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex, - const ::std::vector< OUString> &_rVector, + const std::vector< OUString> &_rVector, bool _bUseAsIndex = false ); @@ -90,7 +90,7 @@ namespace dbaccess bool _bCase, ::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex, - const ::std::vector< OUString> &_rVector + const std::vector< OUString> &_rVector ) : sdbcx::OCollection(_rParent,_bCase,_rMutex,_rVector) ,m_aTables(_rTables) { diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index 1a9dcff9df76..1ca72b3fe1c0 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -67,7 +67,7 @@ using std::vector; namespace { - void lcl_fillIndexColumns(const Reference<XIndexAccess>& _xIndexes, ::std::vector< Reference<XNameAccess> >& _rAllIndexColumns) + void lcl_fillIndexColumns(const Reference<XIndexAccess>& _xIndexes, std::vector< Reference<XNameAccess> >& _rAllIndexColumns) { if ( _xIndexes.is() ) { @@ -151,7 +151,7 @@ void OKeySet::findTableColumnsMatching_throw( const Any& i_aTable, const OUString& i_rUpdateTableName, const Reference<XDatabaseMetaData>& i_xMeta, const Reference<XNameAccess>& i_xQueryColumns, - ::std::unique_ptr<SelectColumnsMetaData>& o_pKeyColumnNames) + std::unique_ptr<SelectColumnsMetaData>& o_pKeyColumnNames) { // first ask the database itself for the best columns which can be used Sequence< OUString> aBestColumnNames; @@ -322,7 +322,7 @@ void OKeySet::construct(const Reference< XResultSet>& _xDriverSet, const OUStrin // the first row is empty because it's now easier for us to distinguish when we are beforefirst or first // without extra variable to be set - OKeySetValue keySetValue(nullptr,::std::pair<sal_Int32,Reference<XRow> >(0,Reference<XRow>())); + OKeySetValue keySetValue(nullptr,std::pair<sal_Int32,Reference<XRow> >(0,Reference<XRow>())); m_aKeyMap.insert(OKeySetMatrix::value_type(0, keySetValue)); m_aKeyIter = m_aKeyMap.begin(); } @@ -332,7 +332,7 @@ void OKeySet::reset(const Reference< XResultSet>& _xDriverSet) OCacheSet::construct(_xDriverSet, m_sRowSetFilter); m_bRowCountFinal = false; m_aKeyMap.clear(); - OKeySetValue keySetValue(nullptr,::std::pair<sal_Int32,Reference<XRow> >(0,Reference<XRow>())); + OKeySetValue keySetValue(nullptr,std::pair<sal_Int32,Reference<XRow> >(0,Reference<XRow>())); m_aKeyMap.insert(OKeySetMatrix::value_type(0,keySetValue)); m_aKeyIter = m_aKeyMap.begin(); } @@ -471,11 +471,11 @@ void SAL_CALL OKeySet::updateRow(const ORowSetRow& _rInsertRow ,const ORowSetRow if ( xIndexSup.is() ) xIndexes.set(xIndexSup->getIndexes(),UNO_QUERY); - ::std::vector< Reference<XNameAccess> > aAllIndexColumns; + std::vector< Reference<XNameAccess> > aAllIndexColumns; lcl_fillIndexColumns(xIndexes,aAllIndexColumns); OUStringBuffer sKeyCondition,sIndexCondition; - ::std::vector<sal_Int32> aIndexColumnPositions; + std::vector<sal_Int32> aIndexColumnPositions; const sal_Int32 nOldLength = aSql.getLength(); sal_Int32 i = 1; @@ -495,8 +495,8 @@ void SAL_CALL OKeySet::updateRow(const ORowSetRow& _rInsertRow ,const ORowSetRow } else { - ::std::vector< Reference<XNameAccess> >::const_iterator aIndexEnd = aAllIndexColumns.end(); - for( ::std::vector< Reference<XNameAccess> >::const_iterator aIndexIter = aAllIndexColumns.begin(); + std::vector< Reference<XNameAccess> >::const_iterator aIndexEnd = aAllIndexColumns.end(); + for( std::vector< Reference<XNameAccess> >::const_iterator aIndexIter = aAllIndexColumns.begin(); aIndexIter != aIndexEnd;++aIndexIter) { if((*aIndexIter)->hasByName(aIter->first)) @@ -551,7 +551,7 @@ void SAL_CALL OKeySet::updateRow(const ORowSetRow& _rInsertRow ,const ORowSetRow executeUpdate(_rInsertRow ,_rOriginalRow,aSql.makeStringAndClear(),"",aIndexColumnPositions); } -void OKeySet::executeUpdate(const ORowSetRow& _rInsertRow ,const ORowSetRow& _rOriginalRow,const OUString& i_sSQL,const OUString& i_sTableName,const ::std::vector<sal_Int32>& _aIndexColumnPositions) +void OKeySet::executeUpdate(const ORowSetRow& _rInsertRow ,const ORowSetRow& _rOriginalRow,const OUString& i_sSQL,const OUString& i_sTableName,const std::vector<sal_Int32>& _aIndexColumnPositions) { // now create end execute the prepared statement Reference< XPreparedStatement > xPrep(m_xConnection->prepareStatement(i_sSQL)); @@ -573,7 +573,7 @@ void OKeySet::executeUpdate(const ORowSetRow& _rInsertRow ,const ORowSetRow& _rO { if ( bRefetch ) { - bRefetch = ::std::find(m_aFilterColumns.begin(),m_aFilterColumns.end(),aIter->second.sRealName) == m_aFilterColumns.end(); + bRefetch = std::find(m_aFilterColumns.begin(),m_aFilterColumns.end(),aIter->second.sRealName) == m_aFilterColumns.end(); } impl_convertValue_throw(_rInsertRow,aIter->second); (_rInsertRow->get())[nPos].setSigned((_rOriginalRow->get())[nPos].isSigned()); @@ -595,8 +595,8 @@ void OKeySet::executeUpdate(const ORowSetRow& _rInsertRow ,const ORowSetRow& _rO if ( !_aIndexColumnPositions.empty() ) { // now we have to set the index values - ::std::vector<sal_Int32>::const_iterator aIdxColIter = _aIndexColumnPositions.begin(); - ::std::vector<sal_Int32>::const_iterator aIdxColEnd = _aIndexColumnPositions.end(); + std::vector<sal_Int32>::const_iterator aIdxColIter = _aIndexColumnPositions.begin(); + std::vector<sal_Int32>::const_iterator aIdxColEnd = _aIndexColumnPositions.end(); j = 0; aIter = m_pColumnNames->begin(); for(;aIdxColIter != aIdxColEnd;++aIdxColIter,++i,++j,++aIter) @@ -639,7 +639,7 @@ void SAL_CALL OKeySet::insertRow( const ORowSetRow& _rInsertRow,const connectivi { if ( bRefetch ) { - bRefetch = ::std::find(m_aFilterColumns.begin(),m_aFilterColumns.end(),aIter->second.sRealName) == m_aFilterColumns.end(); + bRefetch = std::find(m_aFilterColumns.begin(),m_aFilterColumns.end(),aIter->second.sRealName) == m_aFilterColumns.end(); } aSql.append(::dbtools::quoteName( aQuote,aIter->second.sRealName) + ","); aValues.append("?,"); @@ -717,8 +717,8 @@ void OKeySet::executeInsert( const ORowSetRow& _rInsertRow,const OUString& i_sSQ Reference< XResultSetMetaDataSupplier > xMdSup(xRes,UNO_QUERY); Reference< XResultSetMetaData > xMd = xMdSup->getMetaData(); sal_Int32 nColumnCount = xMd->getColumnCount(); - ::std::vector< OUString >::const_iterator aAutoIter = m_aAutoColumns.begin(); - ::std::vector< OUString >::const_iterator aAutoEnd = m_aAutoColumns.end(); + std::vector< OUString >::const_iterator aAutoIter = m_aAutoColumns.begin(); + std::vector< OUString >::const_iterator aAutoEnd = m_aAutoColumns.end(); for (sal_Int32 i = 1;aAutoIter != aAutoEnd && i <= nColumnCount; ++aAutoIter,++i) { SelectColumnsMetaData::const_iterator aFind = m_pKeyColumnNames->find(*aAutoIter); @@ -745,8 +745,8 @@ void OKeySet::executeInsert( const ORowSetRow& _rInsertRow,const OUString& i_sSQ const OUString sQuote = getIdentifierQuoteString(); OUString sMaxStmt; aEnd = m_pKeyColumnNames->end(); - ::std::vector< OUString >::const_iterator aAutoIter = m_aAutoColumns.begin(); - ::std::vector< OUString >::const_iterator aAutoEnd = m_aAutoColumns.end(); + std::vector< OUString >::const_iterator aAutoIter = m_aAutoColumns.begin(); + std::vector< OUString >::const_iterator aAutoEnd = m_aAutoColumns.end(); for (;aAutoIter != aAutoEnd; ++aAutoIter) { // we will only fetch values which are keycolumns @@ -796,7 +796,7 @@ void OKeySet::executeInsert( const ORowSetRow& _rInsertRow,const OUString& i_sSQ ORowSetRow aKeyRow = new connectivity::ORowVector< ORowSetValue >(m_pKeyColumnNames->size()); copyRowValue(_rInsertRow,aKeyRow,aKeyIter->first + 1); - m_aKeyIter = m_aKeyMap.insert(OKeySetMatrix::value_type(aKeyIter->first + 1,OKeySetValue(aKeyRow,::std::pair<sal_Int32,Reference<XRow> >(1,Reference<XRow>())))).first; + m_aKeyIter = m_aKeyMap.insert(OKeySetMatrix::value_type(aKeyIter->first + 1,OKeySetValue(aKeyRow,std::pair<sal_Int32,Reference<XRow> >(1,Reference<XRow>())))).first; // now we set the bookmark for this row (_rInsertRow->get())[0] = makeAny((sal_Int32)m_aKeyIter->first); tryRefetch(_rInsertRow,bRefetch); @@ -881,11 +881,11 @@ void SAL_CALL OKeySet::deleteRow(const ORowSetRow& _rDeleteRow,const connectivit xIndexes.set(xIndexSup->getIndexes(),UNO_QUERY); // Reference<XColumnsSupplier> - ::std::vector< Reference<XNameAccess> > aAllIndexColumns; + std::vector< Reference<XNameAccess> > aAllIndexColumns; lcl_fillIndexColumns(xIndexes,aAllIndexColumns); OUStringBuffer sIndexCondition; - ::std::vector<sal_Int32> aIndexColumnPositions; + std::vector<sal_Int32> aIndexColumnPositions; SelectColumnsMetaData::const_iterator aIter = m_pColumnNames->begin(); SelectColumnsMetaData::const_iterator aEnd = m_pColumnNames->end(); @@ -906,8 +906,8 @@ void SAL_CALL OKeySet::deleteRow(const ORowSetRow& _rDeleteRow,const connectivit } else { - ::std::vector< Reference<XNameAccess> >::const_iterator aIndexEnd = aAllIndexColumns.end(); - for( ::std::vector< Reference<XNameAccess> >::const_iterator aIndexIter = aAllIndexColumns.begin(); + std::vector< Reference<XNameAccess> >::const_iterator aIndexEnd = aAllIndexColumns.end(); + for( std::vector< Reference<XNameAccess> >::const_iterator aIndexIter = aAllIndexColumns.begin(); aIndexIter != aIndexEnd;++aIndexIter) { if((*aIndexIter)->hasByName(aIter->first)) @@ -943,8 +943,8 @@ void SAL_CALL OKeySet::deleteRow(const ORowSetRow& _rDeleteRow,const connectivit } // now we have to set the index values - ::std::vector<sal_Int32>::const_iterator aIdxColIter = aIndexColumnPositions.begin(); - ::std::vector<sal_Int32>::const_iterator aIdxColEnd = aIndexColumnPositions.end(); + std::vector<sal_Int32>::const_iterator aIdxColIter = aIndexColumnPositions.begin(); + std::vector<sal_Int32>::const_iterator aIdxColEnd = aIndexColumnPositions.end(); aIter = m_pColumnNames->begin(); for(;aIdxColIter != aIdxColEnd;++aIdxColIter,++i,++aIter) { @@ -1098,7 +1098,7 @@ sal_Int32 SAL_CALL OKeySet::getRow( ) OSL_ENSURE(!isAfterLast(),"getRow is not allowed when afterlast record!"); OSL_ENSURE(!isBeforeFirst(),"getRow is not allowed when beforefirst record!"); - return ::std::distance(m_aKeyMap.begin(),m_aKeyIter); + return std::distance(m_aKeyMap.begin(),m_aKeyIter); } bool SAL_CALL OKeySet::absolute( sal_Int32 row ) @@ -1311,7 +1311,7 @@ bool OKeySet::fetchRow() const SelectColumnDescription& rColDesc = aPosIter->second; aIter->fill(rColDesc.nPosition, rColDesc.nType, m_xRow); } - m_aKeyIter = m_aKeyMap.insert(OKeySetMatrix::value_type(m_aKeyMap.rbegin()->first+1,OKeySetValue(aKeyRow,::std::pair<sal_Int32,Reference<XRow> >(0,Reference<XRow>())))).first; + m_aKeyIter = m_aKeyMap.insert(OKeySetMatrix::value_type(m_aKeyMap.rbegin()->first+1,OKeySetValue(aKeyRow,std::pair<sal_Int32,Reference<XRow> >(0,Reference<XRow>())))).first; } else m_bRowCountFinal = true; @@ -1560,7 +1560,7 @@ void OKeySet::impl_convertValue_throw(const ORowSetRow& _rInsertRow,const Select sal_Int32 nIndex = sValue.indexOf('.'); if ( nIndex != -1 ) { - aValue = sValue.copy(0,::std::min(sValue.getLength(),nIndex + (i_aMetaData.nScale > 0 ? i_aMetaData.nScale + 1 : 0))); + aValue = sValue.copy(0,std::min(sValue.getLength(),nIndex + (i_aMetaData.nScale > 0 ? i_aMetaData.nScale + 1 : 0))); } } break; diff --git a/dbaccess/source/core/api/KeySet.hxx b/dbaccess/source/core/api/KeySet.hxx index f8c65d78a426..266b51ca28a0 100644 --- a/dbaccess/source/core/api/KeySet.hxx +++ b/dbaccess/source/core/api/KeySet.hxx @@ -60,7 +60,7 @@ namespace dbaccess { } }; - typedef ::std::map< OUString, SelectColumnDescription, ::comphelper::UStringMixLess > SelectColumnsMetaData; + typedef std::map< OUString, SelectColumnDescription, ::comphelper::UStringMixLess > SelectColumnsMetaData; // the elements of _rxQueryColumns must have the properties PROPERTY_REALNAME and PROPERTY_TABLENAME void getColumnPositions(const css::uno::Reference< css::container::XNameAccess >& _rxQueryColumns, @@ -69,9 +69,9 @@ namespace dbaccess SelectColumnsMetaData& o_rColumnNames /* out */, bool i_bAppendTableName = false); - typedef ::std::pair<ORowSetRow,::std::pair<sal_Int32,css::uno::Reference< css::sdbc::XRow> > > OKeySetValue; - typedef ::std::map<sal_Int32,OKeySetValue > OKeySetMatrix; - typedef ::std::map<sal_Int32, rtl::Reference<ORowSetValueVector> > OUpdatedParameter; + typedef std::pair<ORowSetRow,std::pair<sal_Int32,css::uno::Reference< css::sdbc::XRow> > > OKeySetValue; + typedef std::map<sal_Int32,OKeySetValue > OKeySetMatrix; + typedef std::map<sal_Int32, rtl::Reference<ORowSetValueVector> > OUpdatedParameter; // is used when the source supports keys class OKeySet : public OCacheSet { @@ -79,22 +79,22 @@ namespace dbaccess OKeySetMatrix m_aKeyMap; OKeySetMatrix::iterator m_aKeyIter; - ::std::vector< OUString > m_aAutoColumns; // contains all columns which are autoincrement ones + std::vector< OUString > m_aAutoColumns; // contains all columns which are autoincrement ones OUpdatedParameter m_aUpdatedParameter; // contains all parameter which have been updated and are needed for refetching rtl::Reference<ORowSetValueVector> m_aParameterValueForCache; - ::std::unique_ptr<SelectColumnsMetaData> m_pKeyColumnNames; // contains all key column names - ::std::unique_ptr<SelectColumnsMetaData> m_pColumnNames; // contains all column names - ::std::unique_ptr<SelectColumnsMetaData> m_pParameterNames; // contains all parameter names - ::std::unique_ptr<SelectColumnsMetaData> m_pForeignColumnNames; // contains all column names of the rest + std::unique_ptr<SelectColumnsMetaData> m_pKeyColumnNames; // contains all key column names + std::unique_ptr<SelectColumnsMetaData> m_pColumnNames; // contains all column names + std::unique_ptr<SelectColumnsMetaData> m_pParameterNames; // contains all parameter names + std::unique_ptr<SelectColumnsMetaData> m_pForeignColumnNames; // contains all column names of the rest connectivity::OSQLTable m_xTable; // reference to our table css::uno::Reference< css::container::XIndexAccess> m_xTableKeys; // we need a different SQL (statement) for each different combination // of NULLness of key & foreign columns; // each subclause is either "colName = ?" or "colName IS NULL" // (we avoid the standard "colName IS NOT DISTINCT FROM ?" because it is not widely supported) - typedef ::std::vector< bool > FilterColumnsNULL_t; - typedef ::std::map< FilterColumnsNULL_t, + typedef std::vector< bool > FilterColumnsNULL_t; + typedef std::map< FilterColumnsNULL_t, css::uno::Reference< css::sdbc::XPreparedStatement > > vStatements_t; vStatements_t m_vStatements; @@ -103,7 +103,7 @@ namespace dbaccess css::uno::Reference< css::sdbc::XRow> m_xRow; css::uno::Reference< css::sdb::XSingleSelectQueryAnalyzer > m_xComposer; const OUString m_sUpdateTableName; - ::std::vector< OUString > m_aFilterColumns; + std::vector< OUString > m_aFilterColumns; sal_Int32& m_rRowCount; bool m_bRowCountFinal; @@ -128,7 +128,7 @@ namespace dbaccess const OUString& i_rUpdateTableName, const css::uno::Reference< css::sdbc::XDatabaseMetaData>& i_xMeta, const css::uno::Reference< css::container::XNameAccess>& i_xQueryColumns, - ::std::unique_ptr<SelectColumnsMetaData>& o_pKeyColumnNames); + std::unique_ptr<SelectColumnsMetaData>& o_pKeyColumnNames); void ensureStatement( ); virtual void makeNewStatement( ); static void setOneKeyColumnParameter( sal_Int32 &nPos, @@ -141,7 +141,7 @@ namespace dbaccess /// @throws css::uno::RuntimeException bool doTryRefetch_throw(); void tryRefetch(const ORowSetRow& _rInsertRow,bool bRefetch); - void executeUpdate(const ORowSetRow& _rInsertRow, const ORowSetRow& _rOriginalRow, const OUString& i_sSQL, const OUString& i_sTableName,const ::std::vector<sal_Int32>& _aIndexColumnPositions = ::std::vector<sal_Int32>()); + void executeUpdate(const ORowSetRow& _rInsertRow, const ORowSetRow& _rOriginalRow, const OUString& i_sSQL, const OUString& i_sTableName,const std::vector<sal_Int32>& _aIndexColumnPositions = std::vector<sal_Int32>()); void executeInsert( const ORowSetRow& _rInsertRow, const OUString& i_sSQL, const OUString& i_sTableName, bool bRefetch = false); void executeStatement(OUStringBuffer& io_aFilter, css::uno::Reference< css::sdb::XSingleSelectQueryComposer>& io_xAnalyzer); diff --git a/dbaccess/source/core/api/OptimisticSet.cxx b/dbaccess/source/core/api/OptimisticSet.cxx index 88eb6a1696d7..84c3e6ff372d 100644 --- a/dbaccess/source/core/api/OptimisticSet.cxx +++ b/dbaccess/source/core/api/OptimisticSet.cxx @@ -118,14 +118,14 @@ void OptimisticSet::construct(const Reference< XResultSet>& _xDriverSet,const OU const OUString* pTableNameEnd = pTableNameIter + aTableNames.getLength(); for( ; pTableNameIter != pTableNameEnd ; ++pTableNameIter) { - ::std::unique_ptr<SelectColumnsMetaData> pKeyColumNames(new SelectColumnsMetaData(bCase)); + std::unique_ptr<SelectColumnsMetaData> pKeyColumNames(new SelectColumnsMetaData(bCase)); findTableColumnsMatching_throw(xTables->getByName(*pTableNameIter),*pTableNameIter,xMeta,xQueryColumns,pKeyColumNames); m_pKeyColumnNames->insert(pKeyColumNames->begin(),pKeyColumNames->end()); } // the first row is empty because it's now easier for us to distinguish when we are beforefirst or first // without extra variable to be set - OKeySetValue keySetValue(nullptr,::std::pair<sal_Int32,Reference<XRow> >(0,Reference<XRow>())); + OKeySetValue keySetValue(nullptr,std::pair<sal_Int32,Reference<XRow> >(0,Reference<XRow>())); m_aKeyMap.insert(OKeySetMatrix::value_type(0,keySetValue)); m_aKeyIter = m_aKeyMap.begin(); @@ -136,7 +136,7 @@ void OptimisticSet::construct(const Reference< XResultSet>& _xDriverSet,const OU xAnalyzer->setElementaryQuery(xSourceComposer->getElementaryQuery()); // check for joins OUString aErrorMsg; - ::std::unique_ptr<OSQLParseNode> pStatementNode( m_aSqlParser.parseTree( aErrorMsg, sQuery ) ); + std::unique_ptr<OSQLParseNode> pStatementNode( m_aSqlParser.parseTree( aErrorMsg, sQuery ) ); m_aSqlIterator.setParseTree( pStatementNode.get() ); m_aSqlIterator.traverseAll(); fillJoinedColumns_throw(m_aSqlIterator.getJoinConditions()); @@ -174,7 +174,7 @@ void SAL_CALL OptimisticSet::updateRow(const ORowSetRow& _rInsertRow ,const ORow // list all columns that should be set OUString aQuote = getIdentifierQuoteString(); - ::std::map< OUString,bool > aResultSetChanged; + std::map< OUString,bool > aResultSetChanged; TSQLStatements aKeyConditions; TSQLStatements aSql; @@ -196,7 +196,7 @@ void SAL_CALL OptimisticSet::updateRow(const ORowSetRow& _rInsertRow ,const ORow if ( m_aJoinedKeyColumns.find(aIter->second.nPosition) != m_aJoinedKeyColumns.end() ) throw SQLException(); - ::std::map<sal_Int32,sal_Int32>::const_iterator aJoinIter = m_aJoinedColumns.find(aIter->second.nPosition); + std::map<sal_Int32,sal_Int32>::const_iterator aJoinIter = m_aJoinedColumns.find(aIter->second.nPosition); if ( aJoinIter != m_aJoinedColumns.end() ) { (_rInsertRow->get())[aJoinIter->second] = (_rInsertRow->get())[aIter->second.nPosition]; @@ -241,7 +241,7 @@ void SAL_CALL OptimisticSet::insertRow( const ORowSetRow& _rInsertRow,const conn TSQLStatements aSql; TSQLStatements aParameter; TSQLStatements aKeyConditions; - ::std::map< OUString,bool > aResultSetChanged; + std::map< OUString,bool > aResultSetChanged; OUString aQuote = getIdentifierQuoteString(); // here we build the condition part for the update statement @@ -260,7 +260,7 @@ void SAL_CALL OptimisticSet::insertRow( const ORowSetRow& _rInsertRow,const conn lcl_fillKeyCondition(aIter->second.sTableName,sQuotedColumnName,(_rInsertRow->get())[aIter->second.nPosition],aKeyConditions); aResultSetChanged[aIter->second.sTableName] = true; } - ::std::map<sal_Int32,sal_Int32>::const_iterator aJoinIter = m_aJoinedColumns.find(aIter->second.nPosition); + std::map<sal_Int32,sal_Int32>::const_iterator aJoinIter = m_aJoinedColumns.find(aIter->second.nPosition); if ( aJoinIter != m_aJoinedColumns.end() ) { (_rInsertRow->get())[aJoinIter->second] = (_rInsertRow->get())[aIter->second.nPosition]; @@ -391,9 +391,9 @@ void OptimisticSet::executeDelete(const ORowSetRow& _rDeleteRow,const OUString& } } -void OptimisticSet::fillJoinedColumns_throw(const ::std::vector< TNodePair >& i_aJoinColumns) +void OptimisticSet::fillJoinedColumns_throw(const std::vector< TNodePair >& i_aJoinColumns) { - ::std::vector< TNodePair >::const_iterator aIter = i_aJoinColumns.begin(); + std::vector< TNodePair >::const_iterator aIter = i_aJoinColumns.begin(); for(;aIter != i_aJoinColumns.end();++aIter) { OUString sColumnName,sTableName; @@ -452,10 +452,10 @@ bool OptimisticSet::isResultSetChanged() const return bOld; } -void OptimisticSet::mergeColumnValues(sal_Int32 i_nColumnIndex,ORowSetValueVector::Vector& io_aInsertRow,ORowSetValueVector::Vector& io_aRow,::std::vector<sal_Int32>& o_aChangedColumns) +void OptimisticSet::mergeColumnValues(sal_Int32 i_nColumnIndex,ORowSetValueVector::Vector& io_aInsertRow,ORowSetValueVector::Vector& io_aRow,std::vector<sal_Int32>& o_aChangedColumns) { o_aChangedColumns.push_back(i_nColumnIndex); - ::std::map<sal_Int32,sal_Int32>::const_iterator aJoinIter = m_aJoinedColumns.find(i_nColumnIndex); + std::map<sal_Int32,sal_Int32>::const_iterator aJoinIter = m_aJoinedColumns.find(i_nColumnIndex); if ( aJoinIter != m_aJoinedColumns.end() ) { io_aRow[aJoinIter->second] = io_aRow[i_nColumnIndex]; @@ -465,19 +465,19 @@ void OptimisticSet::mergeColumnValues(sal_Int32 i_nColumnIndex,ORowSetValueVecto } } -bool OptimisticSet::updateColumnValues(const ORowSetValueVector::Vector& io_aCachedRow,ORowSetValueVector::Vector& io_aRow,const ::std::vector<sal_Int32>& i_aChangedColumns) +bool OptimisticSet::updateColumnValues(const ORowSetValueVector::Vector& io_aCachedRow,ORowSetValueVector::Vector& io_aRow,const std::vector<sal_Int32>& i_aChangedColumns) { bool bRet = false; for( const auto& aColIdx : i_aChangedColumns ) { - SelectColumnsMetaData::const_iterator aFind = ::std::find_if( + SelectColumnsMetaData::const_iterator aFind = std::find_if( m_pKeyColumnNames->begin(),m_pKeyColumnNames->end(), [&aColIdx]( const SelectColumnsMetaData::value_type& aType ) { return aType.second.nPosition == aColIdx; } ); if ( aFind != m_pKeyColumnNames->end() ) { const OUString sTableName = aFind->second.sTableName; - aFind = ::std::find_if( m_pKeyColumnNames->begin(),m_pKeyColumnNames->end(), + aFind = std::find_if( m_pKeyColumnNames->begin(),m_pKeyColumnNames->end(), [&sTableName] ( const SelectColumnsMetaData::value_type& rCurr ) { return rCurr.second.sTableName == sTableName; } ); @@ -511,14 +511,14 @@ bool OptimisticSet::columnValuesUpdated(ORowSetValueVector::Vector& o_aCachedRow for( const auto& aCol : *m_pColumnNames ) { sal_Int32 nPos = aCol.second.nPosition; - SelectColumnsMetaData::const_iterator aFind = ::std::find_if( + SelectColumnsMetaData::const_iterator aFind = std::find_if( m_pKeyColumnNames->begin(),m_pKeyColumnNames->end(), [&nPos] ( const SelectColumnsMetaData::value_type& aType ) { return aType.second.nPosition == nPos; } ); if ( aFind != m_pKeyColumnNames->end() ) { const OUString sTableName = aFind->second.sTableName; - aFind = ::std::find_if( m_pKeyColumnNames->begin(),m_pKeyColumnNames->end(), + aFind = std::find_if( m_pKeyColumnNames->begin(),m_pKeyColumnNames->end(), [&sTableName] ( const SelectColumnsMetaData::value_type& rCurr ) { return rCurr.second.sTableName == sTableName; } ); @@ -551,7 +551,7 @@ void OptimisticSet::fillMissingValues(ORowSetValueVector::Vector& io_aRow) const { TSQLStatements aSql; TSQLStatements aKeyConditions; - ::std::map< OUString,bool > aResultSetChanged; + std::map< OUString,bool > aResultSetChanged; OUString aQuote = getIdentifierQuoteString(); // here we build the condition part for the update statement SelectColumnsMetaData::const_iterator aColIter = m_pColumnNames->begin(); diff --git a/dbaccess/source/core/api/OptimisticSet.hxx b/dbaccess/source/core/api/OptimisticSet.hxx index 92766fd8abe4..417ab833e48f 100644 --- a/dbaccess/source/core/api/OptimisticSet.hxx +++ b/dbaccess/source/core/api/OptimisticSet.hxx @@ -36,13 +36,13 @@ namespace dbaccess ::connectivity::OSQLParser m_aSqlParser; ::connectivity::OSQLParseTreeIterator m_aSqlIterator; - ::std::map<sal_Int32,sal_Int32> m_aJoinedColumns; - ::std::map<sal_Int32,sal_Int32> m_aJoinedKeyColumns; + std::map<sal_Int32,sal_Int32> m_aJoinedColumns; + std::map<sal_Int32,sal_Int32> m_aJoinedKeyColumns; mutable bool m_bResultSetChanged; void executeDelete(const ORowSetRow& _rDeleteRow,const OUString& i_sSQL,const OUString& i_sTableName); - void fillJoinedColumns_throw(const ::std::vector< ::connectivity::TNodePair>& i_aJoinColumns); + void fillJoinedColumns_throw(const std::vector< ::connectivity::TNodePair>& i_aJoinColumns); void fillJoinedColumns_throw(const OUString& i_sLeftColumn,const OUString& i_sRightColumn); protected: virtual void makeNewStatement( ) override; @@ -65,13 +65,13 @@ namespace dbaccess // CacheSet virtual bool isResultSetChanged() const override; - virtual void mergeColumnValues(sal_Int32 i_nColumnIndex,ORowSetValueVector::Vector& io_aInsertRow,ORowSetValueVector::Vector& io_aRow,::std::vector<sal_Int32>& o_aChangedColumns) override; + virtual void mergeColumnValues(sal_Int32 i_nColumnIndex,ORowSetValueVector::Vector& io_aInsertRow,ORowSetValueVector::Vector& io_aRow,std::vector<sal_Int32>& o_aChangedColumns) override; virtual bool columnValuesUpdated(ORowSetValueVector::Vector& o_aCachedRow,const ORowSetValueVector::Vector& i_aRow) override; - virtual bool updateColumnValues(const ORowSetValueVector::Vector& io_aCachedRow,ORowSetValueVector::Vector& io_aRow,const ::std::vector<sal_Int32>& i_aChangedColumns) override; + virtual bool updateColumnValues(const ORowSetValueVector::Vector& io_aCachedRow,ORowSetValueVector::Vector& io_aRow,const std::vector<sal_Int32>& i_aChangedColumns) override; virtual void fillMissingValues(ORowSetValueVector::Vector& io_aRow) const override; bool isReadOnly() const { return m_aJoinedKeyColumns.empty(); } - const ::std::map<sal_Int32,sal_Int32>& getJoinedKeyColumns() const { return m_aJoinedKeyColumns; } + const std::map<sal_Int32,sal_Int32>& getJoinedKeyColumns() const { return m_aJoinedKeyColumns; } }; } #endif // INCLUDED_DBACCESS_SOURCE_CORE_API_OPTIMISTICSET_HXX diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx index f8e26041972c..aaaaab135f97 100644 --- a/dbaccess/source/core/api/RowSet.cxx +++ b/dbaccess/source/core/api/RowSet.cxx @@ -566,7 +566,7 @@ void ORowSet::freeResources( bool _bComplete ) // the columns must be disposed before the querycomposer is disposed because // their owner can be the composer TDataColumns().swap(m_aDataColumns);// clear and resize capacity - ::std::vector<bool>().swap(m_aReadOnlyDataColumns); + std::vector<bool>().swap(m_aReadOnlyDataColumns); m_xColumns = nullptr; if ( m_pColumns ) @@ -909,7 +909,7 @@ void SAL_CALL ORowSet::insertRow() RowsChangeEvent aEvt(*this,RowChangeAction::INSERT,1,aChangedBookmarks); notifyAllListenersRowBeforeChange(aGuard,aEvt); - ::std::vector< Any > aBookmarks; + std::vector< Any > aBookmarks; bool bInserted = m_pCache->insertRow(aBookmarks); // make sure that our row is set to the new inserted row before clearing the insert flags in the cache @@ -963,7 +963,7 @@ void SAL_CALL ORowSet::updateRow( ) RowsChangeEvent aEvt(*this,RowChangeAction::UPDATE,1,aChangedBookmarks); notifyAllListenersRowBeforeChange(aGuard,aEvt); - ::std::vector< Any > aBookmarks; + std::vector< Any > aBookmarks; m_pCache->updateRow(m_aCurrentRow.operator ->(),aBookmarks); if ( !aBookmarks.empty() ) aEvt.Bookmarks = Sequence<Any>(&(*aBookmarks.begin()),aBookmarks.size()); @@ -1243,7 +1243,7 @@ void ORowSet::impl_setDataColumnsWriteable_throw() impl_restoreDataColumnsWriteable_throw(); TDataColumns::const_iterator aIter = m_aDataColumns.begin(); m_aReadOnlyDataColumns.resize(m_aDataColumns.size(),false); - ::std::vector<bool, std::allocator<bool> >::iterator aReadIter = m_aReadOnlyDataColumns.begin(); + std::vector<bool, std::allocator<bool> >::iterator aReadIter = m_aReadOnlyDataColumns.begin(); for(;aIter != m_aDataColumns.end();++aIter,++aReadIter) { bool bReadOnly = false; @@ -1258,7 +1258,7 @@ void ORowSet::impl_restoreDataColumnsWriteable_throw() { assert(m_aDataColumns.size() == m_aReadOnlyDataColumns.size() || m_aReadOnlyDataColumns.size() == 0 ); TDataColumns::const_iterator aIter = m_aDataColumns.begin(); - ::std::vector<bool, std::allocator<bool> >::const_iterator aReadIter = m_aReadOnlyDataColumns.begin(); + std::vector<bool, std::allocator<bool> >::const_iterator aReadIter = m_aReadOnlyDataColumns.begin(); for(;aReadIter != m_aReadOnlyDataColumns.end();++aIter,++aReadIter) { (*aIter)->setPropertyValue(PROPERTY_ISREADONLY, makeAny( (bool)*aReadIter ) ); @@ -1849,10 +1849,10 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi m_xNumberFormatTypes.set(xNumberFormat->getNumberFormats(),UNO_QUERY); ::rtl::Reference< ::connectivity::OSQLColumns> aColumns = new ::connectivity::OSQLColumns(); - ::std::vector< OUString> aNames; + std::vector< OUString> aNames; OUString aDescription; - const ::std::map<sal_Int32,sal_Int32>& rKeyColumns = m_pCache->getKeyColumns(); + const std::map<sal_Int32,sal_Int32>& rKeyColumns = m_pCache->getKeyColumns(); if(!m_xColumns.is()) { SAL_INFO("dbaccess", "ORowSet::execute_NoApprove_NoNewConn::creating columns" ); @@ -1930,7 +1930,7 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi sal_Int32 nCount = xMeta->getColumnCount(); m_aDataColumns.reserve(nCount+1); aColumns->get().reserve(nCount+1); - ::std::set< Reference< XPropertySet > > aAllColumns; + std::set< Reference< XPropertySet > > aAllColumns; for(sal_Int32 i=1; i <= nCount ;++i) { @@ -2448,7 +2448,7 @@ void ORowSet::impl_initParametersContainer_nothrow() m_pParameters = new param::ParameterWrapperContainer( m_xComposer.get() ); // copy the premature parameters into the final ones - size_t nParamCount( ::std::min( m_pParameters->size(), m_aPrematureParamValues->get().size() ) ); + size_t nParamCount( std::min( m_pParameters->size(), m_aPrematureParamValues->get().size() ) ); for ( size_t i=0; i<nParamCount; ++i ) { (*m_pParameters)[i] = m_aPrematureParamValues->get()[i]; @@ -2798,7 +2798,7 @@ ORowSetClone::ORowSetClone( const Reference<XComponentContext>& _rContext, ORowS m_aOldRow = m_pCache->registerOldRow(); ::rtl::Reference< ::connectivity::OSQLColumns> aColumns = new ::connectivity::OSQLColumns(); - ::std::vector< OUString> aNames; + std::vector< OUString> aNames; OUString aDescription; Locale aLocale = SvtSysLocale().GetLanguageTag().getLocale(); diff --git a/dbaccess/source/core/api/RowSet.hxx b/dbaccess/source/core/api/RowSet.hxx index 0e92d1cc3391..c580264574e3 100644 --- a/dbaccess/source/core/api/RowSet.hxx +++ b/dbaccess/source/core/api/RowSet.hxx @@ -90,8 +90,8 @@ namespace dbaccess */ rtl::Reference<ORowSetValueVector> m_aPrematureParamValues; rtl::Reference<ORowSetValueVector> m_aParameterValueForCache; - ::std::vector<bool> m_aParametersSet; - ::std::vector<bool> m_aReadOnlyDataColumns; + std::vector<bool> m_aParametersSet; + std::vector<bool> m_aReadOnlyDataColumns; ::comphelper::OInterfaceContainerHelper2 m_aRowsetListeners; ::comphelper::OInterfaceContainerHelper2 m_aApproveListeners; diff --git a/dbaccess/source/core/api/RowSetBase.cxx b/dbaccess/source/core/api/RowSetBase.cxx index 0f37b643ff04..d90ad84af330 100644 --- a/dbaccess/source/core/api/RowSetBase.cxx +++ b/dbaccess/source/core/api/RowSetBase.cxx @@ -60,7 +60,7 @@ protected: virtual void impl_refresh() override; virtual connectivity::sdbcx::ObjectType createObject(const OUString& _rName) override; public: - OEmptyCollection(::cppu::OWeakObject& _rParent,::osl::Mutex& _rMutex) : OCollection(_rParent, true, _rMutex, ::std::vector< OUString>()){} + OEmptyCollection(::cppu::OWeakObject& _rParent,::osl::Mutex& _rMutex) : OCollection(_rParent, true, _rMutex, std::vector< OUString>()){} }; void OEmptyCollection::impl_refresh() @@ -776,8 +776,8 @@ void SAL_CALL ORowSetBase::afterLast( ) SAL_INFO("dbaccess", "ORowSetBase::afterLast() Clone = " << m_bClone); } -bool SAL_CALL ORowSetBase::move( ::std::mem_fun_t<bool,ORowSetBase>& _aCheckFunctor, - ::std::mem_fun_t<bool,ORowSetCache>& _aMovementFunctor) +bool SAL_CALL ORowSetBase::move( std::mem_fun_t<bool,ORowSetBase>& _aCheckFunctor, + std::mem_fun_t<bool,ORowSetCache>& _aMovementFunctor) { SAL_INFO("dbaccess", "ORowSetBase::move() Clone = " << m_bClone); ::connectivity::checkDisposed(m_rBHelper.bDisposed); @@ -826,16 +826,16 @@ bool SAL_CALL ORowSetBase::move( ::std::mem_fun_t<bool,ORowSetBase>& _aCheckF sal_Bool SAL_CALL ORowSetBase::first( ) { SAL_INFO("dbaccess", "ORowSetBase::first() Clone = " << m_bClone); - ::std::mem_fun_t<bool,ORowSetBase> ioF_tmp(&ORowSetBase::isOnFirst); - ::std::mem_fun_t<bool,ORowSetCache> F_tmp(&ORowSetCache::first); + std::mem_fun_t<bool,ORowSetBase> ioF_tmp(&ORowSetBase::isOnFirst); + std::mem_fun_t<bool,ORowSetCache> F_tmp(&ORowSetCache::first); return move(ioF_tmp,F_tmp); } sal_Bool SAL_CALL ORowSetBase::last( ) { SAL_INFO("dbaccess", "ORowSetBase::last() Clone = " << m_bClone); - ::std::mem_fun_t<bool,ORowSetBase> ioL_tmp(&ORowSetBase::isOnLast); - ::std::mem_fun_t<bool,ORowSetCache> L_tmp(&ORowSetCache::last); + std::mem_fun_t<bool,ORowSetBase> ioL_tmp(&ORowSetBase::isOnLast); + std::mem_fun_t<bool,ORowSetCache> L_tmp(&ORowSetCache::last); return move(ioL_tmp,L_tmp); } @@ -1364,7 +1364,7 @@ sal_Int32 ORowSetBase::impl_getRowCount() const struct ORowSetNotifierImpl { - ::std::vector<sal_Int32> aChangedColumns; + std::vector<sal_Int32> aChangedColumns; ORowSetValueVector::Vector aRow; }; @@ -1427,7 +1427,7 @@ void ORowSetNotifier::fire() #endif } -::std::vector<sal_Int32>& ORowSetNotifier::getChangedColumns() const +std::vector<sal_Int32>& ORowSetNotifier::getChangedColumns() const { OSL_ENSURE(m_pImpl.get(),"Illegal CTor call, use the other one!"); return m_pImpl->aChangedColumns; @@ -1438,7 +1438,7 @@ void ORowSetNotifier::firePropertyChange() OSL_ENSURE(m_pImpl.get(),"Illegal CTor call, use the other one!"); if( m_pImpl.get() ) { - ::std::vector<sal_Int32>::const_iterator aIter = m_pImpl->aChangedColumns.begin(); + std::vector<sal_Int32>::const_iterator aIter = m_pImpl->aChangedColumns.begin(); for(;aIter != m_pImpl->aChangedColumns.end();++aIter) { m_pRowSet->firePropertyChange((*aIter)-1 ,m_pImpl->aRow[(*aIter)-1], ORowSetBase::GrantNotifierAccess()); diff --git a/dbaccess/source/core/api/RowSetBase.hxx b/dbaccess/source/core/api/RowSetBase.hxx index ca2a425c4f32..385ef02aed57 100644 --- a/dbaccess/source/core/api/RowSetBase.hxx +++ b/dbaccess/source/core/api/RowSetBase.hxx @@ -74,7 +74,7 @@ namespace dbaccess { OModuleClient m_aModuleClient; protected: - typedef ::std::vector<ORowSetDataColumn*> TDataColumns; + typedef std::vector<ORowSetDataColumn*> TDataColumns; ::osl::Mutex* m_pMutex; // this the mutex form the rowset itself ::osl::Mutex // we need a extra mutex for columns to prevend deadlock when setting new values // for a row @@ -202,8 +202,8 @@ namespace dbaccess @return <TRUE/> if movement was successful. */ - bool SAL_CALL move( ::std::mem_fun_t<bool,ORowSetBase>& _aCheckFunctor, - ::std::mem_fun_t<bool,ORowSetCache>& _aMovementFunctor); + bool SAL_CALL move( std::mem_fun_t<bool,ORowSetBase>& _aCheckFunctor, + std::mem_fun_t<bool,ORowSetCache>& _aMovementFunctor); /** same meaning as isFirst. Only need by mem_fun @return @@ -356,7 +356,7 @@ namespace dbaccess class ORowSetNotifier { private: - ::std::unique_ptr<ORowSetNotifierImpl> m_pImpl; + std::unique_ptr<ORowSetNotifierImpl> m_pImpl; ORowSetBase* m_pRowSet; // not acquired! This is not necessary because this class here is to be used on the stack within // a method of ORowSetBase (or derivees) @@ -402,7 +402,7 @@ namespace dbaccess /** use this one to store the inde of the changed column values */ - ::std::vector<sal_Int32>& getChangedColumns() const; + std::vector<sal_Int32>& getChangedColumns() const; }; diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index c1863f66ab53..0f340a5ed97e 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -385,8 +385,8 @@ void ORowSetCache::setFetchSize(sal_Int32 _nSize) else { // now correct the iterator in our iterator vector - ::std::vector<sal_Int32> aPositions; - ::std::map<sal_Int32,bool> aCacheIterToChange; + std::vector<sal_Int32> aPositions; + std::map<sal_Int32,bool> aCacheIterToChange; // first get the positions where they stand now ORowSetCacheMap::iterator aCacheIter = m_aCacheIterators.begin(); ORowSetCacheMap::const_iterator aCacheEnd = m_aCacheIterators.end(); @@ -411,8 +411,8 @@ void ORowSetCache::setFetchSize(sal_Int32 _nSize) m_aMatrixEnd = m_pMatrix->end(); // now adjust their positions because a resize invalidates all iterators - ::std::vector<sal_Int32>::const_iterator aIter = aPositions.begin(); - ::std::map<sal_Int32,bool>::const_iterator aPosChangeIter = aCacheIterToChange.begin(); + std::vector<sal_Int32>::const_iterator aIter = aPositions.begin(); + std::map<sal_Int32,bool>::const_iterator aPosChangeIter = aCacheIterToChange.begin(); for( aCacheIter = m_aCacheIterators.begin(); aPosChangeIter != aCacheIterToChange.end(); ++aPosChangeIter,++aCacheIter) @@ -552,7 +552,7 @@ sal_Int32 ORowSetCache::hashBookmark( const Any& bookmark ) // XRowUpdate void ORowSetCache::updateNull(sal_Int32 columnIndex,ORowSetValueVector::Vector& io_aRow - ,::std::vector<sal_Int32>& o_ChangedColumns + ,std::vector<sal_Int32>& o_ChangedColumns ) { checkUpdateConditions(columnIndex); @@ -572,7 +572,7 @@ void ORowSetCache::updateNull(sal_Int32 columnIndex,ORowSetValueVector::Vector& void ORowSetCache::updateValue(sal_Int32 columnIndex,const ORowSetValue& x ,ORowSetValueVector::Vector& io_aRow - ,::std::vector<sal_Int32>& o_ChangedColumns + ,std::vector<sal_Int32>& o_ChangedColumns ) { checkUpdateConditions(columnIndex); @@ -592,7 +592,7 @@ void ORowSetCache::updateValue(sal_Int32 columnIndex,const ORowSetValue& x void ORowSetCache::updateCharacterStream( sal_Int32 columnIndex, const Reference< css::io::XInputStream >& x , sal_Int32 length,ORowSetValueVector::Vector& io_aRow - ,::std::vector<sal_Int32>& o_ChangedColumns + ,std::vector<sal_Int32>& o_ChangedColumns ) { checkUpdateConditions(columnIndex); @@ -613,7 +613,7 @@ void ORowSetCache::updateCharacterStream( sal_Int32 columnIndex, const Reference void ORowSetCache::updateObject( sal_Int32 columnIndex, const Any& x ,ORowSetValueVector::Vector& io_aRow - ,::std::vector<sal_Int32>& o_ChangedColumns + ,std::vector<sal_Int32>& o_ChangedColumns ) { checkUpdateConditions(columnIndex); @@ -635,7 +635,7 @@ void ORowSetCache::updateObject( sal_Int32 columnIndex, const Any& x void ORowSetCache::updateNumericObject( sal_Int32 columnIndex, const Any& x, sal_Int32 /*scale*/ ,ORowSetValueVector::Vector& io_aRow - ,::std::vector<sal_Int32>& o_ChangedColumns + ,std::vector<sal_Int32>& o_ChangedColumns ) { checkUpdateConditions(columnIndex); @@ -795,7 +795,7 @@ bool ORowSetCache::fillMatrix(sal_Int32& _nNewStartPos, sal_Int32 &_nNewEndPos) bCheck = m_xCacheSet->next(); } if(aIter != aEnd) - ::std::rotate(m_pMatrix->begin(),aEnd,aIter); + std::rotate(m_pMatrix->begin(),aEnd,aIter); break; } bCheck = m_xCacheSet->next(); @@ -912,7 +912,7 @@ void ORowSetCache::moveWindow() fill(aIter, aNewEnd, nPos, bCheck); } - ::std::rotate(m_pMatrix->begin(), aEnd, aNewEnd); + std::rotate(m_pMatrix->begin(), aEnd, aNewEnd); // now correct the iterator in our iterator vector // rotateCacheIterator(aEnd-m_pMatrix->begin()); //can't be used because they decrement and here we need to increment ORowSetCacheMap::iterator aCacheIter = m_aCacheIterators.begin(); @@ -994,7 +994,7 @@ void ORowSetCache::moveWindow() { OSL_ENSURE(aIter == aEnd, "fill() said went till end, but did not."); // rotate the end to the front - ::std::rotate(m_pMatrix->begin(), aIter, aDataEnd); + std::rotate(m_pMatrix->begin(), aIter, aDataEnd); // now correct the iterator in our iterator vector rotateCacheIterator( nNewStartPosInMatrix ); m_nStartPos = nNewStartPos; @@ -1028,7 +1028,7 @@ void ORowSetCache::moveWindow() nPos -= 1; m_nStartPos += nFetchedRows; m_nEndPos = nPos; - ::std::rotate(m_pMatrix->begin(), aIter, aDataEnd); + std::rotate(m_pMatrix->begin(), aIter, aDataEnd); // now correct the iterator in our iterator vector rotateCacheIterator( nFetchedRows ); @@ -1271,7 +1271,7 @@ bool ORowSetCache::rowInserted( ) } // XResultSetUpdate -bool ORowSetCache::insertRow(::std::vector< Any >& o_aBookmarks) +bool ORowSetCache::insertRow(std::vector< Any >& o_aBookmarks) { if ( !m_bNew || !m_aInsertRow->is() ) throw SQLException(DBACORE_RESSTRING(RID_STR_NO_MOVETOINSERTROW_CALLED),nullptr,SQLSTATE_GENERAL,1000,Any() ); @@ -1327,7 +1327,7 @@ void ORowSetCache::cancelRowModification() resetInsertRow(false); } -void ORowSetCache::updateRow( ORowSetMatrix::iterator& _rUpdateRow,::std::vector< Any >& o_aBookmarks ) +void ORowSetCache::updateRow( ORowSetMatrix::iterator& _rUpdateRow,std::vector< Any >& o_aBookmarks ) { if(isAfterLast() || isBeforeFirst()) throw SQLException(DBACORE_RESSTRING(RID_STR_NO_UPDATEROW),nullptr,SQLSTATE_GENERAL,1000,Any() ); @@ -1568,7 +1568,7 @@ bool ORowSetCache::checkJoin(const Reference< XConnection>& _xConnection, OUString sSql = _xAnalyzer->getQuery(); OUString sErrorMsg; ::connectivity::OSQLParser aSqlParser( m_aContext ); - ::std::unique_ptr< ::connectivity::OSQLParseNode> pSqlParseNode( aSqlParser.parseTree(sErrorMsg,sSql)); + std::unique_ptr< ::connectivity::OSQLParseNode> pSqlParseNode( aSqlParser.parseTree(sErrorMsg,sSql)); if ( pSqlParseNode.get() && SQL_ISRULE(pSqlParseNode, select_statement) ) { OSQLParseNode* pTableRefCommalist = pSqlParseNode->getByRule(::connectivity::OSQLParseNode::table_ref_commalist); @@ -1719,7 +1719,7 @@ void ORowSetCache::reset(const Reference< XResultSet>& _xDriverSet) } void ORowSetCache::impl_updateRowFromCache_throw(ORowSetValueVector::Vector& io_aRow - ,::std::vector<sal_Int32>& o_ChangedColumns) + ,std::vector<sal_Int32>& o_ChangedColumns) { if ( o_ChangedColumns.size() > 1 ) { diff --git a/dbaccess/source/core/api/RowSetCache.hxx b/dbaccess/source/core/api/RowSetCache.hxx index 8838254bcb55..363731ad65aa 100644 --- a/dbaccess/source/core/api/RowSetCache.hxx +++ b/dbaccess/source/core/api/RowSetCache.hxx @@ -55,9 +55,9 @@ namespace dbaccess friend class ORowSetClone; friend class ORowSetCacheIterator; - typedef ::std::vector< TORowSetOldRowHelperRef > TOldRowSetRows; + typedef std::vector< TORowSetOldRowHelperRef > TOldRowSetRows; - ::std::map<sal_Int32,sal_Int32> m_aKeyColumns; + std::map<sal_Int32,sal_Int32> m_aKeyColumns; //the set can be static, bookmarkable or keyset css::uno::WeakReference< css::sdbc::XResultSet> m_xSet; css::uno::Reference< css::sdbc::XResultSetMetaData > m_xMetaData; // must be before m_aInsertRow @@ -101,11 +101,11 @@ namespace dbaccess void updateValue(sal_Int32 columnIndex ,const connectivity::ORowSetValue& x ,ORowSetValueVector::Vector& io_aRow - ,::std::vector<sal_Int32>& o_ChangedColumns + ,std::vector<sal_Int32>& o_ChangedColumns ); void impl_updateRowFromCache_throw(ORowSetValueVector::Vector& io_aRow - ,::std::vector<sal_Int32>& o_ChangedColumns + ,std::vector<sal_Int32>& o_ChangedColumns ); // checks and set the flags isAfterLast isLast and position when afterlast is true void checkPositionFlags(); @@ -160,13 +160,13 @@ namespace dbaccess sal_Int32 hashBookmark( const css::uno::Any& bookmark ); // css::sdbc::XRowUpdate - void updateCharacterStream( sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length,ORowSetValueVector::Vector& io_aRow,::std::vector<sal_Int32>& o_ChangedColumns + void updateCharacterStream( sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length,ORowSetValueVector::Vector& io_aRow,std::vector<sal_Int32>& o_ChangedColumns ); - void updateObject( sal_Int32 columnIndex, const css::uno::Any& x,ORowSetValueVector::Vector& io_aRow ,::std::vector<sal_Int32>& o_ChangedColumns); - void updateNumericObject( sal_Int32 columnIndex, const css::uno::Any& x, sal_Int32 scale,ORowSetValueVector::Vector& io_aRow ,::std::vector<sal_Int32>& o_ChangedColumns); + void updateObject( sal_Int32 columnIndex, const css::uno::Any& x,ORowSetValueVector::Vector& io_aRow ,std::vector<sal_Int32>& o_ChangedColumns); + void updateNumericObject( sal_Int32 columnIndex, const css::uno::Any& x, sal_Int32 scale,ORowSetValueVector::Vector& io_aRow ,std::vector<sal_Int32>& o_ChangedColumns); void updateNull(sal_Int32 columnIndex ,ORowSetValueVector::Vector& io_aRow - ,::std::vector<sal_Int32>& o_ChangedColumns + ,std::vector<sal_Int32>& o_ChangedColumns ); // css::sdbc::XResultSet @@ -188,15 +188,15 @@ namespace dbaccess bool rowInserted( ); // css::sdbc::XResultSetUpdate - bool insertRow(::std::vector< css::uno::Any >& o_aBookmarks); + bool insertRow(std::vector< css::uno::Any >& o_aBookmarks); void resetInsertRow(bool _bClearInsertRow); - void updateRow( ORowSetMatrix::iterator& _rUpdateRow,::std::vector< css::uno::Any >& o_aBookmarks ); + void updateRow( ORowSetMatrix::iterator& _rUpdateRow,std::vector< css::uno::Any >& o_aBookmarks ); bool deleteRow(); void cancelRowUpdates( ); void moveToInsertRow( ); - const ::std::map<sal_Int32,sal_Int32>& getKeyColumns() const { return m_aKeyColumns; } + const std::map<sal_Int32,sal_Int32>& getKeyColumns() const { return m_aKeyColumns; } bool isResultSetChanged() const; void reset(const css::uno::Reference< css::sdbc::XResultSet>& _xDriverSet); }; diff --git a/dbaccess/source/core/api/RowSetRow.hxx b/dbaccess/source/core/api/RowSetRow.hxx index 93368e089cea..2763fbf6aa6f 100644 --- a/dbaccess/source/core/api/RowSetRow.hxx +++ b/dbaccess/source/core/api/RowSetRow.hxx @@ -29,7 +29,7 @@ namespace dbaccess { typedef connectivity::ORowVector< connectivity::ORowSetValue > ORowSetValueVector; typedef ::rtl::Reference< ORowSetValueVector > ORowSetRow; - typedef ::std::vector< ORowSetRow > ORowSetMatrix; + typedef std::vector< ORowSetRow > ORowSetMatrix; class ORowSetOldRowHelper : public salhelper::SimpleReferenceObject { diff --git a/dbaccess/source/core/api/SingleSelectQueryComposer.cxx b/dbaccess/source/core/api/SingleSelectQueryComposer.cxx index b580068d12b7..49515b84cd46 100644 --- a/dbaccess/source/core/api/SingleSelectQueryComposer.cxx +++ b/dbaccess/source/core/api/SingleSelectQueryComposer.cxx @@ -265,13 +265,13 @@ OSingleSelectQueryComposer::OSingleSelectQueryComposer(const Reference< XNameAcc OSingleSelectQueryComposer::~OSingleSelectQueryComposer() { - ::std::vector<OPrivateColumns*>::const_iterator aColIter = m_aColumnsCollection.begin(); - ::std::vector<OPrivateColumns*>::const_iterator aEnd = m_aColumnsCollection.end(); + std::vector<OPrivateColumns*>::const_iterator aColIter = m_aColumnsCollection.begin(); + std::vector<OPrivateColumns*>::const_iterator aEnd = m_aColumnsCollection.end(); for(;aColIter != aEnd;++aColIter) delete *aColIter; - ::std::vector<OPrivateTables*>::const_iterator aTabIter = m_aTablesCollection.begin(); - ::std::vector<OPrivateTables*>::const_iterator aTabEnd = m_aTablesCollection.end(); + std::vector<OPrivateTables*>::const_iterator aTabIter = m_aTablesCollection.begin(); + std::vector<OPrivateTables*>::const_iterator aTabEnd = m_aTablesCollection.end(); for(;aTabIter != aTabEnd;++aTabIter) delete *aTabIter; } @@ -427,13 +427,13 @@ Sequence< Sequence< PropertyValue > > SAL_CALL OSingleSelectQueryComposer::getSt void SAL_CALL OSingleSelectQueryComposer::appendHavingClauseByColumn( const Reference< XPropertySet >& column, sal_Bool andCriteria,sal_Int32 filterOperator ) { - ::std::mem_fun1_t<bool,OSingleSelectQueryComposer,const OUString&> F_tmp(&OSingleSelectQueryComposer::implSetHavingClause); + std::mem_fun1_t<bool,OSingleSelectQueryComposer,const OUString&> F_tmp(&OSingleSelectQueryComposer::implSetHavingClause); setConditionByColumn(column,andCriteria,F_tmp,filterOperator); } void SAL_CALL OSingleSelectQueryComposer::appendFilterByColumn( const Reference< XPropertySet >& column, sal_Bool andCriteria,sal_Int32 filterOperator ) { - ::std::mem_fun1_t<bool,OSingleSelectQueryComposer,const OUString&> F_tmp(&OSingleSelectQueryComposer::implSetFilter); + std::mem_fun1_t<bool,OSingleSelectQueryComposer,const OUString&> F_tmp(&OSingleSelectQueryComposer::implSetFilter); setConditionByColumn(column,andCriteria,F_tmp,filterOperator); } @@ -570,7 +570,7 @@ void SAL_CALL OSingleSelectQueryComposer::appendGroupByColumn( const Reference< setGroup( aComposer.getComposedAndClear() ); } -OUString OSingleSelectQueryComposer::composeStatementFromParts( const ::std::vector< OUString >& _rParts ) +OUString OSingleSelectQueryComposer::composeStatementFromParts( const std::vector< OUString >& _rParts ) { OSL_ENSURE( _rParts.size() == (size_t)SQLPartCount, "OSingleSelectQueryComposer::composeStatementFromParts: invalid parts array!" ); @@ -596,7 +596,7 @@ void SAL_CALL OSingleSelectQueryComposer::setElementaryQuery( const OUString& _r ::osl::MutexGuard aGuard( m_aMutex ); // remember the 4 current "additive" clauses - ::std::vector< OUString > aAdditiveClauses( SQLPartCount ); + std::vector< OUString > aAdditiveClauses( SQLPartCount ); for ( SQLPart eLoopParts = Where; eLoopParts != SQLPartCount; incSQLPart( eLoopParts ) ) aAdditiveClauses[ eLoopParts ] = getSQLPart( eLoopParts, m_aAdditiveIterator, false ); @@ -649,7 +649,7 @@ void OSingleSelectQueryComposer::setSingleAdditiveClause( SQLPart _ePart, const return; // collect the 4 single parts as they're currently set - ::std::vector< OUString > aClauses; + std::vector< OUString > aClauses; aClauses.reserve( (size_t)SQLPartCount ); for ( SQLPart eLoopParts = Where; eLoopParts != SQLPartCount; incSQLPart( eLoopParts ) ) aClauses.push_back( getSQLPart( eLoopParts, m_aSqlIterator, true ) ); @@ -730,7 +730,7 @@ Reference< XNameAccess > SAL_CALL OSingleSelectQueryComposer::getTables( ) if ( !m_pTables ) { const OSQLTables& aTables = m_aSqlIterator.getTables(); - ::std::vector< OUString> aNames; + std::vector< OUString> aNames; OSQLTables::const_iterator aEnd = aTables.end(); for(OSQLTables::const_iterator aIter = aTables.begin(); aIter != aEnd;++aIter) aNames.push_back(aIter->first); @@ -749,7 +749,7 @@ Reference< XNameAccess > SAL_CALL OSingleSelectQueryComposer::getColumns( ) if ( !!m_aCurrentColumns[SelectColumns] ) return m_aCurrentColumns[SelectColumns]; - ::std::vector< OUString> aNames; + std::vector< OUString> aNames; ::rtl::Reference< OSQLColumns> aSelectColumns; bool bCase = true; Reference< XNameAccess> xQueryColumns; @@ -837,7 +837,7 @@ Reference< XNameAccess > SAL_CALL OSingleSelectQueryComposer::getColumns( ) } const ::comphelper::UStringMixEqual aCaseCompare( bCase ); - typedef ::std::set< size_t > SizeTSet; + typedef std::set< size_t > SizeTSet; SizeTSet aUsedSelectColumns; ::connectivity::parse::OParseColumn::StringMap aColumnNames; @@ -908,16 +908,16 @@ Reference< XNameAccess > SAL_CALL OSingleSelectQueryComposer::getColumns( ) OUString sRealName; xProp->getPropertyValue(PROPERTY_REALNAME) >>= sRealName; - ::std::vector< OUString>::const_iterator aFindName; + std::vector< OUString>::const_iterator aFindName; if ( sColumnName.isEmpty() ) xProp->getPropertyValue(PROPERTY_NAME) >>= sColumnName; - aFindName = ::std::find_if(aNames.begin(),aNames.end(),::std::bind2nd(aCaseCompare,sColumnName)); + aFindName = std::find_if(aNames.begin(),aNames.end(),std::bind2nd(aCaseCompare,sColumnName)); sal_Int32 j = 0; while ( aFindName != aNames.end() ) { sColumnName += OUString::number(++j); - aFindName = ::std::find_if(aNames.begin(),aNames.end(),::std::bind2nd(aCaseCompare,sColumnName)); + aFindName = std::find_if(aNames.begin(),aNames.end(),std::bind2nd(aCaseCompare,sColumnName)); } pColumn->setName(sColumnName); @@ -960,7 +960,7 @@ Reference< XNameAccess > SAL_CALL OSingleSelectQueryComposer::getColumns( ) } bool OSingleSelectQueryComposer::setORCriteria(OSQLParseNode* pCondition, OSQLParseTreeIterator& _rIterator, - ::std::vector< ::std::vector < PropertyValue > >& rFilters, const Reference< css::util::XNumberFormatter > & xFormatter) const + std::vector< std::vector < PropertyValue > >& rFilters, const Reference< css::util::XNumberFormatter > & xFormatter) const { // Round brackets around the expression if (pCondition->count() == 3 && @@ -982,7 +982,7 @@ bool OSingleSelectQueryComposer::setORCriteria(OSQLParseNode* pCondition, OSQLPa bResult = setORCriteria(pCondition->getChild(i), _rIterator, rFilters, xFormatter); else { - rFilters.push_back( ::std::vector < PropertyValue >()); + rFilters.push_back( std::vector < PropertyValue >()); bResult = setANDCriteria(pCondition->getChild(i), _rIterator, rFilters[rFilters.size() - 1], xFormatter); } } @@ -990,13 +990,13 @@ bool OSingleSelectQueryComposer::setORCriteria(OSQLParseNode* pCondition, OSQLPa } else { - rFilters.push_back(::std::vector < PropertyValue >()); + rFilters.push_back(std::vector < PropertyValue >()); return setANDCriteria(pCondition, _rIterator, rFilters[rFilters.size() - 1], xFormatter); } } bool OSingleSelectQueryComposer::setANDCriteria( OSQLParseNode * pCondition, - OSQLParseTreeIterator& _rIterator, ::std::vector < PropertyValue >& rFilter, const Reference< XNumberFormatter > & xFormatter) const + OSQLParseTreeIterator& _rIterator, std::vector < PropertyValue >& rFilter, const Reference< XNumberFormatter > & xFormatter) const { // Round brackets if (SQL_ISRULE(pCondition,boolean_primary)) @@ -1112,7 +1112,7 @@ sal_Int32 OSingleSelectQueryComposer::getPredicateType(OSQLParseNode * _pPredica } bool OSingleSelectQueryComposer::setComparsionPredicate(OSQLParseNode * pCondition, OSQLParseTreeIterator& _rIterator, - ::std::vector < PropertyValue >& rFilter, const Reference< css::util::XNumberFormatter > & xFormatter) const + std::vector < PropertyValue >& rFilter, const Reference< css::util::XNumberFormatter > & xFormatter) const { OSL_ENSURE(SQL_ISRULE(pCondition, comparison_predicate),"setComparsionPredicate: pCondition is not a ComparsionPredicate"); if (SQL_ISRULE(pCondition->getChild(0), column_ref) || @@ -1334,7 +1334,7 @@ Reference< XIndexAccess > SAL_CALL OSingleSelectQueryComposer::getParameters( ) if ( !m_aCurrentColumns[ParameterColumns] ) { ::rtl::Reference< OSQLColumns> aCols = m_aSqlIterator.getParameters(); - ::std::vector< OUString> aNames; + std::vector< OUString> aNames; OSQLColumns::Vector::const_iterator aEnd = aCols->get().end(); for(OSQLColumns::Vector::const_iterator aIter = aCols->get().begin(); aIter != aEnd;++aIter) aNames.push_back(getString((*aIter)->getPropertyValue(PROPERTY_NAME))); @@ -1357,8 +1357,8 @@ void OSingleSelectQueryComposer::clearColumns( const EColumnType _eType ) void OSingleSelectQueryComposer::clearCurrentCollections() { - ::std::vector<OPrivateColumns*>::iterator aIter = m_aCurrentColumns.begin(); - ::std::vector<OPrivateColumns*>::const_iterator aEnd = m_aCurrentColumns.end(); + std::vector<OPrivateColumns*>::iterator aIter = m_aCurrentColumns.begin(); + std::vector<OPrivateColumns*>::const_iterator aEnd = m_aCurrentColumns.end(); for (;aIter != aEnd;++aIter) { if ( *aIter ) @@ -1386,7 +1386,7 @@ Reference< XIndexAccess > OSingleSelectQueryComposer::setCurrentColumns( EColumn // now set the group columns if ( !m_aCurrentColumns[_eType] ) { - ::std::vector< OUString> aNames; + std::vector< OUString> aNames; OSQLColumns::Vector::const_iterator aEnd = _rCols->get().end(); for(OSQLColumns::Vector::const_iterator aIter = _rCols->get().begin(); aIter != aEnd;++aIter) aNames.push_back(getString((*aIter)->getPropertyValue(PROPERTY_NAME))); @@ -1528,7 +1528,7 @@ void SAL_CALL OSingleSelectQueryComposer::setStructuredHavingClause( const Seque setHavingClause(lcl_getCondition(filter, aPredicateInput, getColumns(), m_xMetaData->getIdentifierQuoteString())); } -void OSingleSelectQueryComposer::setConditionByColumn( const Reference< XPropertySet >& column, bool andCriteria ,::std::mem_fun1_t<bool,OSingleSelectQueryComposer,const OUString& >& _aSetFunctor,sal_Int32 filterOperator) +void OSingleSelectQueryComposer::setConditionByColumn( const Reference< XPropertySet >& column, bool andCriteria ,std::mem_fun1_t<bool,OSingleSelectQueryComposer,const OUString& >& _aSetFunctor,sal_Int32 filterOperator) { try { @@ -1756,7 +1756,7 @@ Sequence< Sequence< PropertyValue > > OSingleSelectQueryComposer::getStructuredC #endif if ( pCondition ) { - ::std::vector< ::std::vector < PropertyValue > > aFilters; + std::vector< std::vector < PropertyValue > > aFilters; Reference< XNumberFormatter > xFormatter( NumberFormatter::create(m_aContext), UNO_QUERY_THROW ); xFormatter->attachNumberFormatsSupplier( m_xNumberFormatsSupplier ); @@ -1764,15 +1764,15 @@ Sequence< Sequence< PropertyValue > > OSingleSelectQueryComposer::getStructuredC { aFilterSeq.realloc(aFilters.size()); Sequence<PropertyValue>* pFilters = aFilterSeq.getArray(); - ::std::vector< ::std::vector < PropertyValue > >::const_iterator aEnd = aFilters.end(); - ::std::vector< ::std::vector < PropertyValue > >::const_iterator i = aFilters.begin(); + std::vector< std::vector < PropertyValue > >::const_iterator aEnd = aFilters.end(); + std::vector< std::vector < PropertyValue > >::const_iterator i = aFilters.begin(); for ( ; i != aEnd ; ++i) { - const ::std::vector < PropertyValue >& rProperties = *i; + const std::vector < PropertyValue >& rProperties = *i; pFilters->realloc(rProperties.size()); PropertyValue* pFilter = pFilters->getArray(); - ::std::vector < PropertyValue >::const_iterator j = rProperties.begin(); - ::std::vector < PropertyValue >::const_iterator aEnd2 = rProperties.end(); + std::vector < PropertyValue >::const_iterator j = rProperties.begin(); + std::vector < PropertyValue >::const_iterator aEnd2 = rProperties.end(); for ( ; j != aEnd2 ; ++j) { *pFilter = *j; diff --git a/dbaccess/source/core/api/TableDeco.cxx b/dbaccess/source/core/api/TableDeco.cxx index 267ca0527967..fa6a6d2f59e0 100644 --- a/dbaccess/source/core/api/TableDeco.cxx +++ b/dbaccess/source/core/api/TableDeco.cxx @@ -549,7 +549,7 @@ void ODBTableDecorator::refreshColumns() ::osl::MutexGuard aGuard(m_aMutex); ::connectivity::checkDisposed(OTableDescriptor_BASE::rBHelper.bDisposed); - ::std::vector< OUString> aVector; + std::vector< OUString> aVector; Reference<XNameAccess> xNames; if(m_xTable.is()) diff --git a/dbaccess/source/core/api/View.cxx b/dbaccess/source/core/api/View.cxx index 024ea15608e4..443fd1d6e320 100644 --- a/dbaccess/source/core/api/View.cxx +++ b/dbaccess/source/core/api/View.cxx @@ -86,7 +86,7 @@ namespace dbaccess Type aAlterType = cppu::UnoType<XAlterView>::get(); Sequence< Type > aTypes( ::comphelper::concatSequences(View_Base::getTypes(),View_IBASE::getTypes()) ); - ::std::vector<Type> aOwnTypes; + std::vector<Type> aOwnTypes; aOwnTypes.reserve(aTypes.getLength()); const Type* pIter = aTypes.getConstArray(); diff --git a/dbaccess/source/core/api/column.cxx b/dbaccess/source/core/api/column.cxx index cab05f9f9f63..292689f83b1c 100644 --- a/dbaccess/source/core/api/column.cxx +++ b/dbaccess/source/core/api/column.cxx @@ -145,7 +145,7 @@ void OColumn::registerMayBeVoidProperty( const OUString& _rName, sal_Int32 _nHan OColumns::OColumns(::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex, - bool _bCaseSensitive,const ::std::vector< OUString> &_rVector, + bool _bCaseSensitive,const std::vector< OUString> &_rVector, IColumnFactory* _pColFactory, ::connectivity::sdbcx::IRefreshableColumns* _pRefresh, bool _bAddColumn, @@ -164,7 +164,7 @@ OColumns::OColumns(::cppu::OWeakObject& _rParent, OColumns::OColumns(::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex, const css::uno::Reference< css::container::XNameAccess >& _rxDrvColumns, - bool _bCaseSensitive,const ::std::vector< OUString> &_rVector, + bool _bCaseSensitive,const std::vector< OUString> &_rVector, IColumnFactory* _pColFactory, ::connectivity::sdbcx::IRefreshableColumns* _pRefresh, bool _bAddColumn, diff --git a/dbaccess/source/core/api/definitioncolumn.cxx b/dbaccess/source/core/api/definitioncolumn.cxx index 477cd1cde9e6..572c6c2eebac 100644 --- a/dbaccess/source/core/api/definitioncolumn.cxx +++ b/dbaccess/source/core/api/definitioncolumn.cxx @@ -429,7 +429,7 @@ Sequence< OUString > OTableColumnDescriptorWrapper::getSupportedServiceNames( ) const sal_Int32 nHaveAlways = 7; // Which optional properties are contained? - const sal_Int32 nHaveOptionally (::std::bitset<7>(nId).count()); + const sal_Int32 nHaveOptionally (std::bitset<7>(nId).count()); BEGIN_PROPERTY_SEQUENCE( nHaveAlways + nHaveOptionally ) diff --git a/dbaccess/source/core/api/preparedstatement.cxx b/dbaccess/source/core/api/preparedstatement.cxx index 5874a33ea7eb..7a79ae4415f3 100644 --- a/dbaccess/source/core/api/preparedstatement.cxx +++ b/dbaccess/source/core/api/preparedstatement.cxx @@ -52,7 +52,7 @@ OPreparedStatement::OPreparedStatement(const Reference< XConnection > & _xConn, m_xAggregateAsParameters.set( m_xAggregateAsSet, UNO_QUERY_THROW ); Reference<XDatabaseMetaData> xMeta = _xConn->getMetaData(); - m_pColumns = new OColumns(*this, m_aMutex, xMeta.is() && xMeta->supportsMixedCaseQuotedIdentifiers(),::std::vector< OUString>(), nullptr,nullptr); + m_pColumns = new OColumns(*this, m_aMutex, xMeta.is() && xMeta->supportsMixedCaseQuotedIdentifiers(),std::vector< OUString>(), nullptr,nullptr); } OPreparedStatement::~OPreparedStatement() diff --git a/dbaccess/source/core/api/query.hxx b/dbaccess/source/core/api/query.hxx index d30bd602e7ac..dc70aa915e03 100644 --- a/dbaccess/source/core/api/query.hxx +++ b/dbaccess/source/core/api/query.hxx @@ -56,7 +56,7 @@ class OQuery :public OContentHelper friend struct TRelease; public: - typedef ::std::map< OUString,OColumn*,::comphelper::UStringMixLess> TNameColumnMap; + typedef std::map< OUString,OColumn*,::comphelper::UStringMixLess> TNameColumnMap; protected: // TNameColumnMap m_aColumnMap; // contains all columnnames to columns diff --git a/dbaccess/source/core/api/querycomposer.cxx b/dbaccess/source/core/api/querycomposer.cxx index 03f1b47901a9..d0560d2b63e4 100644 --- a/dbaccess/source/core/api/querycomposer.cxx +++ b/dbaccess/source/core/api/querycomposer.cxx @@ -156,7 +156,7 @@ OUString SAL_CALL OQueryComposer::getFilter( ) ::connectivity::checkDisposed(OSubComponent::rBHelper.bDisposed); MutexGuard aGuard(m_aMutex); FilterCreator aFilterCreator; - aFilterCreator = ::std::for_each(m_aFilters.begin(),m_aFilters.end(),aFilterCreator); + aFilterCreator = std::for_each(m_aFilters.begin(),m_aFilters.end(),aFilterCreator); return aFilterCreator.getComposedAndClear(); } @@ -174,7 +174,7 @@ OUString SAL_CALL OQueryComposer::getOrder( ) ::osl::MutexGuard aGuard( m_aMutex ); OrderCreator aOrderCreator; - aOrderCreator = ::std::for_each(m_aOrders.begin(),m_aOrders.end(),aOrderCreator); + aOrderCreator = std::for_each(m_aOrders.begin(),m_aOrders.end(),aOrderCreator); return aOrderCreator.getComposedAndClear(); } diff --git a/dbaccess/source/core/api/querycontainer.cxx b/dbaccess/source/core/api/querycontainer.cxx index a886d4a25c39..484beb34fb13 100644 --- a/dbaccess/source/core/api/querycontainer.cxx +++ b/dbaccess/source/core/api/querycontainer.cxx @@ -387,7 +387,7 @@ bool OQueryContainer::checkExistence(const OUString& _rName) Documents::const_iterator aFind = m_aDocumentMap.find(_rName); if ( !bRet && aFind != m_aDocumentMap.end() ) { - m_aDocuments.erase( ::std::find(m_aDocuments.begin(),m_aDocuments.end(),aFind)); + m_aDocuments.erase( std::find(m_aDocuments.begin(),m_aDocuments.end(),aFind)); m_aDocumentMap.erase(aFind); } else if ( bRet && aFind == m_aDocumentMap.end() ) diff --git a/dbaccess/source/core/api/querydescriptor.cxx b/dbaccess/source/core/api/querydescriptor.cxx index 1f9c3a5ff25c..22d37b8177c5 100644 --- a/dbaccess/source/core/api/querydescriptor.cxx +++ b/dbaccess/source/core/api/querydescriptor.cxx @@ -121,14 +121,14 @@ OQueryDescriptor_Base::OQueryDescriptor_Base(::osl::Mutex& _rMutex,::cppu::OWea :m_bColumnsOutOfDate(true) ,m_rMutex(_rMutex) { - m_pColumns = new OColumns(_rMySelf, m_rMutex, true,::std::vector< OUString>(), this,this); + m_pColumns = new OColumns(_rMySelf, m_rMutex, true,std::vector< OUString>(), this,this); } OQueryDescriptor_Base::OQueryDescriptor_Base(const OQueryDescriptor_Base& _rSource,::cppu::OWeakObject& _rMySelf) :m_bColumnsOutOfDate(true) ,m_rMutex(_rSource.m_rMutex) { - m_pColumns = new OColumns(_rMySelf, m_rMutex, true,::std::vector< OUString>(), this,this); + m_pColumns = new OColumns(_rMySelf, m_rMutex, true,std::vector< OUString>(), this,this); m_sCommand = _rSource.m_sCommand; m_bEscapeProcessing = _rSource.m_bEscapeProcessing; diff --git a/dbaccess/source/core/api/resultset.cxx b/dbaccess/source/core/api/resultset.cxx index 330aa38fadcc..a8fe61e40fdc 100644 --- a/dbaccess/source/core/api/resultset.cxx +++ b/dbaccess/source/core/api/resultset.cxx @@ -61,7 +61,7 @@ OResultSet::OResultSet(const css::uno::Reference< css::sdbc::XResultSet >& _xRes ,m_nResultSetConcurrency(0) ,m_bIsBookmarkable(false) { - m_pColumns = new OColumns(*this, m_aMutex, _bCaseSensitive, ::std::vector< OUString>(), nullptr,nullptr); + m_pColumns = new OColumns(*this, m_aMutex, _bCaseSensitive, std::vector< OUString>(), nullptr,nullptr); try { diff --git a/dbaccess/source/core/api/table.cxx b/dbaccess/source/core/api/table.cxx index a02c2f9b60b8..ab23f72a60aa 100644 --- a/dbaccess/source/core/api/table.cxx +++ b/dbaccess/source/core/api/table.cxx @@ -262,7 +262,7 @@ Sequence< Type > SAL_CALL ODBTable::getTypes( ) Type aAlterType = cppu::UnoType<XAlterTable>::get(); Sequence< Type > aTypes(OTable_Base::getTypes()); - ::std::vector<Type> aOwnTypes; + std::vector<Type> aOwnTypes; aOwnTypes.reserve(aTypes.getLength()); const Type* pIter = aTypes.getConstArray(); diff --git a/dbaccess/source/core/dataaccess/ComponentDefinition.cxx b/dbaccess/source/core/dataaccess/ComponentDefinition.cxx index 485104be0c6d..92a3c4b97a19 100644 --- a/dbaccess/source/core/dataaccess/ComponentDefinition.cxx +++ b/dbaccess/source/core/dataaccess/ComponentDefinition.cxx @@ -198,7 +198,7 @@ Reference< XNameAccess> OComponentDefinition::getColumns() if ( !m_xColumns.is() ) { - ::std::vector< OUString> aNames; + std::vector< OUString> aNames; const OComponentDefinition_Impl& rDefinition( getDefinition() ); aNames.reserve( rDefinition.size() ); diff --git a/dbaccess/source/core/dataaccess/ComponentDefinition.hxx b/dbaccess/source/core/dataaccess/ComponentDefinition.hxx index 64a133a7a08d..784d4e4e1880 100644 --- a/dbaccess/source/core/dataaccess/ComponentDefinition.hxx +++ b/dbaccess/source/core/dataaccess/ComponentDefinition.hxx @@ -44,7 +44,7 @@ namespace dbaccess ,public ODataSettings_Base { public: - typedef ::std::map < OUString + typedef std::map < OUString , css::uno::Reference< css::beans::XPropertySet > > Columns; typedef Columns::iterator iterator; diff --git a/dbaccess/source/core/dataaccess/ContentHelper.cxx b/dbaccess/source/core/dataaccess/ContentHelper.cxx index 7afe82f5396a..59b1e886e7fd 100644 --- a/dbaccess/source/core/dataaccess/ContentHelper.cxx +++ b/dbaccess/source/core/dataaccess/ContentHelper.cxx @@ -499,7 +499,7 @@ void OContentHelper::notifyPropertiesChange( const Sequence< PropertyChangeEvent } typedef Sequence< PropertyChangeEvent > PropertyEventSequence; - typedef ::std::map< XPropertiesChangeListener*, PropertyEventSequence* > PropertiesEventListenerMap; + typedef std::map< XPropertiesChangeListener*, PropertyEventSequence* > PropertiesEventListenerMap; PropertiesEventListenerMap aListeners; const PropertyChangeEvent* propertyChangeEvent = evt.getConstArray(); diff --git a/dbaccess/source/core/dataaccess/ModelImpl.cxx b/dbaccess/source/core/dataaccess/ModelImpl.cxx index 726fb7e1441c..f7bf18bcf43e 100644 --- a/dbaccess/source/core/dataaccess/ModelImpl.cxx +++ b/dbaccess/source/core/dataaccess/ModelImpl.cxx @@ -111,7 +111,7 @@ bool VosMutexFacade::tryToAcquire() class DocumentStorageAccess : public ::cppu::WeakImplHelper< XDocumentSubStorageSupplier , XTransactionListener > { - typedef ::std::map< OUString, Reference< XStorage > > NamedStorages; + typedef std::map< OUString, Reference< XStorage > > NamedStorages; ::osl::Mutex m_aMutex; /// all sub storages which we ever gave to the outer world @@ -320,7 +320,7 @@ Sequence< OUString > SAL_CALL DocumentStorageAccess::getDocumentSubStoragesNames if ( !xRootStor.is() ) return Sequence< OUString >(); - ::std::vector< OUString > aNames; + std::vector< OUString > aNames; Sequence< OUString > aElementNames( xRootStor->getElementNames() ); for ( sal_Int32 i=0; i<aElementNames.getLength(); ++i ) @@ -609,7 +609,7 @@ bool ODatabaseModelImpl::objectHasMacros( const Reference< XStorage >& _rxContai void ODatabaseModelImpl::reset() { m_bReadOnly = false; - ::std::vector< TContentPtr > aEmptyContainers( 4 ); + std::vector< TContentPtr > aEmptyContainers( 4 ); m_aContainer.swap( aEmptyContainers ); if ( m_pStorageAccess.is() ) @@ -695,8 +695,8 @@ void ODatabaseModelImpl::dispose() m_xDataSource = WeakReference<XDataSource>(); m_xModel = WeakReference< XModel >(); - ::std::vector<TContentPtr>::const_iterator aIter = m_aContainer.begin(); - ::std::vector<TContentPtr>::const_iterator aEnd = m_aContainer.end(); + std::vector<TContentPtr>::const_iterator aIter = m_aContainer.begin(); + std::vector<TContentPtr>::const_iterator aEnd = m_aContainer.end(); for (;aIter != aEnd ; ++aIter) { if ( aIter->get() ) diff --git a/dbaccess/source/core/dataaccess/ModelImpl.hxx b/dbaccess/source/core/dataaccess/ModelImpl.hxx index fb02e0ed6fcb..bd56e902571b 100644 --- a/dbaccess/source/core/dataaccess/ModelImpl.hxx +++ b/dbaccess/source/core/dataaccess/ModelImpl.hxx @@ -174,7 +174,7 @@ private: rtl::Reference<DocumentStorageAccess> m_pStorageAccess; ::comphelper::SharedMutex m_aMutex; VosMutexFacade m_aMutexFacade; - ::std::vector< TContentPtr > m_aContainer; // one for each ObjectType + std::vector< TContentPtr > m_aContainer; // one for each ObjectType ::sfx2::DocumentMacroMode m_aMacroMode; sal_Int16 m_nImposedMacroExecMode; diff --git a/dbaccess/source/core/dataaccess/connection.cxx b/dbaccess/source/core/dataaccess/connection.cxx index 3cb9a0dd7526..33267c063358 100644 --- a/dbaccess/source/core/dataaccess/connection.cxx +++ b/dbaccess/source/core/dataaccess/connection.cxx @@ -381,19 +381,19 @@ void SAL_CALL OConnection::clearWarnings( ) namespace { - struct CompareTypeByName : public ::std::binary_function< Type, Type, bool > + struct CompareTypeByName : public std::binary_function< Type, Type, bool > { bool operator() ( const Type& _rLHS, const Type& _rRHS ) const { return _rLHS.getTypeName() < _rRHS.getTypeName(); } }; - typedef ::std::set< Type, CompareTypeByName > TypeBag; + typedef std::set< Type, CompareTypeByName > TypeBag; void lcl_copyTypes( TypeBag& _out_rTypes, const Sequence< Type >& _rTypes ) { - ::std::copy( _rTypes.begin(), _rTypes.end(), - ::std::insert_iterator< TypeBag >( _out_rTypes, _out_rTypes.begin() ) ); + std::copy( _rTypes.begin(), _rTypes.end(), + std::insert_iterator< TypeBag >( _out_rTypes, _out_rTypes.begin() ) ); } } @@ -768,7 +768,7 @@ void OConnection::impl_checkTableQueryNames_nothrow() { Reference< XNameAccess > xTables( getTables() ); Sequence< OUString > aTableNames( xTables->getElementNames() ); - ::std::set< OUString > aSortedTableNames( aTableNames.getConstArray(), aTableNames.getConstArray() + aTableNames.getLength() ); + std::set< OUString > aSortedTableNames( aTableNames.getConstArray(), aTableNames.getConstArray() + aTableNames.getLength() ); Reference< XNameAccess > xQueries( getQueries() ); Sequence< OUString > aQueryNames( xQueries->getElementNames() ); diff --git a/dbaccess/source/core/dataaccess/databasecontext.cxx b/dbaccess/source/core/dataaccess/databasecontext.cxx index febaf9cf561f..52367d4ed01d 100644 --- a/dbaccess/source/core/dataaccess/databasecontext.cxx +++ b/dbaccess/source/core/dataaccess/databasecontext.cxx @@ -99,7 +99,7 @@ namespace dbaccess { private: Reference< XDesktop2 > m_xDesktop; - ::std::list< const ODatabaseModelImpl* > m_aDatabaseDocuments; + std::list< const ODatabaseModelImpl* > m_aDatabaseDocuments; public: explicit DatabaseDocumentLoader( const Reference<XComponentContext> & rxContext); @@ -134,7 +134,7 @@ namespace dbaccess void SAL_CALL DatabaseDocumentLoader::queryTermination( const lang::EventObject& /*Event*/ ) { - ::std::list< const ODatabaseModelImpl* > aCpy(m_aDatabaseDocuments); + std::list< const ODatabaseModelImpl* > aCpy(m_aDatabaseDocuments); for( const auto& pCopy : aCpy ) { try diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx index e69abd70d4ca..3ecc3a38bba0 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.cxx +++ b/dbaccess/source/core/dataaccess/databasedocument.cxx @@ -244,22 +244,22 @@ Sequence< Type > SAL_CALL ODatabaseDocument::getTypes( ) // strip XEmbeddedScripts, and immediately re-assign to aTypes aTypes = Sequence< Type >( pStripTo, - ::std::remove_copy_if( + std::remove_copy_if( aTypes.getConstArray(), aTypes.getConstArray() + aTypes.getLength(), pStripTo, - ::std::bind2nd( ::std::equal_to< Type >(), cppu::UnoType<XEmbeddedScripts>::get() ) + std::bind2nd( std::equal_to< Type >(), cppu::UnoType<XEmbeddedScripts>::get() ) ) - pStripTo ); // strip XScriptInvocationContext, and immediately re-assign to aTypes aTypes = Sequence< Type >( pStripTo, - ::std::remove_copy_if( + std::remove_copy_if( aTypes.getConstArray(), aTypes.getConstArray() + aTypes.getLength(), pStripTo, - ::std::bind2nd( ::std::equal_to< Type >(), cppu::UnoType<XScriptInvocationContext>::get() ) + std::bind2nd( std::equal_to< Type >(), cppu::UnoType<XScriptInvocationContext>::get() ) ) - pStripTo ); } @@ -858,7 +858,7 @@ void SAL_CALL ODatabaseDocument::disconnectController( const Reference< XControl { DocumentGuard aGuard(*this, DocumentGuard::DefaultMethod); - Controllers::iterator pos = ::std::find( m_aControllers.begin(), m_aControllers.end(), _xController ); + Controllers::iterator pos = std::find( m_aControllers.begin(), m_aControllers.end(), _xController ); OSL_ENSURE( pos != m_aControllers.end(), "ODatabaseDocument::disconnectController: don't know this controller!" ); if ( pos != m_aControllers.end() ) { @@ -1812,7 +1812,7 @@ void ODatabaseDocument::disposing() // case they will be deleted - if they're C++ implementations, that is :). // Some of those implementations are offending enough to require the SolarMutex, which // means we should not release the last reference while our own mutex is locked ... - ::std::list< Reference< XInterface > > aKeepAlive; + std::list< Reference< XInterface > > aKeepAlive; // SYNCHRONIZED -> ::osl::ClearableMutexGuard aGuard( m_aMutex ); @@ -2035,7 +2035,7 @@ Reference< XInterface > ODatabaseDocument::getThis() const return *const_cast< ODatabaseDocument* >( this ); } -struct CreateAny : public ::std::unary_function< Reference<XController>, Any> +struct CreateAny : public std::unary_function< Reference<XController>, Any> { Any operator() (const Reference<XController>& lhs) const { @@ -2048,7 +2048,7 @@ Reference< XEnumeration > SAL_CALL ODatabaseDocument::getControllers( ) { DocumentGuard aGuard(*this, DocumentGuard::DefaultMethod); uno::Sequence< Any> aController( m_aControllers.size() ); - ::std::transform( m_aControllers.begin(), m_aControllers.end(), aController.getArray(), CreateAny() ); + std::transform( m_aControllers.begin(), m_aControllers.end(), aController.getArray(), CreateAny() ); return new ::comphelper::OAnyEnumeration(aController); } diff --git a/dbaccess/source/core/dataaccess/databasedocument.hxx b/dbaccess/source/core/dataaccess/databasedocument.hxx index 80bd42913c61..66a87e766d94 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.hxx +++ b/dbaccess/source/core/dataaccess/databasedocument.hxx @@ -70,7 +70,7 @@ class DocumentEvents; class DocumentEventExecutor; class DocumentGuard; -typedef ::std::vector< css::uno::Reference< css::frame::XController > > Controllers; +typedef std::vector< css::uno::Reference< css::frame::XController > > Controllers; // ViewMonitor /** helper class monitoring the views of a document, and firing appropriate events diff --git a/dbaccess/source/core/dataaccess/datasource.cxx b/dbaccess/source/core/dataaccess/datasource.cxx index 76bf0882b269..3c1a828f5bba 100644 --- a/dbaccess/source/core/dataaccess/datasource.cxx +++ b/dbaccess/source/core/dataaccess/datasource.cxx @@ -275,7 +275,7 @@ class OSharedConnectionManager : public ::cppu::WeakImplHelper< XEventListener > } TConnectionHolder; // the less-compare functor, used for the stl::map - struct TDigestLess : public ::std::binary_function< TDigestHolder, TDigestHolder, bool> + struct TDigestLess : public std::binary_function< TDigestHolder, TDigestHolder, bool> { bool operator() (const TDigestHolder& x, const TDigestHolder& y) const { @@ -286,8 +286,8 @@ class OSharedConnectionManager : public ::cppu::WeakImplHelper< XEventListener > } }; - typedef ::std::map< TDigestHolder,TConnectionHolder,TDigestLess> TConnectionMap; // holds the master connections - typedef ::std::map< Reference< XConnection >,TConnectionMap::iterator> TSharedConnectionMap;// holds the shared connections + typedef std::map< TDigestHolder,TConnectionHolder,TDigestLess> TConnectionMap; // holds the master connections + typedef std::map< Reference< XConnection >,TConnectionMap::iterator> TSharedConnectionMap;// holds the shared connections ::osl::Mutex m_aMutex; TConnectionMap m_aConnections; // remember the master connection in conjunction with the digest @@ -404,7 +404,7 @@ namespace const PropertyValue* pDataSourceSetting = _rDataSourceSettings.getConstArray(); const PropertyValue* pEnd = pDataSourceSetting + _rDataSourceSettings.getLength(); - ::std::vector< PropertyValue > aRet; + std::vector< PropertyValue > aRet; for ( ; pDataSourceSetting != pEnd ; ++pDataSourceSetting ) { @@ -440,9 +440,9 @@ namespace return Sequence< PropertyValue >(); } - typedef ::std::map< OUString, sal_Int32 > PropertyAttributeCache; + typedef std::map< OUString, sal_Int32 > PropertyAttributeCache; - struct IsDefaultAndNotRemoveable : public ::std::unary_function< PropertyValue, bool > + struct IsDefaultAndNotRemoveable : public std::unary_function< PropertyValue, bool > { private: const PropertyAttributeCache& m_rAttribs; @@ -796,7 +796,7 @@ sal_Bool ODatabaseSource::convertFastPropertyValue(Any & rConvertedValue, Any & namespace { - struct SelectPropertyName : public ::std::unary_function< PropertyValue, OUString > + struct SelectPropertyName : public std::unary_function< PropertyValue, OUString > { public: const OUString& operator()( const PropertyValue& _lhs ) @@ -821,12 +821,12 @@ namespace void lcl_setPropertyValues_resetOrRemoveOther( const Reference< XPropertyBag >& _rxPropertyBag, const Sequence< PropertyValue >& _rAllNewPropertyValues ) { // sequences are ugly to operate on - typedef ::std::set< OUString > StringSet; + typedef std::set< OUString > StringSet; StringSet aToBeSetPropertyNames; - ::std::transform( + std::transform( _rAllNewPropertyValues.getConstArray(), _rAllNewPropertyValues.getConstArray() + _rAllNewPropertyValues.getLength(), - ::std::insert_iterator< StringSet >( aToBeSetPropertyNames, aToBeSetPropertyNames.end() ), + std::insert_iterator< StringSet >( aToBeSetPropertyNames, aToBeSetPropertyNames.end() ), SelectPropertyName() ); @@ -943,7 +943,7 @@ void ODatabaseSource::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) con Reference< XPropertySet > xSettingsAsProps( m_pImpl->m_xSettings, UNO_QUERY_THROW ); Reference< XPropertySetInfo > xPST( xSettingsAsProps->getPropertySetInfo(), UNO_QUERY_THROW ); Sequence< Property > aSettings( xPST->getProperties() ); - ::std::map< OUString, sal_Int32 > aPropertyAttributes; + std::map< OUString, sal_Int32 > aPropertyAttributes; for ( const Property* pSettings = aSettings.getConstArray(); pSettings != aSettings.getConstArray() + aSettings.getLength(); ++pSettings @@ -958,7 +958,7 @@ void ODatabaseSource::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) con // transform them so that only property values which fulfill certain // criteria survive Sequence< PropertyValue > aNonDefaultOrUserDefined( aValues.getLength() ); - const PropertyValue* pCopyEnd = ::std::remove_copy_if( + const PropertyValue* pCopyEnd = std::remove_copy_if( aValues.getConstArray(), aValues.getConstArray() + aValues.getLength(), aNonDefaultOrUserDefined.getArray(), diff --git a/dbaccess/source/core/dataaccess/definitioncontainer.cxx b/dbaccess/source/core/dataaccess/definitioncontainer.cxx index 02e924829421..ec1f266dca92 100644 --- a/dbaccess/source/core/dataaccess/definitioncontainer.cxx +++ b/dbaccess/source/core/dataaccess/definitioncontainer.cxx @@ -63,7 +63,7 @@ void ODefinitionContainer_Impl::erase( const TContentPtr& _pDefinition ) ODefinitionContainer_Impl::const_iterator ODefinitionContainer_Impl::find( const TContentPtr& _pDefinition ) const { - return ::std::find_if( + return std::find_if( m_aDefinitions.begin(), m_aDefinitions.end(), [&_pDefinition] (const NamedDefinitions::value_type& namedDef) { @@ -73,7 +73,7 @@ ODefinitionContainer_Impl::const_iterator ODefinitionContainer_Impl::find( const ODefinitionContainer_Impl::iterator ODefinitionContainer_Impl::find( const TContentPtr& _pDefinition ) { - return ::std::find_if( + return std::find_if( m_aDefinitions.begin(), m_aDefinitions.end(), [&_pDefinition] (const NamedDefinitions::value_type& namedDef) { @@ -472,7 +472,7 @@ void ODefinitionContainer::implRemove(const OUString& _rName) Documents::const_iterator aFind = m_aDocumentMap.find(_rName); if ( aFind != m_aDocumentMap.end() ) { - m_aDocuments.erase( ::std::find(m_aDocuments.begin(),m_aDocuments.end(),aFind)); + m_aDocuments.erase( std::find(m_aDocuments.begin(),m_aDocuments.end(),aFind)); m_aDocumentMap.erase(aFind); getDefinitions().erase( _rName ); diff --git a/dbaccess/source/core/dataaccess/documenteventexecutor.hxx b/dbaccess/source/core/dataaccess/documenteventexecutor.hxx index f60be3bd7aba..429d3d93c5aa 100644 --- a/dbaccess/source/core/dataaccess/documenteventexecutor.hxx +++ b/dbaccess/source/core/dataaccess/documenteventexecutor.hxx @@ -54,7 +54,7 @@ namespace dbaccess virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override; private: - ::std::unique_ptr< DocumentEventExecutor_Data > m_pData; + std::unique_ptr< DocumentEventExecutor_Data > m_pData; }; } // namespace dbaccess diff --git a/dbaccess/source/core/dataaccess/documenteventnotifier.cxx b/dbaccess/source/core/dataaccess/documenteventnotifier.cxx index aca027e159d9..e188c4f9b2c8 100644 --- a/dbaccess/source/core/dataaccess/documenteventnotifier.cxx +++ b/dbaccess/source/core/dataaccess/documenteventnotifier.cxx @@ -50,7 +50,7 @@ namespace dbaccess ::osl::Mutex& m_rMutex; bool m_bInitialized; bool m_bDisposed; - ::std::shared_ptr<::comphelper::AsyncEventNotifierAutoJoin> m_pEventBroadcaster; + std::shared_ptr<::comphelper::AsyncEventNotifierAutoJoin> m_pEventBroadcaster; ::comphelper::OInterfaceContainerHelper2 m_aLegacyEventListeners; ::comphelper::OInterfaceContainerHelper2 m_aDocumentEventListeners; diff --git a/dbaccess/source/core/dataaccess/documentevents.hxx b/dbaccess/source/core/dataaccess/documentevents.hxx index dc2ab8ac5f85..8db1f8c3e25b 100644 --- a/dbaccess/source/core/dataaccess/documentevents.hxx +++ b/dbaccess/source/core/dataaccess/documentevents.hxx @@ -31,7 +31,7 @@ namespace dbaccess { - typedef ::std::map< OUString, css::uno::Sequence< css::beans::PropertyValue > > + typedef std::map< OUString, css::uno::Sequence< css::beans::PropertyValue > > DocumentEventsData; // DocumentEvents @@ -68,7 +68,7 @@ namespace dbaccess virtual sal_Bool SAL_CALL hasElements( ) override; private: - ::std::unique_ptr< DocumentEvents_Data > m_pData; + std::unique_ptr< DocumentEvents_Data > m_pData; }; } // namespace dbaccess diff --git a/dbaccess/source/core/dataaccess/myucp_datasupplier.hxx b/dbaccess/source/core/dataaccess/myucp_datasupplier.hxx index c2e431d8c799..8806371d1dbc 100644 --- a/dbaccess/source/core/dataaccess/myucp_datasupplier.hxx +++ b/dbaccess/source/core/dataaccess/myucp_datasupplier.hxx @@ -31,7 +31,7 @@ struct DataSupplier_Impl; class DataSupplier : public ucbhelper::ResultSetDataSupplier { - ::std::unique_ptr<DataSupplier_Impl> m_pImpl; + std::unique_ptr<DataSupplier_Impl> m_pImpl; public: explicit DataSupplier( const rtl::Reference< ODocumentContainer >& rxContent ); diff --git a/dbaccess/source/core/inc/ContainerMediator.hxx b/dbaccess/source/core/inc/ContainerMediator.hxx index 27bb127b4dad..af6f98cf5b12 100644 --- a/dbaccess/source/core/inc/ContainerMediator.hxx +++ b/dbaccess/source/core/inc/ContainerMediator.hxx @@ -40,7 +40,7 @@ namespace dbaccess { private: typedef ::rtl::Reference< OPropertyForward > TPropertyForward; - typedef ::std::map< OUString, TPropertyForward > PropertyForwardList; + typedef std::map< OUString, TPropertyForward > PropertyForwardList; PropertyForwardList m_aForwardList; css::uno::Reference< css::container::XNameAccess > m_xSettings; // can not be weak css::uno::Reference< css::container::XContainer > m_xContainer; // can not be weak diff --git a/dbaccess/source/core/inc/DatabaseDataProvider.hxx b/dbaccess/source/core/inc/DatabaseDataProvider.hxx index 5f405d9e7cb3..b8d9c45d9d74 100644 --- a/dbaccess/source/core/inc/DatabaseDataProvider.hxx +++ b/dbaccess/source/core/inc/DatabaseDataProvider.hxx @@ -242,7 +242,7 @@ private: ::dbtools::ParameterManager m_aParameterManager; ::dbtools::FilterManager m_aFilterManager; - ::std::map< OUString, css::uno::Any> m_aNumberFormats; + std::map< OUString, css::uno::Any> m_aNumberFormats; css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::sdbc::XConnection > m_xActiveConnection; diff --git a/dbaccess/source/core/inc/PropertyForward.hxx b/dbaccess/source/core/inc/PropertyForward.hxx index 9bb283e30819..68c4be4d6c26 100644 --- a/dbaccess/source/core/inc/PropertyForward.hxx +++ b/dbaccess/source/core/inc/PropertyForward.hxx @@ -52,7 +52,7 @@ namespace dbaccess OPropertyForward( const css::uno::Reference< css::beans::XPropertySet>& _xSource, const css::uno::Reference< css::container::XNameAccess>& _xDestContainer, const OUString& _sName, - const ::std::vector< OUString >& _aPropertyList + const std::vector< OUString >& _aPropertyList ); // css::beans::XPropertyChangeListener diff --git a/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx b/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx index 4d7bd244247b..661f76e9a6f1 100644 --- a/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx +++ b/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx @@ -74,16 +74,16 @@ namespace dbaccess OrderColumns = 2, ParameterColumns = 3 }; - typedef ::std::const_mem_fun_t< const ::connectivity::OSQLParseNode*, ::connectivity::OSQLParseTreeIterator > + typedef std::const_mem_fun_t< const ::connectivity::OSQLParseNode*, ::connectivity::OSQLParseTreeIterator > TGetParseNode; ::svxform::OSystemParseContext m_aParseContext; ::connectivity::OSQLParser m_aSqlParser; ::connectivity::OSQLParseTreeIterator m_aSqlIterator; // the iterator for the complete statement ::connectivity::OSQLParseTreeIterator m_aAdditiveIterator; // the iterator for the "additive statement" (means without the clauses of the elementary statement) - ::std::vector<OPrivateColumns*> m_aColumnsCollection; // used for columns and parameters of old queries - ::std::vector<OPrivateTables*> m_aTablesCollection; + std::vector<OPrivateColumns*> m_aColumnsCollection; // used for columns and parameters of old queries + std::vector<OPrivateTables*> m_aTablesCollection; - ::std::vector< OUString > m_aElementaryParts; // the filter/groupby/having/order of the elementary statement + std::vector< OUString > m_aElementaryParts; // the filter/groupby/having/order of the elementary statement css::uno::Reference< css::sdbc::XConnection> m_xConnection; css::uno::Reference< css::sdbc::XDatabaseMetaData> m_xMetaData; @@ -93,7 +93,7 @@ namespace dbaccess css::uno::Reference< css::uno::XComponentContext> m_aContext; css::uno::Reference< css::script::XTypeConverter > m_xTypeConverter; - ::std::vector<OPrivateColumns*> m_aCurrentColumns; + std::vector<OPrivateColumns*> m_aCurrentColumns; OPrivateTables* m_pTables; // currently used tables OUString m_aPureSelectSQL; // the pure select statement, without filter/order/groupby/having @@ -109,11 +109,11 @@ namespace dbaccess bool setORCriteria(::connectivity::OSQLParseNode* pCondition, ::connectivity::OSQLParseTreeIterator& _rIterator, - ::std::vector< ::std::vector < css::beans::PropertyValue > >& rFilters, const css::uno::Reference< css::util::XNumberFormatter > & xFormatter) const; + std::vector< std::vector < css::beans::PropertyValue > >& rFilters, const css::uno::Reference< css::util::XNumberFormatter > & xFormatter) const; bool setANDCriteria(::connectivity::OSQLParseNode* pCondition, ::connectivity::OSQLParseTreeIterator& _rIterator, - ::std::vector < css::beans::PropertyValue > & rFilters, const css::uno::Reference< css::util::XNumberFormatter > & xFormatter) const; + std::vector < css::beans::PropertyValue > & rFilters, const css::uno::Reference< css::util::XNumberFormatter > & xFormatter) const; bool setComparsionPredicate(::connectivity::OSQLParseNode* pCondition, ::connectivity::OSQLParseTreeIterator& _rIterator, - ::std::vector < css::beans::PropertyValue > & rFilters, const css::uno::Reference< css::util::XNumberFormatter > & xFormatter) const; + std::vector < css::beans::PropertyValue > & rFilters, const css::uno::Reference< css::util::XNumberFormatter > & xFormatter) const; static OUString getColumnName(::connectivity::OSQLParseNode* pColumnRef,::connectivity::OSQLParseTreeIterator& _rIterator); OUString getTableAlias(const css::uno::Reference< css::beans::XPropertySet >& column ) const; @@ -132,7 +132,7 @@ namespace dbaccess void setConditionByColumn( const css::uno::Reference< css::beans::XPropertySet >& column , bool andCriteria - ,::std::mem_fun1_t<bool,OSingleSelectQueryComposer,const OUString& >& _aSetFunctor + ,std::mem_fun1_t<bool,OSingleSelectQueryComposer,const OUString& >& _aSetFunctor ,sal_Int32 filterOperator); /** getStructuredCondition returns the structured condition for the where or having clause @@ -175,7 +175,7 @@ namespace dbaccess /** composes a statement from m_aPureSelectSQL and the 4 usual clauses */ - OUString composeStatementFromParts( const ::std::vector< OUString >& _rParts ); + OUString composeStatementFromParts( const std::vector< OUString >& _rParts ); /** return the name of the column in the *source* *table*. diff --git a/dbaccess/source/core/inc/column.hxx b/dbaccess/source/core/inc/column.hxx index 37856c0e32ce..85305743e475 100644 --- a/dbaccess/source/core/inc/column.hxx +++ b/dbaccess/source/core/inc/column.hxx @@ -188,7 +188,7 @@ namespace dbaccess ::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex, bool _bCaseSensitive, - const ::std::vector< OUString>& _rVector, + const std::vector< OUString>& _rVector, IColumnFactory* _pColFactory, ::connectivity::sdbcx::IRefreshableColumns* _pRefresh, bool _bAddColumn = false, @@ -200,7 +200,7 @@ namespace dbaccess ::osl::Mutex& _rMutex, const css::uno::Reference< css::container::XNameAccess >& _rxDrvColumns, bool _bCaseSensitive, - const ::std::vector< OUString> &_rVector, + const std::vector< OUString> &_rVector, IColumnFactory* _pColFactory, ::connectivity::sdbcx::IRefreshableColumns* _pRefresh, bool _bAddColumn = false, diff --git a/dbaccess/source/core/inc/composertools.hxx b/dbaccess/source/core/inc/composertools.hxx index b1187830cca8..70fb50fcb934 100644 --- a/dbaccess/source/core/inc/composertools.hxx +++ b/dbaccess/source/core/inc/composertools.hxx @@ -29,7 +29,7 @@ namespace dbaccess { // TokenComposer - struct TokenComposer : public ::std::unary_function< OUString, void > + struct TokenComposer : public std::unary_function< OUString, void > { private: #ifdef DBG_UTIL diff --git a/dbaccess/source/core/inc/definitioncontainer.hxx b/dbaccess/source/core/inc/definitioncontainer.hxx index 614a8023de65..472bc2f4a076 100644 --- a/dbaccess/source/core/inc/definitioncontainer.hxx +++ b/dbaccess/source/core/inc/definitioncontainer.hxx @@ -50,7 +50,7 @@ namespace dbaccess class ODefinitionContainer_Impl : public OContentHelper_Impl { public: - typedef ::std::map< OUString, TContentPtr > NamedDefinitions; + typedef std::map< OUString, TContentPtr > NamedDefinitions; typedef NamedDefinitions::iterator iterator; typedef NamedDefinitions::const_iterator const_iterator; diff --git a/dbaccess/source/core/inc/objectnameapproval.hxx b/dbaccess/source/core/inc/objectnameapproval.hxx index 45f14dd6434c..4fceb65ede1c 100644 --- a/dbaccess/source/core/inc/objectnameapproval.hxx +++ b/dbaccess/source/core/inc/objectnameapproval.hxx @@ -40,7 +40,7 @@ namespace dbaccess */ class ObjectNameApproval : public IContainerApprove { - ::std::unique_ptr< ObjectNameApproval_Impl > m_pImpl; + std::unique_ptr< ObjectNameApproval_Impl > m_pImpl; public: enum ObjectType diff --git a/dbaccess/source/core/inc/querycomposer.hxx b/dbaccess/source/core/inc/querycomposer.hxx index 2271cb408e34..1bf5694c2d5d 100644 --- a/dbaccess/source/core/inc/querycomposer.hxx +++ b/dbaccess/source/core/inc/querycomposer.hxx @@ -46,8 +46,8 @@ namespace dbaccess public OSubComponent, public OQueryComposer_BASE { - ::std::vector< OUString> m_aFilters; - ::std::vector< OUString> m_aOrders; + std::vector< OUString> m_aFilters; + std::vector< OUString> m_aOrders; OUString m_sOrgFilter; OUString m_sOrgOrder; css::uno::Reference< css::sdb::XSingleSelectQueryComposer> m_xComposer; diff --git a/dbaccess/source/core/inc/recovery/dbdocrecovery.hxx b/dbaccess/source/core/inc/recovery/dbdocrecovery.hxx index a903c29a1b04..c98baf9253cf 100644 --- a/dbaccess/source/core/inc/recovery/dbdocrecovery.hxx +++ b/dbaccess/source/core/inc/recovery/dbdocrecovery.hxx @@ -50,7 +50,7 @@ namespace dbaccess */ void saveModifiedSubComponents( const css::uno::Reference< css::embed::XStorage >& i_rTargetStorage, - const ::std::vector< css::uno::Reference< css::frame::XController > >& i_rControllers + const std::vector< css::uno::Reference< css::frame::XController > >& i_rControllers ); /** recovery sub components from the given document storage, if applicable @@ -66,7 +66,7 @@ namespace dbaccess ); private: - const ::std::unique_ptr< DatabaseDocumentRecovery_Data > m_pData; + const std::unique_ptr< DatabaseDocumentRecovery_Data > m_pData; }; } // namespace dbaccess diff --git a/dbaccess/source/core/misc/ContainerMediator.cxx b/dbaccess/source/core/misc/ContainerMediator.cxx index 8490f3d288a6..a803a7d87b68 100644 --- a/dbaccess/source/core/misc/ContainerMediator.cxx +++ b/dbaccess/source/core/misc/ContainerMediator.cxx @@ -202,7 +202,7 @@ void OContainerMediator::notifyElementCreated( const OUString& _sName, const Ref return; } - ::std::vector< OUString > aPropertyList; + std::vector< OUString > aPropertyList; try { // initially copy from the settings object (if existent) to the newly created object diff --git a/dbaccess/source/core/misc/DatabaseDataProvider.cxx b/dbaccess/source/core/misc/DatabaseDataProvider.cxx index 21bbac3bd3f5..0a42060403e8 100644 --- a/dbaccess/source/core/misc/DatabaseDataProvider.cxx +++ b/dbaccess/source/core/misc/DatabaseDataProvider.cxx @@ -280,7 +280,7 @@ sal_Bool SAL_CALL DatabaseDataProvider::createDataSequenceByRangeRepresentationP uno::Any DatabaseDataProvider::impl_getNumberFormatKey_nothrow(const OUString & _sRangeRepresentation) const { - ::std::map< OUString,css::uno::Any>::const_iterator aFind = m_aNumberFormats.find(_sRangeRepresentation); + std::map< OUString,css::uno::Any>::const_iterator aFind = m_aNumberFormats.find(_sRangeRepresentation); if ( aFind != m_aNumberFormats.end() ) return aFind->second; return uno::makeAny(sal_Int32(0)); @@ -635,7 +635,7 @@ namespace } }; - struct CreateColumnDescription : public ::std::unary_function< OUString, ColumnDescription > + struct CreateColumnDescription : public std::unary_function< OUString, ColumnDescription > { ColumnDescription operator()( const OUString& i_rName ) { @@ -643,7 +643,7 @@ namespace } }; - struct SelectColumnName : public ::std::unary_function< ColumnDescription, OUString > + struct SelectColumnName : public std::unary_function< ColumnDescription, OUString > { const OUString& operator()( const ColumnDescription& i_rColumn ) { @@ -659,7 +659,7 @@ void DatabaseDataProvider::impl_fillInternalDataProvider_throw(bool _bHasCategor uno::Reference< container::XNameAccess > xColumns( xColSup->getColumns(), uno::UNO_SET_THROW ); const uno::Sequence< OUString > aRowSetColumnNames( xColumns->getElementNames() ); - typedef ::std::vector< ColumnDescription > ColumnDescriptions; + typedef std::vector< ColumnDescription > ColumnDescriptions; ColumnDescriptions aColumns; bool bFirstColumnIsCategory = _bHasCategories; if ( i_aColumnNames.getLength() ) @@ -711,7 +711,7 @@ void DatabaseDataProvider::impl_fillInternalDataProvider_throw(bool _bHasCategor if ( aColumns.empty() ) { aColumns.resize( aRowSetColumnNames.getLength() ); - ::std::transform( + std::transform( aRowSetColumnNames.getConstArray(), aRowSetColumnNames.getConstArray() + aRowSetColumnNames.getLength(), aColumns.begin(), @@ -739,11 +739,11 @@ void DatabaseDataProvider::impl_fillInternalDataProvider_throw(bool _bHasCategor const sal_Int32 columnIndex = col - aColumns.begin(); const OUString sRangeName = OUString::number( columnIndex ); - m_aNumberFormats.insert( ::std::map< OUString, uno::Any >::value_type( sRangeName, aNumberFormat ) ); + m_aNumberFormats.insert( std::map< OUString, uno::Any >::value_type( sRangeName, aNumberFormat ) ); } - ::std::vector< OUString > aRowLabels; - ::std::vector< ::std::vector< double > > aDataValues; + std::vector< OUString > aRowLabels; + std::vector< std::vector< double > > aDataValues; sal_Int32 nRowCount = 0; ::connectivity::ORowSetValue aValue; while( xRes->next() && (!m_RowLimit || nRowCount < m_RowLimit) ) @@ -753,7 +753,7 @@ void DatabaseDataProvider::impl_fillInternalDataProvider_throw(bool _bHasCategor aValue.fill( aColumns[0].nResultSetPosition, aColumns[0].nDataType, xRow ); aRowLabels.push_back( aValue.getString() ); - ::std::vector< double > aRow; + std::vector< double > aRow; for ( ColumnDescriptions::const_iterator col = aColumns.begin(); col != aColumns.end(); ++col @@ -788,7 +788,7 @@ void DatabaseDataProvider::impl_fillInternalDataProvider_throw(bool _bHasCategor for(sal_Int32 h = 0,k = 0; h < nRowCount; ++h,++k ) { aRowLabels.push_back(OUString::number(h+1)); - ::std::vector< double > aRow; + std::vector< double > aRow; const sal_Int32 nSize = SAL_N_ELEMENTS(fDefaultData); for (size_t j = 0; j < (aColumns.size()-1); ++j,++k) { @@ -805,7 +805,7 @@ void DatabaseDataProvider::impl_fillInternalDataProvider_throw(bool _bHasCategor const size_t nOffset = bFirstColumnIsCategory ? 1 : 0; uno::Sequence< OUString > aColumnDescriptions( aColumns.size() - nOffset ); - ::std::transform( + std::transform( aColumns.begin() + nOffset, aColumns.end(), aColumnDescriptions.getArray(), diff --git a/dbaccess/source/core/misc/PropertyForward.cxx b/dbaccess/source/core/misc/PropertyForward.cxx index c128c2e1f6b6..95cabf09220c 100644 --- a/dbaccess/source/core/misc/PropertyForward.cxx +++ b/dbaccess/source/core/misc/PropertyForward.cxx @@ -39,7 +39,7 @@ namespace dbaccess OPropertyForward::OPropertyForward( const Reference< XPropertySet>& _xSource, const Reference< XNameAccess>& _xDestContainer, - const OUString& _sName, const ::std::vector< OUString>& _aPropertyList ) + const OUString& _sName, const std::vector< OUString>& _aPropertyList ) :m_xSource( _xSource, UNO_SET_THROW ) ,m_xDestContainer( _xDestContainer, UNO_SET_THROW ) ,m_sName( _sName ) @@ -53,8 +53,8 @@ namespace dbaccess _xSource->addPropertyChangeListener( OUString(), this ); else { - ::std::vector< OUString >::const_iterator aIter = _aPropertyList.begin(); - ::std::vector< OUString >::const_iterator aEnd = _aPropertyList.end(); + std::vector< OUString >::const_iterator aIter = _aPropertyList.begin(); + std::vector< OUString >::const_iterator aEnd = _aPropertyList.end(); for (; aIter != aEnd ; ++aIter ) _xSource->addPropertyChangeListener( *aIter, this ); } diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx index 5aabdd7620ef..57a8ee775501 100644 --- a/dbaccess/source/core/misc/dsntypes.cxx +++ b/dbaccess/source/core/misc/dsntypes.cxx @@ -421,7 +421,7 @@ DATASOURCE_TYPE ODsnTypeCollection::determineType(const OUString& _rDsn) const return DST_UNKNOWN; } -void ODsnTypeCollection::fillPageIds(const OUString& _sURL,::std::vector<sal_Int16>& _rOutPathIds) const +void ODsnTypeCollection::fillPageIds(const OUString& _sURL,std::vector<sal_Int16>& _rOutPathIds) const { DATASOURCE_TYPE eType = determineType(_sURL); switch(eType) diff --git a/dbaccess/source/core/recovery/dbdocrecovery.cxx b/dbaccess/source/core/recovery/dbdocrecovery.cxx index a19fb26b008c..31068a852ad7 100644 --- a/dbaccess/source/core/recovery/dbdocrecovery.cxx +++ b/dbaccess/source/core/recovery/dbdocrecovery.cxx @@ -222,7 +222,7 @@ namespace dbaccess } void DatabaseDocumentRecovery::saveModifiedSubComponents( const Reference< XStorage >& i_rTargetStorage, - const ::std::vector< Reference< XController > >& i_rControllers ) + const std::vector< Reference< XController > >& i_rControllers ) { ENSURE_OR_THROW( i_rTargetStorage.is(), "invalid document storage" ); @@ -242,7 +242,7 @@ namespace dbaccess MapCompTypeToCompDescs aMapCompDescs; - for ( ::std::vector< Reference< XController > >::const_iterator ctrl = i_rControllers.begin(); + for ( std::vector< Reference< XController > >::const_iterator ctrl = i_rControllers.begin(); ctrl != i_rControllers.end(); ++ctrl ) diff --git a/dbaccess/source/core/recovery/storagetextstream.hxx b/dbaccess/source/core/recovery/storagetextstream.hxx index 30080e33b393..1bbcc58c8403 100644 --- a/dbaccess/source/core/recovery/storagetextstream.hxx +++ b/dbaccess/source/core/recovery/storagetextstream.hxx @@ -43,7 +43,7 @@ namespace dbaccess void writeLine(); private: - ::std::unique_ptr< StorageTextOutputStream_Data > m_pData; + std::unique_ptr< StorageTextOutputStream_Data > m_pData; }; } // namespace dbaccess diff --git a/dbaccess/source/core/recovery/storagexmlstream.cxx b/dbaccess/source/core/recovery/storagexmlstream.cxx index bafa405c63a3..6d0332eee2bd 100644 --- a/dbaccess/source/core/recovery/storagexmlstream.cxx +++ b/dbaccess/source/core/recovery/storagexmlstream.cxx @@ -48,7 +48,7 @@ namespace dbaccess struct StorageXMLOutputStream_Data { Reference< XDocumentHandler > xHandler; - ::std::stack< OUString > aElements; + std::stack< OUString > aElements; ::rtl::Reference< SvXMLAttributeList > xAttributes; }; diff --git a/dbaccess/source/core/recovery/storagexmlstream.hxx b/dbaccess/source/core/recovery/storagexmlstream.hxx index 6f4876a26f27..a4f9a2a4c871 100644 --- a/dbaccess/source/core/recovery/storagexmlstream.hxx +++ b/dbaccess/source/core/recovery/storagexmlstream.hxx @@ -59,7 +59,7 @@ namespace dbaccess StorageXMLOutputStream& operator=( const StorageXMLOutputStream& ) = delete; private: - ::std::unique_ptr< StorageXMLOutputStream_Data > m_pData; + std::unique_ptr< StorageXMLOutputStream_Data > m_pData; }; class StorageXMLInputStream diff --git a/dbaccess/source/core/recovery/subcomponentrecovery.cxx b/dbaccess/source/core/recovery/subcomponentrecovery.cxx index 7e43408bc6f1..c93248e5d18a 100644 --- a/dbaccess/source/core/recovery/subcomponentrecovery.cxx +++ b/dbaccess/source/core/recovery/subcomponentrecovery.cxx @@ -264,7 +264,7 @@ namespace dbaccess const ::comphelper::NamedValueCollection& getSettings() const { return m_aSettings; } private: - ::std::stack< ::rtl::Reference< SettingsImport > > m_aStates; + std::stack< ::rtl::Reference< SettingsImport > > m_aStates; ::comphelper::NamedValueCollection m_aSettings; }; diff --git a/dbaccess/source/ext/macromigration/docinteraction.hxx b/dbaccess/source/ext/macromigration/docinteraction.hxx index f72b10556a14..e9ecb04bb8cf 100644 --- a/dbaccess/source/ext/macromigration/docinteraction.hxx +++ b/dbaccess/source/ext/macromigration/docinteraction.hxx @@ -70,7 +70,7 @@ namespace dbmm ); private: - ::std::unique_ptr< InteractionHandler_Data > m_pData; + std::unique_ptr< InteractionHandler_Data > m_pData; }; } // namespace dbmm diff --git a/dbaccess/source/ext/macromigration/macromigrationdialog.cxx b/dbaccess/source/ext/macromigration/macromigrationdialog.cxx index eb840335c061..6637bb32f49c 100644 --- a/dbaccess/source/ext/macromigration/macromigrationdialog.cxx +++ b/dbaccess/source/ext/macromigration/macromigrationdialog.cxx @@ -85,7 +85,7 @@ namespace dbmm // helper static void lcl_getControllers_throw(const Reference< XModel2 >& _rxDocument, - ::std::list< Reference< XController2 > >& _out_rControllers ) + std::list< Reference< XController2 > >& _out_rControllers ) { _out_rControllers.clear(); Reference< XEnumeration > xControllerEnum( _rxDocument->getControllers(), UNO_SET_THROW ); @@ -308,11 +308,11 @@ namespace dbmm try { // collect all controllers of our document - ::std::list< Reference< XController2 > > aControllers; + std::list< Reference< XController2 > > aControllers; lcl_getControllers_throw( m_pData->xDocumentModel, aControllers ); // close all sub documents of all controllers - for ( ::std::list< Reference< XController2 > >::const_iterator pos = aControllers.begin(); + for ( std::list< Reference< XController2 > >::const_iterator pos = aControllers.begin(); pos != aControllers.end() && bSuccess; ++pos ) @@ -419,8 +419,8 @@ namespace dbmm void MacroMigrationDialog::impl_reloadDocument_nothrow( bool _bMigrationSuccess ) { - typedef ::std::pair< Reference< XFrame >, OUString > ViewDescriptor; - ::std::list< ViewDescriptor > aViews; + typedef std::pair< Reference< XFrame >, OUString > ViewDescriptor; + std::list< ViewDescriptor > aViews; try { @@ -446,7 +446,7 @@ namespace dbmm aDocumentArgs.remove( "URL" ); // collect all controllers of our document - ::std::list< Reference< XController2 > > aControllers; + std::list< Reference< XController2 > > aControllers; lcl_getControllers_throw( m_pData->xDocumentModel, aControllers ); // close all those controllers diff --git a/dbaccess/source/ext/macromigration/macromigrationdialog.hxx b/dbaccess/source/ext/macromigration/macromigrationdialog.hxx index 3c21c0888a6e..742b152e6a0e 100644 --- a/dbaccess/source/ext/macromigration/macromigrationdialog.hxx +++ b/dbaccess/source/ext/macromigration/macromigrationdialog.hxx @@ -65,7 +65,7 @@ namespace dbmm DECL_LINK( OnStartMigration, void*, void ); private: - ::std::unique_ptr< MacroMigrationDialog_Data > m_pData; + std::unique_ptr< MacroMigrationDialog_Data > m_pData; }; } // namespace dbmm diff --git a/dbaccess/source/ext/macromigration/migrationengine.cxx b/dbaccess/source/ext/macromigration/migrationengine.cxx index 0a25424f0327..ab16c655765d 100644 --- a/dbaccess/source/ext/macromigration/migrationengine.cxx +++ b/dbaccess/source/ext/macromigration/migrationengine.cxx @@ -148,7 +148,7 @@ namespace dbmm } }; - typedef ::std::vector< SubDocument > SubDocuments; + typedef std::vector< SubDocument > SubDocuments; // helper typedef ::utl::SharedUNOComponent< XStorage > SharedStorage; @@ -564,7 +564,7 @@ namespace dbmm /** returns the names of the elements in the "Scripts" storage */ - ::std::set< OUString > + std::set< OUString > getElementNames() const; /** removes the sub storage for a given script type @@ -667,17 +667,17 @@ namespace dbmm return xStorage; } - ::std::set< OUString > ScriptsStorage::getElementNames() const + std::set< OUString > ScriptsStorage::getElementNames() const { Sequence< OUString > aElementNames; if ( isValid() ) aElementNames = m_xScriptsStorage->getElementNames(); - ::std::set< OUString > aNames; - ::std::copy( + std::set< OUString > aNames; + std::copy( aElementNames.getConstArray(), aElementNames.getConstArray() + aElementNames.getLength(), - ::std::insert_iterator< ::std::set< OUString > >( aNames, aNames.end() ) + std::insert_iterator< std::set< OUString > >( aNames, aNames.end() ) ); return aNames; } @@ -1180,7 +1180,7 @@ namespace dbmm { // no scripts at all, or no scripts of the given type return !m_rLogger.hadFailure(); } - ::std::set< OUString > aElementNames( aDocStorage.getElementNames() ); + std::set< OUString > aElementNames( aDocStorage.getElementNames() ); const ScriptType aKnownStorageBasedTypes[] = { eBeanShell, eJavaScript, ePython, eJava diff --git a/dbaccess/source/ext/macromigration/migrationengine.hxx b/dbaccess/source/ext/macromigration/migrationengine.hxx index 0ecf64e12a33..b5a2c023a369 100644 --- a/dbaccess/source/ext/macromigration/migrationengine.hxx +++ b/dbaccess/source/ext/macromigration/migrationengine.hxx @@ -70,7 +70,7 @@ namespace dbmm bool migrateAll(); private: - ::std::unique_ptr< MigrationEngine_Impl > m_pImpl; + std::unique_ptr< MigrationEngine_Impl > m_pImpl; }; } // namespace dbmm diff --git a/dbaccess/source/ext/macromigration/migrationerror.hxx b/dbaccess/source/ext/macromigration/migrationerror.hxx index 00be94df94be..0de6162d0cde 100644 --- a/dbaccess/source/ext/macromigration/migrationerror.hxx +++ b/dbaccess/source/ext/macromigration/migrationerror.hxx @@ -62,7 +62,7 @@ namespace dbmm struct MigrationError { const MigrationErrorType eType; - ::std::vector< OUString > aErrorDetails; + std::vector< OUString > aErrorDetails; const css::uno::Any aCaughtException; MigrationError( diff --git a/dbaccess/source/ext/macromigration/migrationlog.cxx b/dbaccess/source/ext/macromigration/migrationlog.cxx index e28ce2b78949..4941b4f82a66 100644 --- a/dbaccess/source/ext/macromigration/migrationlog.cxx +++ b/dbaccess/source/ext/macromigration/migrationlog.cxx @@ -52,7 +52,7 @@ namespace dbmm { SubDocumentType eType; OUString sName; - ::std::vector< LibraryEntry > aMovedLibraries; + std::vector< LibraryEntry > aMovedLibraries; DocumentEntry() :eType( eForm ) @@ -69,10 +69,10 @@ namespace dbmm }; // DocumentLogs - typedef ::std::map< DocumentID, DocumentEntry > DocumentLogs; + typedef std::map< DocumentID, DocumentEntry > DocumentLogs; // ErrorLog - typedef ::std::list< MigrationError > ErrorLog; + typedef std::list< MigrationError > ErrorLog; // MigrationLog_Data struct MigrationLog_Data @@ -169,7 +169,7 @@ namespace dbmm } const DocumentEntry& rDocEntry( docPos->second ); - for ( ::std::vector< LibraryEntry >::const_iterator lib = rDocEntry.aMovedLibraries.begin(); + for ( std::vector< LibraryEntry >::const_iterator lib = rDocEntry.aMovedLibraries.begin(); lib != rDocEntry.aMovedLibraries.end(); ++lib ) @@ -189,7 +189,7 @@ namespace dbmm void lcl_appendErrorDescription( OUStringBuffer& _inout_rBuffer, const MigrationError& _rError ) { const sal_Char* pAsciiErrorDescription( nullptr ); - ::std::vector< OUString > aParameterNames; + std::vector< OUString > aParameterNames; switch ( _rError.eType ) { case ERR_OPENING_SUB_DOCUMENT_FAILED: @@ -334,7 +334,7 @@ namespace dbmm OSL_ENSURE( aParameterNames.size() == _rError.aErrorDetails.size(), "lcl_appendErrorDescription: unexpected number of error message parameters!" ); - for ( size_t i=0; i < ::std::min( aParameterNames.size(), _rError.aErrorDetails.size() ); ++i ) + for ( size_t i=0; i < std::min( aParameterNames.size(), _rError.aErrorDetails.size() ); ++i ) { sSubstituted = sSubstituted.replaceFirst( aParameterNames[i], _rError.aErrorDetails[i]); @@ -421,7 +421,7 @@ namespace dbmm aBuffer.append( "=== " + sDocTitle + " ===\n" ); - for ( ::std::vector< LibraryEntry >::const_iterator lib = rDoc.aMovedLibraries.begin(); + for ( std::vector< LibraryEntry >::const_iterator lib = rDoc.aMovedLibraries.begin(); lib != rDoc.aMovedLibraries.end(); ++lib ) diff --git a/dbaccess/source/ext/macromigration/migrationlog.hxx b/dbaccess/source/ext/macromigration/migrationlog.hxx index 1a854e6e89f6..85adba176097 100644 --- a/dbaccess/source/ext/macromigration/migrationlog.hxx +++ b/dbaccess/source/ext/macromigration/migrationlog.hxx @@ -101,7 +101,7 @@ namespace dbmm getCompleteLog() const; private: - ::std::unique_ptr< MigrationLog_Data > m_pData; + std::unique_ptr< MigrationLog_Data > m_pData; }; } // namespace dbmm diff --git a/dbaccess/source/ext/macromigration/progresscapture.hxx b/dbaccess/source/ext/macromigration/progresscapture.hxx index 17cffd514eb0..8cbb2144802c 100644 --- a/dbaccess/source/ext/macromigration/progresscapture.hxx +++ b/dbaccess/source/ext/macromigration/progresscapture.hxx @@ -55,7 +55,7 @@ namespace dbmm virtual ~ProgressCapture() override; private: - ::std::unique_ptr< ProgressCapture_Data > m_pData; + std::unique_ptr< ProgressCapture_Data > m_pData; }; } // namespace dbmm diff --git a/dbaccess/source/ext/macromigration/progressmixer.cxx b/dbaccess/source/ext/macromigration/progressmixer.cxx index 40030feca0e6..4fd482c6cb1b 100644 --- a/dbaccess/source/ext/macromigration/progressmixer.cxx +++ b/dbaccess/source/ext/macromigration/progressmixer.cxx @@ -58,7 +58,7 @@ namespace dbmm } }; - typedef ::std::map< PhaseID, PhaseData > Phases; + typedef std::map< PhaseID, PhaseData > Phases; // ProgressMixer_Data struct ProgressMixer_Data diff --git a/dbaccess/source/ext/macromigration/progressmixer.hxx b/dbaccess/source/ext/macromigration/progressmixer.hxx index 68db5655bc2e..171089380af1 100644 --- a/dbaccess/source/ext/macromigration/progressmixer.hxx +++ b/dbaccess/source/ext/macromigration/progressmixer.hxx @@ -77,7 +77,7 @@ namespace dbmm void endPhase(); private: - ::std::unique_ptr< ProgressMixer_Data > m_pData; + std::unique_ptr< ProgressMixer_Data > m_pData; }; } // namespace dbmm diff --git a/dbaccess/source/filter/xml/xmlAutoStyle.cxx b/dbaccess/source/filter/xml/xmlAutoStyle.cxx index 2c1360f3c6ad..9e4fce628291 100644 --- a/dbaccess/source/filter/xml/xmlAutoStyle.cxx +++ b/dbaccess/source/filter/xml/xmlAutoStyle.cxx @@ -30,7 +30,7 @@ namespace dbaxml void OXMLAutoStylePoolP::exportStyleAttributes( SvXMLAttributeList& rAttrList, sal_Int32 nFamily, - const ::std::vector< XMLPropertyState >& rProperties, + const std::vector< XMLPropertyState >& rProperties, const SvXMLExportPropertyMapper& rPropExp , const SvXMLUnitConverter& rUnitConverter, const SvXMLNamespaceMap& rNamespaceMap @@ -40,8 +40,8 @@ void OXMLAutoStylePoolP::exportStyleAttributes( if ( nFamily == XML_STYLE_FAMILY_TABLE_COLUMN ) { rtl::Reference< XMLPropertySetMapper > aPropMapper = rODBExport.GetColumnStylesPropertySetMapper(); - ::std::vector< XMLPropertyState >::const_iterator i = rProperties.begin(); - ::std::vector< XMLPropertyState >::const_iterator aEnd = rProperties.end(); + std::vector< XMLPropertyState >::const_iterator i = rProperties.begin(); + std::vector< XMLPropertyState >::const_iterator aEnd = rProperties.end(); for ( ; i != aEnd ; ++i ) { sal_Int16 nContextID = aPropMapper->GetEntryContextId(i->mnIndex); diff --git a/dbaccess/source/filter/xml/xmlAutoStyle.hxx b/dbaccess/source/filter/xml/xmlAutoStyle.hxx index 0445d9abc3cd..c8316cd7f1db 100644 --- a/dbaccess/source/filter/xml/xmlAutoStyle.hxx +++ b/dbaccess/source/filter/xml/xmlAutoStyle.hxx @@ -33,7 +33,7 @@ namespace dbaxml virtual void exportStyleAttributes( SvXMLAttributeList& rAttrList, sal_Int32 nFamily, - const ::std::vector< XMLPropertyState >& rProperties, + const std::vector< XMLPropertyState >& rProperties, const SvXMLExportPropertyMapper& rPropExp, const SvXMLUnitConverter& rUnitConverter, const SvXMLNamespaceMap& rNamespaceMap diff --git a/dbaccess/source/filter/xml/xmlDataSourceInfo.cxx b/dbaccess/source/filter/xml/xmlDataSourceInfo.cxx index 376dab7485da..c9abadae48ba 100644 --- a/dbaccess/source/filter/xml/xmlDataSourceInfo.cxx +++ b/dbaccess/source/filter/xml/xmlDataSourceInfo.cxx @@ -50,7 +50,7 @@ OXMLDataSourceInfo::OXMLDataSourceInfo( ODBFilter& rImport sal_Int16 nLength = (_xAttrList.is()) ? _xAttrList->getLength() : 0; bool bAutoEnabled = false; bool bFoundField = false,bFoundThousand = false, bFoundCharset = false; - ::std::vector< sal_uInt16 > aTokens; + std::vector< sal_uInt16 > aTokens; for(sal_Int16 i = 0; i < nLength; ++i) { OUString sLocalName; diff --git a/dbaccess/source/filter/xml/xmlExport.cxx b/dbaccess/source/filter/xml/xmlExport.cxx index 4d69dafdb2b4..02b1e754874c 100644 --- a/dbaccess/source/filter/xml/xmlExport.cxx +++ b/dbaccess/source/filter/xml/xmlExport.cxx @@ -180,7 +180,7 @@ namespace dbaxml const XMLPropertyState& /*rProperty*/, const SvXMLUnitConverter& /*rUnitConverter*/, const SvXMLNamespaceMap& /*rNamespaceMap*/, - const ::std::vector< XMLPropertyState > * /*pProperties*/ , + const std::vector< XMLPropertyState > * /*pProperties*/ , sal_uInt32 /*nIdx*/ ) const override { // nothing to do here @@ -646,7 +646,7 @@ void ODBExport::exportConnectionData() } template< typename T > void ODBExport::exportDataSourceSettingsSequence( - ::std::vector< TypedPropertyValue >::iterator const & in) + std::vector< TypedPropertyValue >::iterator const & in) { OSequenceIterator< T > i( in->Value ); while (i.hasMoreElements()) @@ -663,8 +663,8 @@ void ODBExport::exportDataSourceSettings() return; SvXMLElementExport aElem(*this,XML_NAMESPACE_DB, XML_DATA_SOURCE_SETTINGS, true, true); - ::std::vector< TypedPropertyValue >::iterator aIter = m_aDataSourceSettings.begin(); - ::std::vector< TypedPropertyValue >::const_iterator aEnd = m_aDataSourceSettings.end(); + std::vector< TypedPropertyValue >::iterator aIter = m_aDataSourceSettings.begin(); + std::vector< TypedPropertyValue >::const_iterator aEnd = m_aDataSourceSettings.end(); for ( ; aIter != aEnd; ++aIter ) { const bool bIsSequence = TypeClass_SEQUENCE == aIter->Type.getTypeClass(); @@ -1118,8 +1118,8 @@ void ODBExport::exportTables(bool _bExportContext) void ODBExport::exportAutoStyle(XPropertySet* _xProp) { - typedef ::std::pair<TPropertyStyleMap*,sal_uInt16> TEnumMapperPair; - typedef ::std::pair< rtl::Reference < SvXMLExportPropertyMapper> , TEnumMapperPair> TExportPropMapperPair; + typedef std::pair<TPropertyStyleMap*,sal_uInt16> TEnumMapperPair; + typedef std::pair< rtl::Reference < SvXMLExportPropertyMapper> , TEnumMapperPair> TExportPropMapperPair; Reference<XColumnsSupplier> xSup(_xProp,UNO_QUERY); if ( xSup.is() ) { @@ -1129,7 +1129,7 @@ void ODBExport::exportAutoStyle(XPropertySet* _xProp) ,TExportPropMapperPair(m_xRowExportHelper,TEnumMapperPair(&m_aRowAutoStyleNames,XML_STYLE_FAMILY_TABLE_ROW)) }; - ::std::vector< XMLPropertyState > aPropertyStates; + std::vector< XMLPropertyState > aPropertyStates; for (const auto & i : pExportHelper) { aPropertyStates = i.first->Filter(_xProp); @@ -1177,11 +1177,11 @@ void ODBExport::exportAutoStyle(XPropertySet* _xProp) }; for (const auto & i : pExportHelper) { - ::std::vector< XMLPropertyState > aPropStates = i.first->Filter( _xProp ); + std::vector< XMLPropertyState > aPropStates = i.first->Filter( _xProp ); if ( !aPropStates.empty() ) { - ::std::vector< XMLPropertyState >::iterator aItr = aPropStates.begin(); - ::std::vector< XMLPropertyState >::const_iterator aEnd = aPropStates.end(); + std::vector< XMLPropertyState >::iterator aItr = aPropStates.begin(); + std::vector< XMLPropertyState >::const_iterator aEnd = aPropStates.end(); const rtl::Reference < XMLPropertySetMapper >& pStyle = i.first->getPropertySetMapper(); while ( aItr != aEnd ) { @@ -1207,7 +1207,7 @@ void ODBExport::exportAutoStyle(XPropertySet* _xProp) } if ( XML_STYLE_FAMILY_TABLE_CELL == i.second.second ) - ::std::copy( m_aCurrentPropertyStates.begin(), m_aCurrentPropertyStates.end(), ::std::back_inserter( aPropStates )); + std::copy( m_aCurrentPropertyStates.begin(), m_aCurrentPropertyStates.end(), std::back_inserter( aPropStates )); if ( !aPropStates.empty() ) i.second.first->insert( TPropertyStyleMap::value_type(_xProp,GetAutoStylePool()->Add( i.second.second, aPropStates ))); } diff --git a/dbaccess/source/filter/xml/xmlExport.hxx b/dbaccess/source/filter/xml/xmlExport.hxx index 840ea95c8f0a..b82ceeff3370 100644 --- a/dbaccess/source/filter/xml/xmlExport.hxx +++ b/dbaccess/source/filter/xml/xmlExport.hxx @@ -61,9 +61,9 @@ using namespace ::com::sun::star::xml::sax; class ODBExport : public SvXMLExport { - typedef ::std::map< ::xmloff::token::XMLTokenEnum, OUString> TSettingsMap; + typedef std::map< ::xmloff::token::XMLTokenEnum, OUString> TSettingsMap; - typedef ::std::pair< OUString ,OUString> TStringPair; + typedef std::pair< OUString ,OUString> TStringPair; struct TDelimiter { OUString sText; @@ -74,8 +74,8 @@ class ODBExport : public SvXMLExport TDelimiter() : bUsed( false ) { } }; - typedef ::std::map< Reference<XPropertySet> ,OUString > TPropertyStyleMap; - typedef ::std::map< Reference<XPropertySet> ,Reference<XPropertySet> > TTableColumnMap; + typedef std::map< Reference<XPropertySet> ,OUString > TPropertyStyleMap; + typedef std::map< Reference<XPropertySet> ,Reference<XPropertySet> > TTableColumnMap; struct TypedPropertyValue { @@ -91,10 +91,10 @@ class ODBExport : public SvXMLExport } }; - ::std::unique_ptr< TStringPair > m_aAutoIncrement; - ::std::unique_ptr< TDelimiter > m_aDelimiter; - ::std::vector< TypedPropertyValue > m_aDataSourceSettings; - ::std::vector< XMLPropertyState > m_aCurrentPropertyStates; + std::unique_ptr< TStringPair > m_aAutoIncrement; + std::unique_ptr< TDelimiter > m_aDelimiter; + std::vector< TypedPropertyValue > m_aDataSourceSettings; + std::vector< XMLPropertyState > m_aCurrentPropertyStates; TPropertyStyleMap m_aAutoStyleNames; TPropertyStyleMap m_aCellAutoStyleNames; TPropertyStyleMap m_aRowAutoStyleNames; @@ -125,7 +125,7 @@ class ODBExport : public SvXMLExport void exportAutoIncrement(); void exportCharSet(); template< typename T > void exportDataSourceSettingsSequence( - ::std::vector< TypedPropertyValue >::iterator const & in); + std::vector< TypedPropertyValue >::iterator const & in); void exportDataSourceSettings(); void exportForms(); void exportReports(); diff --git a/dbaccess/source/filter/xml/xmlHelper.hxx b/dbaccess/source/filter/xml/xmlHelper.hxx index 359647710922..2731ea6b058c 100644 --- a/dbaccess/source/filter/xml/xmlHelper.hxx +++ b/dbaccess/source/filter/xml/xmlHelper.hxx @@ -38,7 +38,7 @@ namespace dbaxml class OPropertyHandlerFactory : public ::xmloff::OControlPropertyHandlerFactory { protected: - mutable ::std::unique_ptr<XMLConstantsPropertyHandler> m_pDisplayHandler; + mutable std::unique_ptr<XMLConstantsPropertyHandler> m_pDisplayHandler; public: OPropertyHandlerFactory(); virtual ~OPropertyHandlerFactory() override; diff --git a/dbaccess/source/filter/xml/xmlTableFilterList.hxx b/dbaccess/source/filter/xml/xmlTableFilterList.hxx index 1a5f56a6a266..da60e351ea75 100644 --- a/dbaccess/source/filter/xml/xmlTableFilterList.hxx +++ b/dbaccess/source/filter/xml/xmlTableFilterList.hxx @@ -27,8 +27,8 @@ namespace dbaxml class ODBFilter; class OXMLTableFilterList : public SvXMLImportContext { - ::std::vector< OUString> m_aPatterns; - ::std::vector< OUString> m_aTypes; + std::vector< OUString> m_aPatterns; + std::vector< OUString> m_aTypes; ODBFilter& GetOwnImport(); public: diff --git a/dbaccess/source/filter/xml/xmlfilter.hxx b/dbaccess/source/filter/xml/xmlfilter.hxx index 171320c6fac3..ca92b750e99f 100644 --- a/dbaccess/source/filter/xml/xmlfilter.hxx +++ b/dbaccess/source/filter/xml/xmlfilter.hxx @@ -58,22 +58,22 @@ class ODBFilter : public SvXMLImport { public: typedef std::map< OUString, Sequence<PropertyValue> > TPropertyNameMap; - typedef ::std::vector< css::beans::PropertyValue> TInfoSequence; + typedef std::vector< css::beans::PropertyValue> TInfoSequence; private: TPropertyNameMap m_aQuerySettings; TPropertyNameMap m_aTablesSettings; TInfoSequence m_aInfoSequence; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pDocElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pDatabaseElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pDataSourceElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pLoginElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pDatabaseDescriptionElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pDataSourceInfoElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pDocumentsElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pComponentElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pQueryElemTokenMap; - mutable ::std::unique_ptr<SvXMLTokenMap> m_pColumnElemTokenMap; + mutable std::unique_ptr<SvXMLTokenMap> m_pDocElemTokenMap; + mutable std::unique_ptr<SvXMLTokenMap> m_pDatabaseElemTokenMap; + mutable std::unique_ptr<SvXMLTokenMap> m_pDataSourceElemTokenMap; + mutable std::unique_ptr<SvXMLTokenMap> m_pLoginElemTokenMap; + mutable std::unique_ptr<SvXMLTokenMap> m_pDatabaseDescriptionElemTokenMap; + mutable std::unique_ptr<SvXMLTokenMap> m_pDataSourceInfoElemTokenMap; + mutable std::unique_ptr<SvXMLTokenMap> m_pDocumentsElemTokenMap; + mutable std::unique_ptr<SvXMLTokenMap> m_pComponentElemTokenMap; + mutable std::unique_ptr<SvXMLTokenMap> m_pQueryElemTokenMap; + mutable std::unique_ptr<SvXMLTokenMap> m_pColumnElemTokenMap; mutable rtl::Reference < XMLPropertySetMapper > m_xTableStylesPropertySetMapper; mutable rtl::Reference < XMLPropertySetMapper > m_xColumnStylesPropertySetMapper; diff --git a/dbaccess/source/inc/dsntypes.hxx b/dbaccess/source/inc/dsntypes.hxx index 75c6739a2fe1..7b6a5524f562 100644 --- a/dbaccess/source/inc/dsntypes.hxx +++ b/dbaccess/source/inc/dsntypes.hxx @@ -176,7 +176,7 @@ public: /// get access to the (last + 1st) element of the types collection inline TypeIterator end() const; - void fillPageIds(const OUString& _sURL,::std::vector<sal_Int16>& _rOutPathIds) const; + void fillPageIds(const OUString& _sURL,std::vector<sal_Int16>& _rOutPathIds) const; DATASOURCE_TYPE determineType(const OUString& _rDsn) const; diff --git a/dbaccess/source/sdbtools/connection/tablename.hxx b/dbaccess/source/sdbtools/connection/tablename.hxx index aec5f9c17d94..ecb7f0f5d9f2 100644 --- a/dbaccess/source/sdbtools/connection/tablename.hxx +++ b/dbaccess/source/sdbtools/connection/tablename.hxx @@ -41,7 +41,7 @@ namespace sdbtools ,public ConnectionDependentComponent { private: - ::std::unique_ptr< TableName_Impl > m_pImpl; + std::unique_ptr< TableName_Impl > m_pImpl; public: /** constructs the instance diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx index 9b58b9a8d0f9..02ddc0f3eb1f 100644 --- a/dbaccess/source/ui/app/AppController.cxx +++ b/dbaccess/source/ui/app/AppController.cxx @@ -480,7 +480,7 @@ void SAL_CALL OApplicationController::disposing(const EventObject& _rSource) Reference<XContainer> xContainer( _rSource.Source, UNO_QUERY ); if ( xContainer.is() ) { - TContainerVector::iterator aFind = ::std::find(m_aCurrentContainers.begin(),m_aCurrentContainers.end(),xContainer); + TContainerVector::iterator aFind = std::find(m_aCurrentContainers.begin(),m_aCurrentContainers.end(),xContainer); if ( aFind != m_aCurrentContainers.end() ) m_aCurrentContainers.erase(aFind); } @@ -768,10 +768,10 @@ FeatureState OApplicationController::GetState(sal_uInt16 _nId) const && ( getContainer()->isALeafSelected() ) ) { - ::std::vector< OUString > aSelected; + std::vector< OUString > aSelected; getSelectionElementNames( aSelected ); bool bAlterableViews = true; - for ( ::std::vector< OUString >::const_iterator selectedName = aSelected.begin(); + for ( std::vector< OUString >::const_iterator selectedName = aSelected.begin(); bAlterableViews && ( selectedName != aSelected.end() ) ; ++selectedName ) @@ -1006,7 +1006,7 @@ void OApplicationController::Execute(sal_uInt16 _nId, const Sequence< PropertyVa case E_TABLE: { // get the selected tablename - ::std::vector< OUString > aList; + std::vector< OUString > aList; getSelectionElementNames( aList ); if ( !aList.empty() ) m_aTableCopyHelper.SetTableNameForAppend( *aList.begin() ); @@ -1023,7 +1023,7 @@ void OApplicationController::Execute(sal_uInt16 _nId, const Sequence< PropertyVa break; default: { - ::std::vector< OUString> aList; + std::vector< OUString> aList; getSelectionElementNames(aList); OUString sFolderNameToInsertInto; if ( !aList.empty() ) @@ -1049,10 +1049,10 @@ void OApplicationController::Execute(sal_uInt16 _nId, const Sequence< PropertyVa { SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); ScopedVclPtr<SfxAbstractPasteDialog> pDlg(pFact->CreatePasteDialog( getView() )); - ::std::vector<SotClipboardFormatId> aFormatIds; + std::vector<SotClipboardFormatId> aFormatIds; getSupportedFormats(getContainer()->getElementType(),aFormatIds); - const ::std::vector<SotClipboardFormatId>::const_iterator aEnd = aFormatIds.end(); - for (::std::vector<SotClipboardFormatId>::const_iterator aIter = aFormatIds.begin();aIter != aEnd; ++aIter) + const std::vector<SotClipboardFormatId>::const_iterator aEnd = aFormatIds.end(); + for (std::vector<SotClipboardFormatId>::const_iterator aIter = aFormatIds.begin();aIter != aEnd; ++aIter) pDlg->Insert(*aIter,""); const TransferableDataHelper& rClipboard = getViewClipboard(); @@ -1507,7 +1507,7 @@ void SAL_CALL OApplicationController::elementInserted( const ContainerEvent& _rE ::osl::MutexGuard aGuard( getMutex() ); Reference< XContainer > xContainer(_rEvent.Source, UNO_QUERY); - if ( ::std::find(m_aCurrentContainers.begin(),m_aCurrentContainers.end(),xContainer) != m_aCurrentContainers.end() ) + if ( std::find(m_aCurrentContainers.begin(),m_aCurrentContainers.end(),xContainer) != m_aCurrentContainers.end() ) { OSL_ENSURE(getContainer(),"View is NULL! -> GPF"); if ( getContainer() ) @@ -1543,7 +1543,7 @@ void SAL_CALL OApplicationController::elementRemoved( const ContainerEvent& _rEv ::osl::MutexGuard aGuard( getMutex() ); Reference< XContainer > xContainer(_rEvent.Source, UNO_QUERY); - if ( ::std::find(m_aCurrentContainers.begin(),m_aCurrentContainers.end(),xContainer) != m_aCurrentContainers.end() ) + if ( std::find(m_aCurrentContainers.begin(),m_aCurrentContainers.end(),xContainer) != m_aCurrentContainers.end() ) { OSL_ENSURE(getContainer(),"View is NULL! -> GPF"); OUString sName; @@ -1577,7 +1577,7 @@ void SAL_CALL OApplicationController::elementReplaced( const ContainerEvent& _rE ::osl::MutexGuard aGuard( getMutex() ); Reference< XContainer > xContainer(_rEvent.Source, UNO_QUERY); - if ( ::std::find(m_aCurrentContainers.begin(),m_aCurrentContainers.end(),xContainer) != m_aCurrentContainers.end() ) + if ( std::find(m_aCurrentContainers.begin(),m_aCurrentContainers.end(),xContainer) != m_aCurrentContainers.end() ) { OSL_ENSURE(getContainer(),"View is NULL! -> GPF"); OUString sName; @@ -1795,7 +1795,7 @@ Reference< XComponent > OApplicationController::openElementWithArguments( const { if ( isStandaloneDocument || !m_pSubComponentManager->activateSubFrame( _sName, _eType, _eOpenMode, xRet ) ) { - ::std::unique_ptr< OLinkedDocumentsAccess > aHelper = getDocumentsAccess( _eType ); + std::unique_ptr< OLinkedDocumentsAccess > aHelper = getDocumentsAccess( _eType ); if ( !aHelper->isConnected() ) break; @@ -1817,7 +1817,7 @@ Reference< XComponent > OApplicationController::openElementWithArguments( const if ( !xConnection.is() ) break; - ::std::unique_ptr< DatabaseObjectView > pDesigner; + std::unique_ptr< DatabaseObjectView > pDesigner; ::comphelper::NamedValueCollection aArguments( _rAdditionalArguments ); Any aDataSource; @@ -1899,7 +1899,7 @@ void OApplicationController::newElementWithPilot( ElementType _eType ) case E_REPORT: case E_FORM: { - ::std::unique_ptr<OLinkedDocumentsAccess> aHelper = getDocumentsAccess(_eType); + std::unique_ptr<OLinkedDocumentsAccess> aHelper = getDocumentsAccess(_eType); if ( aHelper->isConnected() ) { sal_Int32 nCommandType = -1; @@ -1914,7 +1914,7 @@ void OApplicationController::newElementWithPilot( ElementType _eType ) case E_QUERY: case E_TABLE: { - ::std::unique_ptr<OLinkedDocumentsAccess> aHelper = getDocumentsAccess(_eType); + std::unique_ptr<OLinkedDocumentsAccess> aHelper = getDocumentsAccess(_eType); if ( aHelper->isConnected() ) { if ( E_QUERY == _eType ) @@ -1945,7 +1945,7 @@ Reference< XComponent > OApplicationController::newElement( ElementType _eType, case E_FORM: case E_REPORT: { - ::std::unique_ptr<OLinkedDocumentsAccess> aHelper = getDocumentsAccess( _eType ); + std::unique_ptr<OLinkedDocumentsAccess> aHelper = getDocumentsAccess( _eType ); if ( !aHelper->isConnected() ) break; @@ -1956,7 +1956,7 @@ Reference< XComponent > OApplicationController::newElement( ElementType _eType, case E_QUERY: case E_TABLE: { - ::std::unique_ptr< DatabaseObjectView > pDesigner; + std::unique_ptr< DatabaseObjectView > pDesigner; SharedConnection xConnection( ensureConnection() ); if ( !xConnection.is() ) break; @@ -1994,7 +1994,7 @@ void OApplicationController::addContainerListener(const Reference<XNameAccess>& if ( xCont.is() ) { // add as listener to get notified if elements are inserted or removed - TContainerVector::const_iterator aFind = ::std::find(m_aCurrentContainers.begin(),m_aCurrentContainers.end(),xCont); + TContainerVector::const_iterator aFind = std::find(m_aCurrentContainers.begin(),m_aCurrentContainers.end(),xCont); if ( aFind == m_aCurrentContainers.end() ) { xCont->addContainerListener(this); @@ -2014,7 +2014,7 @@ void OApplicationController::renameEntry() ::osl::MutexGuard aGuard( getMutex() ); OSL_ENSURE(getContainer(),"View is NULL! -> GPF"); - ::std::vector< OUString> aList; + std::vector< OUString> aList; getSelectionElementNames(aList); Reference< XNameAccess > xContainer = getElements(getContainer()->getElementType()); @@ -2026,7 +2026,7 @@ void OApplicationController::renameEntry() { if ( xContainer.is() ) { - ::std::unique_ptr< IObjectNameCheck > pNameChecker; + std::unique_ptr< IObjectNameCheck > pNameChecker; VclPtr< OSaveAsDlg > aDialog; Reference<XRename> xRename; @@ -2339,7 +2339,7 @@ sal_Int8 OApplicationController::queryDrop( const AcceptDropEvent& _rEvt, const if ( eType != E_NONE && (eType != E_TABLE || !isConnectionReadOnly()) ) { // check for the concrete type - if(::std::any_of(_rFlavors.begin(),_rFlavors.end(),TAppSupportedSotFunctor(eType))) + if(std::any_of(_rFlavors.begin(),_rFlavors.end(),TAppSupportedSotFunctor(eType))) return DND_ACTION_COPY; if ( eType == E_FORM || eType == E_REPORT ) { diff --git a/dbaccess/source/ui/app/AppController.hxx b/dbaccess/source/ui/app/AppController.hxx index 4557ef0e408a..24dbc9c7e749 100644 --- a/dbaccess/source/ui/app/AppController.hxx +++ b/dbaccess/source/ui/app/AppController.hxx @@ -84,7 +84,7 @@ namespace dbaui ,public IContextMenuProvider { public: - typedef ::std::vector< css::uno::Reference< css::container::XContainer > > TContainerVector; + typedef std::vector< css::uno::Reference< css::container::XContainer > > TContainerVector; private: @@ -118,9 +118,9 @@ namespace dbaui bool m_bNeedToReconnect; // true when the settings of the data source were modified and the connection is no longer up to date bool m_bSuspended; // is true when the controller was already suspended - ::std::unique_ptr< SelectionNotifier > + std::unique_ptr< SelectionNotifier > m_pSelectionNotifier; - typedef ::std::map< ElementType, ::std::vector< OUString > > SelectionByElementType; + typedef std::map< ElementType, std::vector< OUString > > SelectionByElementType; SelectionByElementType m_aPendingSelection; private: @@ -190,7 +190,7 @@ namespace dbaui bool isConnectionReadOnly() const; /// fills the list with the selected entries. - void getSelectionElementNames( ::std::vector< OUString>& _rNames ) const; + void getSelectionElementNames( std::vector< OUString>& _rNames ) const; /// deletes the entries selected. void deleteEntries(); @@ -207,14 +207,14 @@ namespace dbaui determines whether the user must confirm the deletion */ void deleteObjects( ElementType _eType, - const ::std::vector< OUString>& _rList, + const std::vector< OUString>& _rList, bool _bConfirm ); /** deletes tables. @param _rList The list of tables. */ - void deleteTables(const ::std::vector< OUString>& _rList); + void deleteTables(const std::vector< OUString>& _rList); /// copies the current object into clipboard TransferableHelper* copyObject(); @@ -225,9 +225,9 @@ namespace dbaui /** returns the document access for the specific type @param _eType the type - @return ::std::unique_ptr<OLinkedDocumentsAccess> + @return std::unique_ptr<OLinkedDocumentsAccess> */ - ::std::unique_ptr<OLinkedDocumentsAccess> getDocumentsAccess(ElementType _eType); + std::unique_ptr<OLinkedDocumentsAccess> getDocumentsAccess(ElementType _eType); /// returns the query definitions of the active data source. css::uno::Reference< css::container::XNameContainer> getQueryDefinitions() const; @@ -264,7 +264,7 @@ namespace dbaui @param _rFormatIds The vector to be filled up. */ - static void getSupportedFormats(ElementType _eType,::std::vector<SotClipboardFormatId>& _rFormatIds); + static void getSupportedFormats(ElementType _eType,std::vector<SotClipboardFormatId>& _rFormatIds); /** adds a listener to the current name access. @param _xCollection diff --git a/dbaccess/source/ui/app/AppControllerDnD.cxx b/dbaccess/source/ui/app/AppControllerDnD.cxx index d763bf18889b..813ac916746f 100644 --- a/dbaccess/source/ui/app/AppControllerDnD.cxx +++ b/dbaccess/source/ui/app/AppControllerDnD.cxx @@ -98,7 +98,7 @@ using namespace ::com::sun::star::frame; using namespace ::com::sun::star::ucb; using namespace ::com::sun::star::util; -void OApplicationController::deleteTables(const ::std::vector< OUString>& _rList) +void OApplicationController::deleteTables(const std::vector< OUString>& _rList) { SharedConnection xConnection( ensureConnection() ); @@ -111,8 +111,8 @@ void OApplicationController::deleteTables(const ::std::vector< OUString>& _rList if ( xDrop.is() ) { bool bConfirm = true; - ::std::vector< OUString>::const_iterator aEnd = _rList.end(); - for (::std::vector< OUString>::const_iterator aIter = _rList.begin(); aIter != aEnd; ++aIter) + std::vector< OUString>::const_iterator aEnd = _rList.end(); + for (std::vector< OUString>::const_iterator aIter = _rList.begin(); aIter != aEnd; ++aIter) { OUString sTableName = *aIter; @@ -182,7 +182,7 @@ void OApplicationController::deleteTables(const ::std::vector< OUString>& _rList } } -void OApplicationController::deleteObjects( ElementType _eType, const ::std::vector< OUString>& _rList, bool _bConfirm ) +void OApplicationController::deleteObjects( ElementType _eType, const std::vector< OUString>& _rList, bool _bConfirm ) { Reference< XNameContainer > xNames( getElements( _eType ), UNO_QUERY ); Reference< XHierarchicalNameContainer > xHierarchyName( xNames, UNO_QUERY ); @@ -195,19 +195,19 @@ void OApplicationController::deleteObjects( ElementType _eType, const ::std::vec // be the ancestor or child of another element from the list. // We want to ensure that ancestors get deleted first, so we normalize the list in this respect. // #i33353# - ::std::set< OUString > aDeleteNames; - // Note that this implicitly uses ::std::less< OUString > a comparison operation, which + std::set< OUString > aDeleteNames; + // Note that this implicitly uses std::less< OUString > a comparison operation, which // results in lexicographical order, which is exactly what we need, because "foo" is *before* // any "foo/bar" in this order. - ::std::copy( + std::copy( _rList.begin(), _rList.end(), - ::std::insert_iterator< ::std::set< OUString > >( aDeleteNames, aDeleteNames.begin() ) + std::insert_iterator< std::set< OUString > >( aDeleteNames, aDeleteNames.begin() ) ); - ::std::set< OUString >::size_type nCount = aDeleteNames.size(); - for ( ::std::set< OUString >::size_type nObjectsLeft = nCount; !aDeleteNames.empty(); ) + std::set< OUString >::size_type nCount = aDeleteNames.size(); + for ( std::set< OUString >::size_type nObjectsLeft = nCount; !aDeleteNames.empty(); ) { - ::std::set< OUString >::const_iterator aThisRound = aDeleteNames.begin(); + std::set< OUString >::const_iterator aThisRound = aDeleteNames.begin(); if ( eResult != svtools::QUERYDELETE_ALL ) { @@ -252,12 +252,12 @@ void OApplicationController::deleteObjects( ElementType _eType, const ::std::vec OUStringBuffer sSmallestSiblingName( *aThisRound ); sSmallestSiblingName.append( (sal_Unicode)( '/' + 1) ); - ::std::set< OUString >::const_iterator aUpperChildrenBound = aDeleteNames.lower_bound( sSmallestSiblingName.makeStringAndClear() ); - for ( ::std::set< OUString >::const_iterator aObsolete = aThisRound; + std::set< OUString >::const_iterator aUpperChildrenBound = aDeleteNames.lower_bound( sSmallestSiblingName.makeStringAndClear() ); + for ( std::set< OUString >::const_iterator aObsolete = aThisRound; aObsolete != aUpperChildrenBound; ) { - ::std::set< OUString >::const_iterator aNextObsolete = aObsolete; ++aNextObsolete; + std::set< OUString >::const_iterator aNextObsolete = aObsolete; ++aNextObsolete; aDeleteNames.erase( aObsolete ); --nObjectsLeft; aObsolete = aNextObsolete; @@ -299,7 +299,7 @@ void OApplicationController::deleteEntries() if ( getContainer() ) { - ::std::vector< OUString> aList; + std::vector< OUString> aList; getSelectionElementNames(aList); ElementType eType = getContainer()->getElementType(); switch(eType) @@ -483,7 +483,7 @@ Reference< XNameAccess > OApplicationController::getElements( ElementType _eType return xElements; } -void OApplicationController::getSelectionElementNames(::std::vector< OUString>& _rNames) const +void OApplicationController::getSelectionElementNames(std::vector< OUString>& _rNames) const { SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( getMutex() ); @@ -493,7 +493,7 @@ void OApplicationController::getSelectionElementNames(::std::vector< OUString>& getContainer()->getSelectionElementNames( _rNames ); } -::std::unique_ptr< OLinkedDocumentsAccess > OApplicationController::getDocumentsAccess( ElementType _eType ) +std::unique_ptr< OLinkedDocumentsAccess > OApplicationController::getDocumentsAccess( ElementType _eType ) { OSL_ENSURE( ( _eType == E_TABLE ) || ( _eType == E_QUERY ) || ( _eType == E_FORM ) || ( _eType == E_REPORT ), "OApplicationController::getDocumentsAccess: only forms and reports are supported here!" ); @@ -507,7 +507,7 @@ void OApplicationController::getSelectionElementNames(::std::vector< OUString>& OSL_ENSURE( xDocContainer.is(), "OApplicationController::getDocumentsAccess: invalid container!" ); } - ::std::unique_ptr< OLinkedDocumentsAccess > pDocuments( new OLinkedDocumentsAccess( + std::unique_ptr< OLinkedDocumentsAccess > pDocuments( new OLinkedDocumentsAccess( getView(), this, getORB(), xDocContainer, xConnection, getDatabaseName() ) ); return pDocuments; @@ -551,7 +551,7 @@ TransferableHelper* OApplicationController::copyObject() case E_FORM: case E_REPORT: { - ::std::vector< OUString> aList; + std::vector< OUString> aList; getSelectionElementNames(aList); Reference< XHierarchicalNameAccess > xElements(getElements(eType),UNO_QUERY); if ( xElements.is() && !aList.empty() ) @@ -775,7 +775,7 @@ Reference<XNameContainer> OApplicationController::getQueryDefinitions() const return xNames; } -void OApplicationController::getSupportedFormats(ElementType _eType,::std::vector<SotClipboardFormatId>& _rFormatIds) +void OApplicationController::getSupportedFormats(ElementType _eType,std::vector<SotClipboardFormatId>& _rFormatIds) { switch( _eType ) { @@ -816,7 +816,7 @@ IMPL_LINK_NOARG( OApplicationController, OnAsyncDrop, void*, void ) { Reference<XContent> xContent; m_aAsyncDrop.aDroppedData[DataAccessDescriptorProperty::Component] >>= xContent; - ::std::vector< OUString> aList; + std::vector< OUString> aList; sal_Int32 nIndex = 0; OUString sName = xContent->getIdentifier()->getContentIdentifier(); OUString sErase = sName.getToken(0,'/',nIndex); // we don't want to have the "private:forms" part diff --git a/dbaccess/source/ui/app/AppControllerGen.cxx b/dbaccess/source/ui/app/AppControllerGen.cxx index 72202357a71d..96eee0c85e3b 100644 --- a/dbaccess/source/ui/app/AppControllerGen.cxx +++ b/dbaccess/source/ui/app/AppControllerGen.cxx @@ -618,7 +618,7 @@ bool OApplicationController::isRenameDeleteAllowed(ElementType _eType, bool _bDe bCompareRes = getContainer()->getSelectionCount() == 1; if ( bEnabled && bCompareRes && E_TABLE == eType ) { - ::std::vector< OUString> aList; + std::vector< OUString> aList; getSelectionElementNames(aList); try @@ -675,7 +675,7 @@ void OApplicationController::onLoadedMenu(const Reference< css::frame::XLayoutMa void OApplicationController::doAction(sal_uInt16 _nId, const ElementOpenMode _eOpenMode) { - ::std::vector< OUString> aList; + std::vector< OUString> aList; getSelectionElementNames(aList); ElementType eType = getContainer()->getElementType(); ::comphelper::NamedValueCollection aArguments; @@ -686,16 +686,16 @@ void OApplicationController::doAction(sal_uInt16 _nId, const ElementOpenMode _eO eOpenMode = E_OPEN_NORMAL; } - ::std::vector< ::std::pair< OUString ,Reference< XModel > > > aComponents; - ::std::vector< OUString>::const_iterator aEnd = aList.end(); - for (::std::vector< OUString>::const_iterator aIter = aList.begin(); aIter != aEnd; ++aIter) + std::vector< std::pair< OUString ,Reference< XModel > > > aComponents; + std::vector< OUString>::const_iterator aEnd = aList.end(); + for (std::vector< OUString>::const_iterator aIter = aList.begin(); aIter != aEnd; ++aIter) { if ( SID_DB_APP_CONVERTTOVIEW == _nId ) convertToView(*aIter); else { Reference< XModel > xModel( openElementWithArguments( *aIter, eType, eOpenMode, _nId,aArguments ), UNO_QUERY ); - aComponents.push_back( ::std::pair< OUString, Reference< XModel > >( *aIter, xModel ) ); + aComponents.push_back( std::pair< OUString, Reference< XModel > >( *aIter, xModel ) ); } } @@ -703,8 +703,8 @@ void OApplicationController::doAction(sal_uInt16 _nId, const ElementOpenMode _eO if ( _eOpenMode == E_OPEN_FOR_MAIL ) { - ::std::vector< ::std::pair< OUString ,Reference< XModel > > >::const_iterator componentIter = aComponents.begin(); - ::std::vector< ::std::pair< OUString ,Reference< XModel > > >::const_iterator componentEnd = aComponents.end(); + std::vector< std::pair< OUString ,Reference< XModel > > >::const_iterator componentIter = aComponents.begin(); + std::vector< std::pair< OUString ,Reference< XModel > > >::const_iterator componentEnd = aComponents.end(); OUString aDocTypeString; SfxMailModel aSendMail; SfxMailModel::SendMailResult eResult = SfxMailModel::SEND_MAIL_OK; diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx index 2a65a8852832..ac36ea17bc1d 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx @@ -311,7 +311,7 @@ void OAppDetailPageHelper::sortUp() sort(nPos,SortAscending); } -void OAppDetailPageHelper::getSelectionElementNames( ::std::vector< OUString>& _rNames ) const +void OAppDetailPageHelper::getSelectionElementNames( std::vector< OUString>& _rNames ) const { int nPos = getVisibleControlIndex(); if ( nPos < E_ELEMENT_TYPE_COUNT ) @@ -366,7 +366,7 @@ void OAppDetailPageHelper::describeCurrentSelectionForType( const ElementType _e if ( !pList ) return; - ::std::vector< NamedDatabaseObject > aSelected; + std::vector< NamedDatabaseObject > aSelected; SvTreeListEntry* pEntry = pList->FirstSelected(); while( pEntry ) diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.hxx b/dbaccess/source/ui/app/AppDetailPageHelper.hxx index 7aeda4283357..b94c4c77624b 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.hxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.hxx @@ -209,7 +209,7 @@ namespace dbaui @param _rNames The list will be filled. */ - void getSelectionElementNames( ::std::vector< OUString>& _rNames ) const; + void getSelectionElementNames( std::vector< OUString>& _rNames ) const; /** describes the current selection for the given control */ diff --git a/dbaccess/source/ui/app/AppDetailView.cxx b/dbaccess/source/ui/app/AppDetailView.cxx index d9f8a0b3fe62..9961e28beb2d 100644 --- a/dbaccess/source/ui/app/AppDetailView.cxx +++ b/dbaccess/source/ui/app/AppDetailView.cxx @@ -162,8 +162,8 @@ Rectangle OCreationList::GetFocusRect( SvTreeListEntry* _pEntry, long _nLine ) aRect.Left() = pTab->GetPos() - pItemData->maSize.Width() / 2; // inflate the rectangle a little bit - looks better, too - aRect.Left() = ::std::max< long >( 0, aRect.Left() - 2 ); - aRect.Right() = ::std::min< long >( GetOutputSizePixel().Width() - 1, aRect.Right() + 2 ); + aRect.Left() = std::max< long >( 0, aRect.Left() - 2 ); + aRect.Right() = std::min< long >( GetOutputSizePixel().Width() - 1, aRect.Right() + 2 ); return aRect; } @@ -785,7 +785,7 @@ sal_Int32 OApplicationDetailView::getElementCount() return m_pControlHelper->getElementCount(); } -void OApplicationDetailView::getSelectionElementNames( ::std::vector< OUString>& _rNames ) const +void OApplicationDetailView::getSelectionElementNames( std::vector< OUString>& _rNames ) const { m_pControlHelper->getSelectionElementNames( _rNames ); } diff --git a/dbaccess/source/ui/app/AppDetailView.hxx b/dbaccess/source/ui/app/AppDetailView.hxx index 988be3f003b9..03cb81134b6a 100644 --- a/dbaccess/source/ui/app/AppDetailView.hxx +++ b/dbaccess/source/ui/app/AppDetailView.hxx @@ -99,7 +99,7 @@ namespace dbaui TaskEntry( const sal_Char* _pAsciiUNOCommand, sal_uInt16 _nHelpID, sal_uInt16 _nTitleResourceID, bool _bHideWhenDisabled = false ); }; - typedef ::std::vector< TaskEntry > TaskEntryList; + typedef std::vector< TaskEntry > TaskEntryList; struct TaskPaneData { @@ -150,7 +150,7 @@ namespace dbaui VclPtr<OTitleWindow> m_aContainer; OAppBorderWindow& m_rBorderWin; // my parent VclPtr<OAppDetailPageHelper> m_pControlHelper; - ::std::vector< TaskPaneData > m_aTaskPaneData; + std::vector< TaskPaneData > m_aTaskPaneData; MnemonicGenerator m_aExternalMnemonics; void ImplInitSettings(); @@ -256,7 +256,7 @@ namespace dbaui @param _rNames The list will be filled. */ - void getSelectionElementNames(::std::vector< OUString>& _rNames ) const; + void getSelectionElementNames(std::vector< OUString>& _rNames ) const; /** describes the current selection for the given control */ diff --git a/dbaccess/source/ui/app/AppView.cxx b/dbaccess/source/ui/app/AppView.cxx index c4b1a92908ac..f8831c38ef4b 100644 --- a/dbaccess/source/ui/app/AppView.cxx +++ b/dbaccess/source/ui/app/AppView.cxx @@ -122,7 +122,7 @@ void OAppBorderWindow::Resize() if ( pSwap->GetEntryCount() != 0 ) nX = pSwap->GetBoundingBox( pSwap->GetEntry(0) ).GetWidth() + aFLSize.Height(); } - nX = ::std::max(m_pPanel->GetWidthPixel() ,nX); + nX = std::max(m_pPanel->GetWidthPixel() ,nX); m_pPanel->SetPosSizePixel(Point(0,0),Size(nX,nOutputHeight)); } @@ -401,7 +401,7 @@ sal_Int32 OApplicationView::getElementCount() return getDetailView()->getElementCount(); } -void OApplicationView::getSelectionElementNames( ::std::vector< OUString>& _rNames ) const +void OApplicationView::getSelectionElementNames( std::vector< OUString>& _rNames ) const { OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF"); getDetailView()->getSelectionElementNames( _rNames ); diff --git a/dbaccess/source/ui/app/AppView.hxx b/dbaccess/source/ui/app/AppView.hxx index d057ea3eb6ff..136c25535962 100644 --- a/dbaccess/source/ui/app/AppView.hxx +++ b/dbaccess/source/ui/app/AppView.hxx @@ -189,7 +189,7 @@ namespace dbaui @param _rNames The list will be filled. */ - void getSelectionElementNames( ::std::vector< OUString>& _rNames ) const; + void getSelectionElementNames( std::vector< OUString>& _rNames ) const; /** describes the current selection for the given control */ diff --git a/dbaccess/source/ui/app/subcomponentmanager.cxx b/dbaccess/source/ui/app/subcomponentmanager.cxx index fbe1bdc05f54..900f6845441c 100644 --- a/dbaccess/source/ui/app/subcomponentmanager.cxx +++ b/dbaccess/source/ui/app/subcomponentmanager.cxx @@ -157,7 +157,7 @@ namespace dbaui } }; - struct SelectSubComponent : public ::std::unary_function< SubComponentDescriptor, Reference< XComponent > > + struct SelectSubComponent : public std::unary_function< SubComponentDescriptor, Reference< XComponent > > { Reference< XComponent > operator()( const SubComponentDescriptor &_desc ) const { @@ -168,9 +168,9 @@ namespace dbaui } }; - typedef ::std::vector< SubComponentDescriptor > SubComponents; + typedef std::vector< SubComponentDescriptor > SubComponents; - struct SubComponentMatch : public ::std::unary_function< SubComponentDescriptor, bool > + struct SubComponentMatch : public std::unary_function< SubComponentDescriptor, bool > { public: SubComponentMatch( const OUString& i_rName, const sal_Int32 i_nComponentType, @@ -413,7 +413,7 @@ namespace dbaui ::osl::MutexGuard aGuard( m_pData->getMutex() ); Sequence< Reference< XComponent > > aComponents( m_pData->m_aComponents.size() ); - ::std::transform( + std::transform( m_pData->m_aComponents.begin(), m_pData->m_aComponents.end(), aComponents.getArray(), @@ -461,7 +461,7 @@ namespace dbaui if ( !_rName.isEmpty() ) { // check there does not already exist such a component - SubComponents::const_iterator existentPos = ::std::find_if( + SubComponents::const_iterator existentPos = std::find_if( m_pData->m_aComponents.begin(), m_pData->m_aComponents.end(), SubComponentMatch( _rName, _nComponentType, _eOpenMode ) @@ -492,7 +492,7 @@ namespace dbaui { ::osl::MutexGuard aGuard( m_pData->getMutex() ); - SubComponents::const_iterator pos = ::std::find_if( + SubComponents::const_iterator pos = std::find_if( m_pData->m_aComponents.begin(), m_pData->m_aComponents.end(), SubComponentMatch( _rName, _nComponentType, _eOpenMode ) diff --git a/dbaccess/source/ui/app/subcomponentmanager.hxx b/dbaccess/source/ui/app/subcomponentmanager.hxx index 8572f2342e69..a7a1fb8bed96 100644 --- a/dbaccess/source/ui/app/subcomponentmanager.hxx +++ b/dbaccess/source/ui/app/subcomponentmanager.hxx @@ -113,7 +113,7 @@ namespace dbaui ); private: - ::std::unique_ptr< SubComponentManager_Data > m_pData; + std::unique_ptr< SubComponentManager_Data > m_pData; }; } // namespace dbaui diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx index f2813dd90764..e854c2435d5c 100644 --- a/dbaccess/source/ui/browser/brwctrlr.cxx +++ b/dbaccess/source/ui/browser/brwctrlr.cxx @@ -1831,7 +1831,7 @@ void SbaXDataBrowserController::ExecuteSearch() VclPtr<AbstractFmSearchDialog> pDialog; if ( pFact ) { - ::std::vector< OUString > aContextNames; + std::vector< OUString > aContextNames; aContextNames.push_back( OUString("Standard") ); pDialog = pFact->CreateFmSearchDialog(getBrowserView(), sInitialText, aContextNames, 0, LINK(this, SbaXDataBrowserController, OnSearchContextRequest)); } diff --git a/dbaccess/source/ui/browser/dsbrowserDnD.cxx b/dbaccess/source/ui/browser/dsbrowserDnD.cxx index 51221cc8b34e..a09b4a000744 100644 --- a/dbaccess/source/ui/browser/dsbrowserDnD.cxx +++ b/dbaccess/source/ui/browser/dsbrowserDnD.cxx @@ -109,7 +109,7 @@ namespace dbaui if ( xChild.is() ) xStore.set( getDataSourceOrModel(xChild->getParent()), UNO_QUERY ); // check for the concrete type - if ( xStore.is() && !xStore->isReadonly() && ::std::any_of(_rFlavors.begin(),_rFlavors.end(),TAppSupportedSotFunctor(E_TABLE)) ) + if ( xStore.is() && !xStore->isReadonly() && std::any_of(_rFlavors.begin(),_rFlavors.end(),TAppSupportedSotFunctor(E_TABLE)) ) return DND_ACTION_COPY; } } diff --git a/dbaccess/source/ui/browser/formadapter.cxx b/dbaccess/source/ui/browser/formadapter.cxx index 20ae83b97b56..083f2f536420 100644 --- a/dbaccess/source/ui/browser/formadapter.cxx +++ b/dbaccess/source/ui/browser/formadapter.cxx @@ -1087,7 +1087,7 @@ void SAL_CALL SbaXFormAdapter::dispose() m_aContainerListeners.disposeAndClear(aEvt); // dispose all children - for ( ::std::vector< Reference< css::form::XFormComponent > >::const_iterator aIter = m_aChildren.begin(); + for ( std::vector< Reference< css::form::XFormComponent > >::const_iterator aIter = m_aChildren.begin(); aIter != m_aChildren.end(); ++aIter ) @@ -1429,9 +1429,9 @@ void SbaXFormAdapter::implInsert(const Any& aElement, sal_Int32 nIndex, const OU sal_Int32 SbaXFormAdapter::implGetPos(const OUString& rName) { - ::std::vector< OUString>::const_iterator aIter = ::std::find_if( m_aChildNames.begin(), + std::vector< OUString>::const_iterator aIter = std::find_if( m_aChildNames.begin(), m_aChildNames.end(), - ::std::bind2nd(::std::equal_to< OUString>(),rName)); + std::bind2nd(std::equal_to< OUString>(),rName)); if(aIter != m_aChildNames.end()) return aIter - m_aChildNames.begin(); @@ -1632,9 +1632,9 @@ void SAL_CALL SbaXFormAdapter::propertyChange(const css::beans::PropertyChangeEv { if (evt.PropertyName == PROPERTY_NAME) { - ::std::vector< css::uno::Reference< css::form::XFormComponent > >::const_iterator aIter = ::std::find_if( m_aChildren.begin(), + std::vector< css::uno::Reference< css::form::XFormComponent > >::const_iterator aIter = std::find_if( m_aChildren.begin(), m_aChildren.end(), - ::std::bind2nd(::std::equal_to< css::uno::Reference< css::uno::XInterface > >(),evt.Source)); + std::bind2nd(std::equal_to< css::uno::Reference< css::uno::XInterface > >(),evt.Source)); if(aIter != m_aChildren.end()) { @@ -1652,9 +1652,9 @@ void SAL_CALL SbaXFormAdapter::disposing(const css::lang::EventObject& Source) if (Source.Source == m_xMainForm) dispose(); - ::std::vector< css::uno::Reference< css::form::XFormComponent > >::const_iterator aIter = ::std::find_if( m_aChildren.begin(), + std::vector< css::uno::Reference< css::form::XFormComponent > >::const_iterator aIter = std::find_if( m_aChildren.begin(), m_aChildren.end(), - ::std::bind2nd(::std::equal_to< css::uno::Reference< css::uno::XInterface > >(),Source.Source)); + std::bind2nd(std::equal_to< css::uno::Reference< css::uno::XInterface > >(),Source.Source)); if(aIter != m_aChildren.end()) removeByIndex(aIter - m_aChildren.begin()); } diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx index f8c6113a5479..dcac408abfce 100644 --- a/dbaccess/source/ui/browser/genericcontroller.cxx +++ b/dbaccess/source/ui/browser/genericcontroller.cxx @@ -78,8 +78,8 @@ using namespace ::dbtools; using namespace ::comphelper; #define ALL_FEATURES -1 -#define FIRST_USER_DEFINED_FEATURE ( ::std::numeric_limits< sal_uInt16 >::max() - 1000 ) -#define LAST_USER_DEFINED_FEATURE ( ::std::numeric_limits< sal_uInt16 >::max() ) +#define FIRST_USER_DEFINED_FEATURE ( std::numeric_limits< sal_uInt16 >::max() - 1000 ) +#define LAST_USER_DEFINED_FEATURE ( std::numeric_limits< sal_uInt16 >::max() ) typedef std::unordered_map< sal_Int16, sal_Int16 > CommandHashMap; @@ -401,7 +401,7 @@ void OGenericUnoController::attachFrame( const Reference< XFrame >& _rxFrame ) namespace { - typedef ::std::vector< Any > States; + typedef std::vector< Any > States; void lcl_notifyMultipleStates( XStatusListener& _rListener, FeatureStateEvent& _rEvent, const States& _rStates ) { @@ -503,10 +503,10 @@ void OGenericUnoController::ImplBroadcastFeatureState(const OUString& _rFeature, bool OGenericUnoController::isFeatureSupported( sal_Int32 _nId ) { - SupportedFeatures::const_iterator aFeaturePos = ::std::find_if( + SupportedFeatures::const_iterator aFeaturePos = std::find_if( m_aSupportedFeatures.begin(), m_aSupportedFeatures.end(), - ::std::bind2nd( CompareFeatureById(), _nId ) + std::bind2nd( CompareFeatureById(), _nId ) ); return ( m_aSupportedFeatures.end() != aFeaturePos && !aFeaturePos->first.isEmpty()); @@ -536,10 +536,10 @@ void OGenericUnoController::InvalidateFeature_Impl() } else { - SupportedFeatures::const_iterator aFeaturePos = ::std::find_if( + SupportedFeatures::const_iterator aFeaturePos = std::find_if( m_aSupportedFeatures.begin(), m_aSupportedFeatures.end(), - ::std::bind2nd( CompareFeatureById(), aNextFeature.nId ) + std::bind2nd( CompareFeatureById(), aNextFeature.nId ) ); #if OSL_DEBUG_LEVEL > 0 @@ -573,10 +573,10 @@ void OGenericUnoController::ImplInvalidateFeature( sal_Int32 _nId, const Referen #if OSL_DEBUG_LEVEL > 0 if ( _nId != -1 ) { - SupportedFeatures::const_iterator aFeaturePos = ::std::find_if( + SupportedFeatures::const_iterator aFeaturePos = std::find_if( m_aSupportedFeatures.begin(), m_aSupportedFeatures.end(), - ::std::bind2nd( CompareFeatureById(), _nId ) + std::bind2nd( CompareFeatureById(), _nId ) ); OSL_ENSURE( aFeaturePos != m_aSupportedFeatures.end(), "OGenericUnoController::ImplInvalidateFeature: invalidating an unsupported feature is suspicious, at least!" ); } @@ -759,9 +759,9 @@ void OGenericUnoController::removeStatusListener(const Reference< XStatusListene // now remove the listener from the deque ::osl::MutexGuard aGuard( m_aFeatureMutex ); m_aFeaturesToInvalidate.erase( - ::std::remove_if( m_aFeaturesToInvalidate.begin(), + std::remove_if( m_aFeaturesToInvalidate.begin(), m_aFeaturesToInvalidate.end(), - ::std::bind2nd(FindFeatureListener(),aListener)) + std::bind2nd(FindFeatureListener(),aListener)) ,m_aFeaturesToInvalidate.end()); } @@ -897,10 +897,10 @@ URL OGenericUnoController::getURLForId(sal_Int32 _nId) const URL aReturn; if ( m_xUrlTransformer.is() ) { - SupportedFeatures::const_iterator aIter = ::std::find_if( + SupportedFeatures::const_iterator aIter = std::find_if( m_aSupportedFeatures.begin(), m_aSupportedFeatures.end(), - ::std::bind2nd( CompareFeatureById(), _nId ) + std::bind2nd( CompareFeatureById(), _nId ) ); if ( m_aSupportedFeatures.end() != aIter && !aIter->first.isEmpty() ) @@ -1452,7 +1452,7 @@ namespace Sequence< DispatchInformation > SAL_CALL OGenericUnoController::getConfigurableDispatchInformation( ::sal_Int16 CommandGroup ) { - ::std::list< DispatchInformation > aInformationList; + std::list< DispatchInformation > aInformationList; DispatchInformation aDispatchInfo; for ( SupportedFeatures::const_iterator aIter = m_aSupportedFeatures.begin(); aIter != m_aSupportedFeatures.end(); @@ -1467,7 +1467,7 @@ Sequence< DispatchInformation > SAL_CALL OGenericUnoController::getConfigurableD } Sequence< DispatchInformation > aInformation( aInformationList.size() ); - ::std::transform( aInformationList.begin(), + std::transform( aInformationList.begin(), aInformationList.end(), aInformation.getArray(), SGI_identity< DispatchInformation >() diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index a8e8ba27dbfe..e639e8026795 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -696,7 +696,7 @@ void SbaGridHeader::PostExecuteColumnContextMenu(sal_uInt16 nColId, const PopupM if(!xField.is()) break; - ::std::vector< std::shared_ptr<OTableRow> > vClipboardList; + std::vector< std::shared_ptr<OTableRow> > vClipboardList; // send it to the clipboard vClipboardList.push_back(std::make_shared<OTableRow>(xField)); OTableRowExchange* pData = new OTableRowExchange(vClipboardList); @@ -1222,7 +1222,7 @@ void SbaGridControl::DoFieldDrag(sal_uInt16 nColumnPos, sal_Int16 nRowPos) } /// unary_function Functor object for class ZZ returntype is void - struct SbaGridControlPrec : ::std::unary_function<DataFlavorExVector::value_type,bool> + struct SbaGridControlPrec : std::unary_function<DataFlavorExVector::value_type,bool> { inline bool operator()(const DataFlavorExVector::value_type& _aType) { @@ -1326,7 +1326,7 @@ sal_Int8 SbaGridControl::AcceptDrop( const BrowserAcceptDropEvent& rEvt ) if(nAction != DND_ACTION_COPY && GetEmptyRow().is()) { const DataFlavorExVector& _rFlavors = GetDataFlavors(); - if(::std::any_of(_rFlavors.begin(),_rFlavors.end(),SbaGridControlPrec())) + if(std::any_of(_rFlavors.begin(),_rFlavors.end(),SbaGridControlPrec())) nAction = DND_ACTION_COPY; } @@ -1387,7 +1387,7 @@ sal_Int8 SbaGridControl::ExecuteDrop( const BrowserExecuteDropEvent& rEvt ) if(GetEmptyRow().is()) { const DataFlavorExVector& _rFlavors = GetDataFlavors(); - if( ::std::any_of(_rFlavors.begin(),_rFlavors.end(), SbaGridControlPrec()) ) + if( std::any_of(_rFlavors.begin(),_rFlavors.end(), SbaGridControlPrec()) ) { TransferableDataHelper aDropped( rEvt.maDropEvent.Transferable ); m_aDataDescriptor = ODataAccessObjectTransferable::extractObjectDescriptor(aDropped); diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 0282541fcf5a..0b433e3b8146 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -265,11 +265,11 @@ Sequence< Type > SAL_CALL SbaTableQueryBrowser::getTypes( ) if ( !m_aDocScriptSupport || !*m_aDocScriptSupport ) { Sequence< Type > aStrippedTypes( aTypes.getLength() - 1 ); - ::std::remove_copy_if( + std::remove_copy_if( aTypes.getConstArray(), aTypes.getConstArray() + aTypes.getLength(), aStrippedTypes.getArray(), - ::std::bind2nd( ::std::equal_to< Type >(), cppu::UnoType<XScriptInvocationContext>::get() ) + std::bind2nd( std::equal_to< Type >(), cppu::UnoType<XScriptInvocationContext>::get() ) ); aTypes = aStrippedTypes; } @@ -299,7 +299,7 @@ void SAL_CALL SbaTableQueryBrowser::disposing() clearTreeModel(); // clear the tree model { - ::std::unique_ptr<SvTreeList> aTemp(m_pTreeModel); + std::unique_ptr<SvTreeList> aTemp(m_pTreeModel); m_pTreeModel = nullptr; } @@ -387,7 +387,7 @@ bool SbaTableQueryBrowser::Construct(vcl::Window* pParent) namespace { - struct SelectValueByName : public ::std::unary_function< OUString, Any > + struct SelectValueByName : public std::unary_function< OUString, Any > { const Any& operator()( OUString const& i_name ) const { @@ -543,12 +543,12 @@ bool SbaTableQueryBrowser::InitializeForm( const Reference< XPropertySet > & i_f aPropertyValues.put( aTransferPropertie, pData->xObjectProperties->getPropertyValue( aTransferPropertie ) ); } - ::std::vector< OUString > aNames( aPropertyValues.getNames() ); - ::std::sort(aNames.begin(), aNames.end()); + std::vector< OUString > aNames( aPropertyValues.getNames() ); + std::sort(aNames.begin(), aNames.end()); Sequence< OUString > aPropNames( comphelper::containerToSequence(aNames) ); Sequence< Any > aPropValues( aNames.size() ); - ::std::transform( aNames.begin(), aNames.end(), aPropValues.getArray(), SelectValueByName( aPropertyValues ) ); + std::transform( aNames.begin(), aNames.end(), aPropValues.getArray(), SelectValueByName( aPropertyValues ) ); Reference< XMultiPropertySet > xFormMultiSet( i_formProperties, UNO_QUERY_THROW ); xFormMultiSet->setPropertyValues( aPropNames, aPropValues ); @@ -685,8 +685,8 @@ bool SbaTableQueryBrowser::InitializeGridModel(const Reference< css::form::XForm bool bFormattedIsNumeric = true; sal_Int32 nType = ::comphelper::getINT32( xColumn->getPropertyValue( PROPERTY_TYPE ) ); - ::std::vector< NamedValue > aInitialValues; - ::std::vector< OUString > aCopyProperties; + std::vector< NamedValue > aInitialValues; + std::vector< OUString > aCopyProperties; Any aDefault; switch(nType) @@ -791,14 +791,14 @@ bool SbaTableQueryBrowser::InitializeGridModel(const Reference< css::form::XForm aInitialValues.push_back( NamedValue( PROPERTY_MOUSE_WHEEL_BEHAVIOR, makeAny( MouseWheelBehavior::SCROLL_DISABLED ) ) ); // now set all those values - for ( ::std::vector< NamedValue >::const_iterator property = aInitialValues.begin(); + for ( std::vector< NamedValue >::const_iterator property = aInitialValues.begin(); property != aInitialValues.end(); ++property ) { xGridCol->setPropertyValue( property->Name, property->Value ); } - for ( ::std::vector< OUString >::const_iterator copyPropertyName = aCopyProperties.begin(); + for ( std::vector< OUString >::const_iterator copyPropertyName = aCopyProperties.begin(); copyPropertyName != aCopyProperties.end(); ++copyPropertyName ) @@ -2132,7 +2132,7 @@ void SbaTableQueryBrowser::populateTree(const Reference<XNameAccess>& _xNameAcce SvTreeListEntry* SbaTableQueryBrowser::implAppendEntry( SvTreeListEntry* _pParent, const OUString& _rName, void* _pUserData, EntryType _eEntryType ) { - ::std::unique_ptr< ImageProvider > pImageProvider( getImageProviderFor( _pParent ) ); + std::unique_ptr< ImageProvider > pImageProvider( getImageProviderFor( _pParent ) ); Image aImage; pImageProvider->getImages( _rName, getDatabaseObjectType( _eEntryType ), aImage ); @@ -3281,9 +3281,9 @@ bool SbaTableQueryBrowser::ensureConnection(SvTreeListEntry* _pAnyEntry, SharedC return ensureConnection( pDSEntry, pDSData, _rConnection ); } -::std::unique_ptr< ImageProvider > SbaTableQueryBrowser::getImageProviderFor( SvTreeListEntry* _pAnyEntry ) +std::unique_ptr< ImageProvider > SbaTableQueryBrowser::getImageProviderFor( SvTreeListEntry* _pAnyEntry ) { - ::std::unique_ptr< ImageProvider > pImageProvider( new ImageProvider ); + std::unique_ptr< ImageProvider > pImageProvider( new ImageProvider ); SharedConnection xConnection; if ( getExistentConnectionFor( _pAnyEntry, xConnection ) ) pImageProvider.reset( new ImageProvider( xConnection ) ); diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx index 48bad58c95db..f193978e52cc 100644 --- a/dbaccess/source/ui/control/FieldDescControl.cxx +++ b/dbaccess/source/ui/control/FieldDescControl.cxx @@ -253,7 +253,7 @@ namespace if (_pWindow) { long nTemp = _pWindow->GetSizePixel().Width() + _pWindow->GetPosPixel().X(); - _rnMaxXPosition = ::std::max(_rnMaxXPosition, nTemp); + _rnMaxXPosition = std::max(_rnMaxXPosition, nTemp); } } } @@ -666,7 +666,7 @@ void OFieldDescControl::ArrangeAggregates() { if (adAggregate.pctrlTextControl) { - nMaxWidth = ::std::max<long>(OutputDevice::GetTextWidth(adAggregate.pctrlTextControl->GetText()),nMaxWidth); + nMaxWidth = std::max<long>(OutputDevice::GetTextWidth(adAggregate.pctrlTextControl->GetText()),nMaxWidth); } } @@ -1135,7 +1135,7 @@ void OFieldDescControl::DisplayData(OFieldDescription* pFieldDescr ) if (pFieldType->nPrecision) { ActivateAggregate( tpLength ); - pLength->SetMax(::std::max<sal_Int32>(pFieldType->nPrecision,pFieldDescr->GetPrecision())); + pLength->SetMax(std::max<sal_Int32>(pFieldType->nPrecision,pFieldDescr->GetPrecision())); pLength->SetSpecialReadOnly(pFieldType->aCreateParams.isEmpty()); } else @@ -1144,7 +1144,7 @@ void OFieldDescControl::DisplayData(OFieldDescription* pFieldDescr ) if (pFieldType->nMaximumScale) { ActivateAggregate( tpScale ); - pScale->SetMax(::std::max<sal_Int32>(pFieldType->nMaximumScale,pFieldDescr->GetScale())); + pScale->SetMax(std::max<sal_Int32>(pFieldType->nMaximumScale,pFieldDescr->GetScale())); pScale->SetMin(pFieldType->nMinimumScale); pScale->SetSpecialReadOnly(pFieldType->aCreateParams.isEmpty() || pFieldType->aCreateParams == "PRECISION"); } @@ -1165,7 +1165,7 @@ void OFieldDescControl::DisplayData(OFieldDescription* pFieldDescr ) if (pFieldType->nPrecision) { ActivateAggregate( tpTextLen ); - pTextLen->SetMax(::std::max<sal_Int32>(pFieldType->nPrecision,pFieldDescr->GetPrecision())); + pTextLen->SetMax(std::max<sal_Int32>(pFieldType->nPrecision,pFieldDescr->GetPrecision())); pTextLen->SetSpecialReadOnly(pFieldType->aCreateParams.isEmpty()); } else diff --git a/dbaccess/source/ui/control/tabletree.cxx b/dbaccess/source/ui/control/tabletree.cxx index 39c001c39fb7..340e1b863431 100644 --- a/dbaccess/source/ui/control/tabletree.cxx +++ b/dbaccess/source/ui/control/tabletree.cxx @@ -181,7 +181,7 @@ void OTableTreeListBox::UpdateTableList( const Reference< XConnection >& _rxConn namespace { - struct OViewSetter : public ::std::unary_function< OTableTreeListBox::TNames::value_type, bool> + struct OViewSetter : public std::unary_function< OTableTreeListBox::TNames::value_type, bool> { const Sequence< OUString> m_aViews; ::comphelper::UStringMixEqual m_aEqualFunctor; @@ -193,7 +193,7 @@ namespace aRet.first = lhs; const OUString* pIter = m_aViews.getConstArray(); const OUString* pEnd = m_aViews.getConstArray() + m_aViews.getLength(); - aRet.second = ::std::any_of(pIter,pEnd,::std::bind2nd(m_aEqualFunctor,lhs)); + aRet.second = std::any_of(pIter,pEnd,std::bind2nd(m_aEqualFunctor,lhs)); return aRet; } @@ -214,7 +214,7 @@ void OTableTreeListBox::UpdateTableList( try { Reference< XDatabaseMetaData > xMeta( _rxConnection->getMetaData(), UNO_QUERY_THROW ); - ::std::transform( pIter, pEnd, + std::transform( pIter, pEnd, aTables.begin(), OViewSetter( _rViews, xMeta->supportsMixedCaseQuotedIdentifiers() ) ); } catch(Exception&) @@ -226,9 +226,9 @@ void OTableTreeListBox::UpdateTableList( namespace { - ::std::vector< OUString > lcl_getMetaDataStrings_throw( const Reference< XResultSet >& _rxMetaDataResult, sal_Int32 _nColumnIndex ) + std::vector< OUString > lcl_getMetaDataStrings_throw( const Reference< XResultSet >& _rxMetaDataResult, sal_Int32 _nColumnIndex ) { - ::std::vector< OUString > aStrings; + std::vector< OUString > aStrings; Reference< XRow > xRow( _rxMetaDataResult, UNO_QUERY_THROW ); while ( _rxMetaDataResult->next() ) aStrings.push_back( xRow->getString( _nColumnIndex ) ); @@ -254,10 +254,10 @@ void OTableTreeListBox::UpdateTableList( const Reference< XConnection >& _rxConn if (haveVirtualRoot()) { OUString sRootEntryText; - if ( ::std::none_of(_rTables.begin(),_rTables.end(), + if ( std::none_of(_rTables.begin(),_rTables.end(), [] (const TNames::value_type& name) { return !name.second; }) ) sRootEntryText = ModuleRes(STR_ALL_TABLES); - else if ( ::std::none_of(_rTables.begin(),_rTables.end(), + else if ( std::none_of(_rTables.begin(),_rTables.end(), [] (const TNames::value_type& name) { return name.second; }) ) sRootEntryText = ModuleRes(STR_ALL_VIEWS); else @@ -296,12 +296,12 @@ void OTableTreeListBox::UpdateTableList( const Reference< XConnection >& _rxConn // implAddEntry) bool bCatalogs = bSupportsCatalogs && xMeta->isCatalogAtStart(); - ::std::vector< OUString > aFolderNames( lcl_getMetaDataStrings_throw( + std::vector< OUString > aFolderNames( lcl_getMetaDataStrings_throw( bCatalogs ? xMeta->getCatalogs() : xMeta->getSchemas(), 1 ) ); sal_Int32 nFolderType = bCatalogs ? DatabaseObjectContainer::CATALOG : DatabaseObjectContainer::SCHEMA; SvTreeListEntry* pRootEntry = getAllObjectsEntry(); - for ( ::std::vector< OUString >::const_iterator folder = aFolderNames.begin(); + for ( std::vector< OUString >::const_iterator folder = aFolderNames.begin(); folder != aFolderNames.end(); ++folder ) diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx index bb0ec8c1404e..090f0cb8e287 100644 --- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx +++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx @@ -575,7 +575,7 @@ namespace dbaui INetProtocol eProtocol = aParser.GetProtocol(); - ::std::vector< OUString > aToBeCreated; // the to-be-created levels + std::vector< OUString > aToBeCreated; // the to-be-created levels // search a level which exists IS_PATH_EXIST eParentExists = PATH_NOT_EXIST; @@ -615,7 +615,7 @@ namespace dbaui Sequence< Any > aNewDirectoryAttributes(1); // loop - for ( ::std::vector< OUString >::const_reverse_iterator aLocalName = aToBeCreated.rbegin(); + for ( std::vector< OUString >::const_reverse_iterator aLocalName = aToBeCreated.rbegin(); aLocalName != aToBeCreated.rend(); ++aLocalName ) @@ -634,14 +634,14 @@ namespace dbaui return true; } - void OConnectionHelper::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OConnectionHelper::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFT_Connection)); _rControlList.push_back(new ODisableWrapper<PushButton>(m_pPB_Connection)); _rControlList.push_back(new ODisableWrapper<PushButton>(m_pPB_CreateDB)); } - void OConnectionHelper::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OConnectionHelper::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back( new OSaveValueWrapper<Edit>( m_pConnectionURL ) ); } diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.hxx b/dbaccess/source/ui/dlg/ConnectionHelper.hxx index f8b6ac1a87e5..d4d2355c57da 100644 --- a/dbaccess/source/ui/dlg/ConnectionHelper.hxx +++ b/dbaccess/source/ui/dlg/ConnectionHelper.hxx @@ -57,9 +57,9 @@ namespace dbaui virtual bool PreNotify( NotifyEvent& _rNEvt ) override; // <method>OGenericAdministrationPage::fillControls</method> - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; // <method>OGenericAdministrationPage::fillWindows</method> - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; // setting/retrieving the current connection URL diff --git a/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx b/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx index edad0abe55ea..9741273014f5 100644 --- a/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx +++ b/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx @@ -98,12 +98,12 @@ using namespace ::com::sun::star; return bDoEnable; } - void OTextConnectionPageSetup::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OTextConnectionPageSetup::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { OConnectionTabPageSetup::fillControls(_rControlList); m_pTextConnectionHelper->fillControls(_rControlList); } - void OTextConnectionPageSetup::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OTextConnectionPageSetup::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { OConnectionTabPageSetup::fillWindows(_rControlList); m_pTextConnectionHelper->fillWindows(_rControlList); @@ -198,14 +198,14 @@ using namespace ::com::sun::star; fillBool(*_rSet,m_pCBUseSSL,DSID_CONN_LDAP_USESSL,bChangedSomething); return bChangedSomething; } - void OLDAPConnectionPageSetup::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OLDAPConnectionPageSetup::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new OSaveValueWrapper<Edit>(m_pETHostServer)); _rControlList.push_back(new OSaveValueWrapper<Edit>(m_pETBaseDN)); _rControlList.push_back(new OSaveValueWrapper<NumericField>(m_pNFPortNumber)); _rControlList.push_back(new OSaveValueWrapper<CheckBox>(m_pCBUseSSL)); } - void OLDAPConnectionPageSetup::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OLDAPConnectionPageSetup::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTHelpText)); _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTHostServer)); @@ -293,11 +293,11 @@ using namespace ::com::sun::star; m_pJDBCDatabase->Check(); } - void OMySQLIntroPageSetup::fillControls(::std::vector< ISaveValueWrapper* >& /*_rControlList*/) + void OMySQLIntroPageSetup::fillControls(std::vector< ISaveValueWrapper* >& /*_rControlList*/) { } - void OMySQLIntroPageSetup::fillWindows(::std::vector< ISaveValueWrapper* >& /*_rControlList*/) + void OMySQLIntroPageSetup::fillWindows(std::vector< ISaveValueWrapper* >& /*_rControlList*/) { } @@ -345,12 +345,12 @@ using namespace ::com::sun::star; return VclPtr<MySQLNativeSetupPage>::Create( pParent, _rAttrSet ); } - void MySQLNativeSetupPage::fillControls( ::std::vector< ISaveValueWrapper* >& _rControlList ) + void MySQLNativeSetupPage::fillControls( std::vector< ISaveValueWrapper* >& _rControlList ) { m_aMySQLSettings->fillControls( _rControlList ); } - void MySQLNativeSetupPage::fillWindows( ::std::vector< ISaveValueWrapper* >& _rControlList ) + void MySQLNativeSetupPage::fillWindows( std::vector< ISaveValueWrapper* >& _rControlList ) { _rControlList.push_back( new ODisableWrapper< FixedText >( m_pHelpText ) ); m_aMySQLSettings->fillWindows( _rControlList ); @@ -466,14 +466,14 @@ using namespace ::com::sun::star; STR_ORACLE_DRIVERCLASSTEXT); } - void OGeneralSpecialJDBCConnectionPageSetup::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OGeneralSpecialJDBCConnectionPageSetup::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new OSaveValueWrapper<Edit>(m_pETDatabasename)); _rControlList.push_back(new OSaveValueWrapper<Edit>(m_pETDriverClass)); _rControlList.push_back(new OSaveValueWrapper<Edit>(m_pETHostname)); _rControlList.push_back(new OSaveValueWrapper<NumericField>(m_pNFPortNumber)); } - void OGeneralSpecialJDBCConnectionPageSetup::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OGeneralSpecialJDBCConnectionPageSetup::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTHelpText)); _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTDatabasename)); @@ -597,12 +597,12 @@ using namespace ::com::sun::star; OConnectionTabPageSetup::dispose(); } - void OJDBCConnectionPageSetup::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OJDBCConnectionPageSetup::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new OSaveValueWrapper<Edit>(m_pETDriverClass)); } - void OJDBCConnectionPageSetup::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OJDBCConnectionPageSetup::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTDriverClass)); } @@ -711,11 +711,11 @@ using namespace ::com::sun::star; OConnectionTabPageSetup::dispose(); } - void OSpreadSheetConnectionPageSetup::fillWindows(::std::vector< ISaveValueWrapper* >& /*_rControlList*/) + void OSpreadSheetConnectionPageSetup::fillWindows(std::vector< ISaveValueWrapper* >& /*_rControlList*/) { } - void OSpreadSheetConnectionPageSetup::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OSpreadSheetConnectionPageSetup::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { OConnectionTabPageSetup::fillControls(_rControlList); _rControlList.push_back(new OSaveValueWrapper<CheckBox>(m_pPasswordrequired)); @@ -765,14 +765,14 @@ using namespace ::com::sun::star; OGenericAdministrationPage::dispose(); } - void OAuthentificationPageSetup::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OAuthentificationPageSetup::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTHelpText)); _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTUserName)); _rControlList.push_back(new ODisableWrapper<PushButton>(m_pPBTestConnection)); } - void OAuthentificationPageSetup::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OAuthentificationPageSetup::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new OSaveValueWrapper<Edit>(m_pETUserName)); _rControlList.push_back(new OSaveValueWrapper<CheckBox>(m_pCBPasswordRequired)); @@ -863,7 +863,7 @@ using namespace ::com::sun::star; return m_pCBStartTableWizard->IsChecked() && m_pCBStartTableWizard->IsEnabled(); } - void OFinalDBPageSetup::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OFinalDBPageSetup::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTFinalHeader)); _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTFinalHelpText)); @@ -871,7 +871,7 @@ using namespace ::com::sun::star; _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTFinalText)); } - void OFinalDBPageSetup::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OFinalDBPageSetup::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new OSaveValueWrapper<CheckBox>(m_pCBOpenAfterwards)); _rControlList.push_back(new OSaveValueWrapper<CheckBox>(m_pCBStartTableWizard)); diff --git a/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx b/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx index cbdb3e273e4e..4e4a223a452a 100644 --- a/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx +++ b/dbaccess/source/ui/dlg/DBSetupConnectionPages.hxx @@ -48,8 +48,8 @@ namespace dbaui protected: VclPtr<CheckBox> m_pPasswordrequired; - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; }; // OTextConnectionPage @@ -66,8 +66,8 @@ namespace dbaui protected: virtual bool prepareLeave() override; virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; bool checkTestConnection() override; private: @@ -87,8 +87,8 @@ namespace dbaui protected: virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; private: VclPtr<FixedText> m_pFTHelpText; @@ -117,8 +117,8 @@ namespace dbaui static VclPtr<OGenericAdministrationPage> Create( vcl::Window* pParent, const SfxItemSet& _rAttrSet ); protected: - virtual void fillControls( ::std::vector< ISaveValueWrapper* >& _rControlList ) override; - virtual void fillWindows( ::std::vector< ISaveValueWrapper* >& _rControlList ) override; + virtual void fillControls( std::vector< ISaveValueWrapper* >& _rControlList ) override; + virtual void fillWindows( std::vector< ISaveValueWrapper* >& _rControlList ) override; virtual bool FillItemSet( SfxItemSet* _rCoreAttrs ) override; virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; @@ -145,8 +145,8 @@ namespace dbaui protected: virtual bool FillItemSet( SfxItemSet* _rCoreAttrs ) override; virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; virtual void callModifiedHdl(void* pControl = nullptr) override; DECL_LINK(OnTestJavaClickHdl, Button*, void); @@ -182,8 +182,8 @@ namespace dbaui virtual bool FillItemSet( SfxItemSet* _rCoreAttrs ) override; virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; DECL_LINK(OnTestJavaClickHdl, Button*, void); DECL_LINK(OnEditModified, Edit&, void); @@ -214,8 +214,8 @@ namespace dbaui protected: virtual bool FillItemSet(SfxItemSet* _rSet) override; virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; private: VclPtr<RadioButton> m_pODBCDatabase; @@ -246,8 +246,8 @@ namespace dbaui protected: virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; }; // OFinalDBPageSetup @@ -277,8 +277,8 @@ namespace dbaui DECL_LINK(OnOpenSelected, Button*, void); protected: virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; }; } // namespace dbaui diff --git a/dbaccess/source/ui/dlg/DbAdminImpl.cxx b/dbaccess/source/ui/dlg/DbAdminImpl.cxx index 357b7e23fc20..a192a99daf06 100644 --- a/dbaccess/source/ui/dlg/DbAdminImpl.cxx +++ b/dbaccess/source/ui/dlg/DbAdminImpl.cxx @@ -217,7 +217,7 @@ bool ODbDataSourceAdministrationHelper::getCurrentSettings(Sequence< PropertyVal if (!m_pItemSetHelper->getOutputSet()) return false; - ::std::vector< PropertyValue > aReturn; + std::vector< PropertyValue > aReturn; // collecting this in a vector because it has a push_back, in opposite to sequences // user: DSID_USER -> "user" @@ -348,9 +348,9 @@ void ODbDataSourceAdministrationHelper::clearPassword() m_pItemSetHelper->getWriteOutputSet()->ClearItem(DSID_PASSWORD); } -::std::pair< Reference<XConnection>,sal_Bool> ODbDataSourceAdministrationHelper::createConnection() +std::pair< Reference<XConnection>,sal_Bool> ODbDataSourceAdministrationHelper::createConnection() { - ::std::pair< Reference<XConnection>,sal_Bool> aRet; + std::pair< Reference<XConnection>,sal_Bool> aRet; aRet.second = false; Sequence< PropertyValue > aConnectionParams; if ( getCurrentSettings(aConnectionParams) ) @@ -709,14 +709,14 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS // first determine which of all the items are relevant for the data source (depends on the connection url) OUString eType = getDatasourceType(_rSource); - ::std::vector< sal_Int32> aDetailIds; + std::vector< sal_Int32> aDetailIds; ODriversSettings::getSupportedIndirectSettings(eType, getORB(), aDetailIds); // collect the translated property values for the relevant items PropertyValueSet aRelevantSettings; MapInt2String::const_iterator aTranslation; - ::std::vector< sal_Int32>::const_iterator aDetailsEnd = aDetailIds.end(); - for (::std::vector< sal_Int32>::const_iterator aIter = aDetailIds.begin();aIter != aDetailsEnd ; ++aIter) + std::vector< sal_Int32>::const_iterator aDetailsEnd = aDetailIds.end(); + for (std::vector< sal_Int32>::const_iterator aIter = aDetailIds.begin();aIter != aDetailsEnd ; ++aIter) { const SfxPoolItem* pCurrent = _rSource.GetItem((sal_uInt16)*aIter); aTranslation = m_aIndirectPropTranslator.find(*aIter); @@ -771,13 +771,13 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS // for this, we need a string-controlled quick access to m_aIndirectPropTranslator StringSet aIndirectProps; - ::std::transform(m_aIndirectPropTranslator.begin(), + std::transform(m_aIndirectPropTranslator.begin(), m_aIndirectPropTranslator.end(), - ::std::insert_iterator<StringSet>(aIndirectProps,aIndirectProps.begin()), + std::insert_iterator<StringSet>(aIndirectProps,aIndirectProps.begin()), ::o3tl::select2nd< MapInt2String::value_type >()); // now check the to-be-preserved props - ::std::vector< sal_Int32 > aRemoveIndexes; + std::vector< sal_Int32 > aRemoveIndexes; sal_Int32 nPositionCorrector = 0; MapInt2String::const_iterator aPreservedEnd = aPreservedSettings.end(); for ( MapInt2String::const_iterator aPreserved = aPreservedSettings.begin(); @@ -792,8 +792,8 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS } } // now finally remove all such props - ::std::vector< sal_Int32 >::const_iterator aRemoveEnd = aRemoveIndexes.end(); - for ( ::std::vector< sal_Int32 >::const_iterator aRemoveIndex = aRemoveIndexes.begin(); + std::vector< sal_Int32 >::const_iterator aRemoveEnd = aRemoveIndexes.end(); + for ( std::vector< sal_Int32 >::const_iterator aRemoveIndex = aRemoveIndexes.begin(); aRemoveIndex != aRemoveEnd; ++aRemoveIndex ) diff --git a/dbaccess/source/ui/dlg/DbAdminImpl.hxx b/dbaccess/source/ui/dlg/DbAdminImpl.hxx index 7d6e90882e73..e3ddd58d59d1 100644 --- a/dbaccess/source/ui/dlg/DbAdminImpl.hxx +++ b/dbaccess/source/ui/dlg/DbAdminImpl.hxx @@ -64,7 +64,7 @@ namespace dbaui css::uno::Reference< css::frame::XModel > m_xModel; css::uno::Any m_aDataSourceOrName; - typedef ::std::set< OUString > StringSet; + typedef std::set< OUString > StringSet; typedef StringSet::const_iterator ConstStringSetIterator; MapInt2String m_aDirectPropTranslator; /// translating property id's into names (direct properties of a data source) @@ -94,7 +94,7 @@ namespace dbaui /** creates a new connection. The caller is responsible to dispose it !!!! */ - ::std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection(); + std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection(); /** return the corresponding driver for the selected URL */ diff --git a/dbaccess/source/ui/dlg/DriverSettings.cxx b/dbaccess/source/ui/dlg/DriverSettings.cxx index 315d759e03e4..b553697a88f0 100644 --- a/dbaccess/source/ui/dlg/DriverSettings.cxx +++ b/dbaccess/source/ui/dlg/DriverSettings.cxx @@ -30,7 +30,7 @@ using ::com::sun::star::uno::Sequence; using ::com::sun::star::beans::NamedValue; using namespace dbaui; -void ODriversSettings::getSupportedIndirectSettings( const OUString& _sURLPrefix,const css::uno::Reference< css::uno::XComponentContext >& _xContext, ::std::vector< sal_Int32>& _out_rDetailsIds ) +void ODriversSettings::getSupportedIndirectSettings( const OUString& _sURLPrefix,const css::uno::Reference< css::uno::XComponentContext >& _xContext, std::vector< sal_Int32>& _out_rDetailsIds ) { // for a number of settings, we do not need to use hard-coded here, but can ask a // central DataSourceUI instance. @@ -67,7 +67,7 @@ void ODriversSettings::getSupportedIndirectSettings( const OUString& _sURLPrefix } } #endif - typedef ::std::pair<sal_uInt16, OUString> TProperties; + typedef std::pair<sal_uInt16, OUString> TProperties; TProperties aProps[] = { TProperties(DSID_SHOWDELETEDROWS,OUString("ShowDeleted")) ,TProperties(DSID_CHARSET,OUString("CharSet")) ,TProperties(DSID_FIELDDELIMITER,OUString("FieldDelimiter")) diff --git a/dbaccess/source/ui/dlg/DriverSettings.hxx b/dbaccess/source/ui/dlg/DriverSettings.hxx index bb021857f951..7698927927f7 100644 --- a/dbaccess/source/ui/dlg/DriverSettings.hxx +++ b/dbaccess/source/ui/dlg/DriverSettings.hxx @@ -41,7 +41,7 @@ namespace dbaui @param _out_rDetailsIds Will be filled. */ - static void getSupportedIndirectSettings( const OUString& _sURLPrefix,const css::uno::Reference< css::uno::XComponentContext >& _xContext,::std::vector< sal_Int32>& _out_rDetailsIds ); + static void getSupportedIndirectSettings( const OUString& _sURLPrefix,const css::uno::Reference< css::uno::XComponentContext >& _xContext,std::vector< sal_Int32>& _out_rDetailsIds ); /** Creates the detail page for ado */ diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx index 184a2c7c3245..6e8316400133 100644 --- a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx +++ b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx @@ -181,7 +181,7 @@ namespace dbaui m_aGetExtensionHandler.Call(this); } - void OTextConnectionHelper::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OTextConnectionHelper::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new OSaveValueWrapper<ComboBox>(m_pFieldSeparator)); _rControlList.push_back(new OSaveValueWrapper<ComboBox>(m_pTextSeparator)); @@ -191,7 +191,7 @@ namespace dbaui _rControlList.push_back(new OSaveValueWrapper<ListBox>(m_pCharSet)); } - void OTextConnectionHelper::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OTextConnectionHelper::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFieldSeparatorLabel)); _rControlList.push_back(new ODisableWrapper<FixedText>(m_pTextSeparatorLabel)); diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx index 473df12b6fcb..0f33c0f23c4c 100644 --- a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx +++ b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx @@ -86,8 +86,8 @@ namespace dbaui public: void implInitControls(const SfxItemSet& _rSet, bool _bValid); - void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList); - void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList); + void fillControls(std::vector< ISaveValueWrapper* >& _rControlList); + void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList); void SetClickHandler(const Link<OTextConnectionHelper*, void>& _rHandler) { m_aGetExtensionHandler = _rHandler; } OUString GetExtension(); bool FillItemSet( SfxItemSet& rSet, const bool bChangedSomething ); diff --git a/dbaccess/source/ui/dlg/UserAdmin.cxx b/dbaccess/source/ui/dlg/UserAdmin.cxx index ce481b0c6ed8..7fc0ec9f483f 100644 --- a/dbaccess/source/ui/dlg/UserAdmin.cxx +++ b/dbaccess/source/ui/dlg/UserAdmin.cxx @@ -287,11 +287,11 @@ OUString OUserAdmin::GetUser() return m_pUSER->GetSelectEntry(); } -void OUserAdmin::fillControls(::std::vector< ISaveValueWrapper* >& /*_rControlList*/) +void OUserAdmin::fillControls(std::vector< ISaveValueWrapper* >& /*_rControlList*/) { } -void OUserAdmin::fillWindows(::std::vector< ISaveValueWrapper* >& /*_rControlList*/) +void OUserAdmin::fillWindows(std::vector< ISaveValueWrapper* >& /*_rControlList*/) { } diff --git a/dbaccess/source/ui/dlg/UserAdmin.hxx b/dbaccess/source/ui/dlg/UserAdmin.hxx index 80c536b5714e..480a5616bfda 100644 --- a/dbaccess/source/ui/dlg/UserAdmin.hxx +++ b/dbaccess/source/ui/dlg/UserAdmin.hxx @@ -72,10 +72,10 @@ public: virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; // <method>OGenericAdministrationPage::fillControls</method> - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; // <method>OGenericAdministrationPage::fillWindows</method> - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; }; } #endif // INCLUDED_DBACCESS_SOURCE_UI_DLG_USERADMIN_HXX diff --git a/dbaccess/source/ui/dlg/UserAdminDlg.cxx b/dbaccess/source/ui/dlg/UserAdminDlg.cxx index 47d9f13bad92..fe2e86a95967 100644 --- a/dbaccess/source/ui/dlg/UserAdminDlg.cxx +++ b/dbaccess/source/ui/dlg/UserAdminDlg.cxx @@ -139,14 +139,14 @@ namespace dbaui { return m_pItemSet; } - ::std::pair< Reference<XConnection>,sal_Bool> OUserAdminDlg::createConnection() + std::pair< Reference<XConnection>,sal_Bool> OUserAdminDlg::createConnection() { if ( !m_xConnection.is() ) { m_xConnection = m_pImpl->createConnection().first; m_bOwnConnection = m_xConnection.is(); } - return ::std::pair< Reference<XConnection>,sal_Bool> (m_xConnection,false); + return std::pair< Reference<XConnection>,sal_Bool> (m_xConnection,false); } Reference< XComponentContext > OUserAdminDlg::getORB() const { diff --git a/dbaccess/source/ui/dlg/admincontrols.cxx b/dbaccess/source/ui/dlg/admincontrols.cxx index 6fa310360a1b..082d45b810e7 100644 --- a/dbaccess/source/ui/dlg/admincontrols.cxx +++ b/dbaccess/source/ui/dlg/admincontrols.cxx @@ -201,7 +201,7 @@ namespace dbaui TabPage::dispose(); } - void MySQLNativeSettings::fillControls( ::std::vector< ISaveValueWrapper* >& _rControlList ) + void MySQLNativeSettings::fillControls( std::vector< ISaveValueWrapper* >& _rControlList ) { _rControlList.push_back( new OSaveValueWrapper< Edit >( m_pDatabaseName ) ); _rControlList.push_back( new OSaveValueWrapper< Edit >( m_pHostName ) ); @@ -210,7 +210,7 @@ namespace dbaui _rControlList.push_back( new OSaveValueWrapper< Edit >( m_pNamedPipe ) ); } - void MySQLNativeSettings::fillWindows( ::std::vector< ISaveValueWrapper* >& _rControlList ) + void MySQLNativeSettings::fillWindows( std::vector< ISaveValueWrapper* >& _rControlList ) { _rControlList.push_back( new ODisableWrapper< FixedText >( m_pDatabaseNameLabel ) ); _rControlList.push_back( new ODisableWrapper< FixedText >( m_pHostNameLabel ) ); diff --git a/dbaccess/source/ui/dlg/admincontrols.hxx b/dbaccess/source/ui/dlg/admincontrols.hxx index fcd9cd32b9b9..4e7618cfa84c 100644 --- a/dbaccess/source/ui/dlg/admincontrols.hxx +++ b/dbaccess/source/ui/dlg/admincontrols.hxx @@ -57,8 +57,8 @@ namespace dbaui MySQLNativeSettings( vcl::Window& _rParent, const Link<void*,void>& _rControlModificationLink ); virtual ~MySQLNativeSettings() override; virtual void dispose() override; - void fillControls( ::std::vector< ISaveValueWrapper* >& _rControlList ); - void fillWindows( ::std::vector< ISaveValueWrapper* >& _rControlList ); + void fillControls( std::vector< ISaveValueWrapper* >& _rControlList ); + void fillWindows( std::vector< ISaveValueWrapper* >& _rControlList ); bool FillItemSet( SfxItemSet* _rCoreAttrs ); void implInitControls( const SfxItemSet& _rSet ); diff --git a/dbaccess/source/ui/dlg/adminpages.cxx b/dbaccess/source/ui/dlg/adminpages.cxx index bd7c6b6a3ec5..ec0ab9518dc9 100644 --- a/dbaccess/source/ui/dlg/adminpages.cxx +++ b/dbaccess/source/ui/dlg/adminpages.cxx @@ -151,7 +151,7 @@ namespace dbaui bool bValid, bReadonly; getFlags(_rSet, bValid, bReadonly); - ::std::vector< ISaveValueWrapper* > aControlList; + std::vector< ISaveValueWrapper* > aControlList; if ( _bSaveValue ) { fillControls(aControlList); @@ -240,7 +240,7 @@ namespace dbaui bool bShowMessage = true; try { - ::std::pair< Reference<XConnection>,sal_Bool> aConnectionPair = m_pAdminDialog->createConnection(); + std::pair< Reference<XConnection>,sal_Bool> aConnectionPair = m_pAdminDialog->createConnection(); bShowMessage = aConnectionPair.second; bSuccess = aConnectionPair.first.is(); ::comphelper::disposeComponent(aConnectionPair.first); diff --git a/dbaccess/source/ui/dlg/adminpages.hxx b/dbaccess/source/ui/dlg/adminpages.hxx index 7684fd1c545f..fd2e66c68bd9 100644 --- a/dbaccess/source/ui/dlg/adminpages.hxx +++ b/dbaccess/source/ui/dlg/adminpages.hxx @@ -154,14 +154,14 @@ namespace dbaui The list must be filled with the controls. It is not allowed to clear the list before pusching data into it. */ - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) = 0; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) = 0; /** will be called inside <method>implInitControls</method> to disable if necessary @param _rControlList The list must be filled with the controls. It is not allowed to clear the list before pusching data into it. */ - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) = 0; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) = 0; public: /** fills the Boolean value into the item set when the value changed. diff --git a/dbaccess/source/ui/dlg/adtabdlg.cxx b/dbaccess/source/ui/dlg/adtabdlg.cxx index 997091e06cbb..8cbd1198bcb3 100644 --- a/dbaccess/source/ui/dlg/adtabdlg.cxx +++ b/dbaccess/source/ui/dlg/adtabdlg.cxx @@ -183,13 +183,13 @@ void TableListFacade::updateTableObjectList( bool _bAllowViews ) { const OUString* pTableBegin = sTables.getConstArray(); const OUString* pTableEnd = pTableBegin + sTables.getLength(); - ::std::vector< OUString > aTables(pTableBegin,pTableEnd); + std::vector< OUString > aTables(pTableBegin,pTableEnd); const OUString* pViewBegin = sViews.getConstArray(); const OUString* pViewEnd = pViewBegin + sViews.getLength(); ::comphelper::UStringMixEqual aEqualFunctor; for(;pViewBegin != pViewEnd;++pViewBegin) - aTables.erase(::std::remove_if(aTables.begin(),aTables.end(),::std::bind2nd(aEqualFunctor,*pViewBegin)),aTables.end()); + aTables.erase(std::remove_if(aTables.begin(),aTables.end(),std::bind2nd(aEqualFunctor,*pViewBegin)),aTables.end()); sTables = Sequence< OUString>(aTables.data(), aTables.size()); sViews = Sequence< OUString>(); } diff --git a/dbaccess/source/ui/dlg/advancedsettings.cxx b/dbaccess/source/ui/dlg/advancedsettings.cxx index 27e0a5db8261..4a809983887c 100644 --- a/dbaccess/source/ui/dlg/advancedsettings.cxx +++ b/dbaccess/source/ui/dlg/advancedsettings.cxx @@ -200,7 +200,7 @@ namespace dbaui } } - void SpecialSettingsPage::fillWindows( ::std::vector< ISaveValueWrapper* >& _rControlList ) + void SpecialSettingsPage::fillWindows( std::vector< ISaveValueWrapper* >& _rControlList ) { if ( m_bHasBooleanComparisonMode ) { @@ -212,7 +212,7 @@ namespace dbaui } } - void SpecialSettingsPage::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void SpecialSettingsPage::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { for ( BooleanSettingDescs::const_iterator setting = m_aBooleanSettings.begin(); setting != m_aBooleanSettings.end(); @@ -364,12 +364,12 @@ namespace dbaui OGenericAdministrationPage::dispose(); } - void GeneratedValuesPage::fillWindows( ::std::vector< ISaveValueWrapper* >& _rControlList ) + void GeneratedValuesPage::fillWindows( std::vector< ISaveValueWrapper* >& _rControlList ) { _rControlList.push_back( new ODisableWrapper< VclFrame >( m_pAutoFrame ) ); } - void GeneratedValuesPage::fillControls( ::std::vector< ISaveValueWrapper* >& _rControlList ) + void GeneratedValuesPage::fillControls( std::vector< ISaveValueWrapper* >& _rControlList ) { _rControlList.push_back( new OSaveValueWrapper< CheckBox >( m_pAutoRetrievingEnabled ) ); _rControlList.push_back( new OSaveValueWrapper< Edit >( m_pAutoIncrement ) ); @@ -503,7 +503,7 @@ namespace dbaui return m_pExampleSet; } - ::std::pair< Reference< XConnection >, sal_Bool > AdvancedSettingsDialog::createConnection() + std::pair< Reference< XConnection >, sal_Bool > AdvancedSettingsDialog::createConnection() { return m_pImpl->createConnection(); } diff --git a/dbaccess/source/ui/dlg/advancedsettings.hxx b/dbaccess/source/ui/dlg/advancedsettings.hxx index f7c80977352d..a30cfc805aa7 100644 --- a/dbaccess/source/ui/dlg/advancedsettings.hxx +++ b/dbaccess/source/ui/dlg/advancedsettings.hxx @@ -33,7 +33,7 @@ namespace dbaui { struct BooleanSettingDesc; - typedef ::std::vector< BooleanSettingDesc > BooleanSettingDescs; + typedef std::vector< BooleanSettingDesc > BooleanSettingDescs; // SpecialSettingsPage // implements the "Special Settings" page of the advanced database settings @@ -84,10 +84,10 @@ namespace dbaui virtual void implInitControls (const SfxItemSet& _rSet, bool _bSaveValue ) override; // <method>OGenericAdministrationPage::fillControls</method> - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; // <method>OGenericAdministrationPage::fillWindows</method> - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; private: void impl_initBooleanSettings(); @@ -123,10 +123,10 @@ namespace dbaui virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; // <method>OGenericAdministrationPage::fillControls</method> - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; // <method>OGenericAdministrationPage::fillWindows</method> - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; }; } diff --git a/dbaccess/source/ui/dlg/dbadmin.cxx b/dbaccess/source/ui/dlg/dbadmin.cxx index 8a7d4879d17b..bbf994354a42 100644 --- a/dbaccess/source/ui/dlg/dbadmin.cxx +++ b/dbaccess/source/ui/dlg/dbadmin.cxx @@ -270,7 +270,7 @@ SfxItemSet* ODbAdminDialog::getWriteOutputSet() return m_pExampleSet; } -::std::pair< Reference<XConnection>,sal_Bool> ODbAdminDialog::createConnection() +std::pair< Reference<XConnection>,sal_Bool> ODbAdminDialog::createConnection() { return m_pImpl->createConnection(); } diff --git a/dbaccess/source/ui/dlg/dbfindex.cxx b/dbaccess/source/ui/dlg/dbfindex.cxx index 18dce51c1dbd..79f10f3ca6fa 100644 --- a/dbaccess/source/ui/dlg/dbfindex.cxx +++ b/dbaccess/source/ui/dlg/dbfindex.cxx @@ -300,7 +300,7 @@ void ODbaseIndexDialog::Init() OUString aIndexExt("ndx"); OUString aTableExt("dbf"); - ::std::vector< OUString > aUsedIndexes; + std::vector< OUString > aUsedIndexes; const OUString *pBegin = aFolderContent.getConstArray(); const OUString *pEnd = pBegin + aFolderContent.getLength(); @@ -353,7 +353,7 @@ void ODbaseIndexDialog::Init() } } - for ( ::std::vector< OUString >::const_iterator aUsedIndex = aUsedIndexes.begin(); + for ( std::vector< OUString >::const_iterator aUsedIndex = aUsedIndexes.begin(); aUsedIndex != aUsedIndexes.end(); ++aUsedIndex ) diff --git a/dbaccess/source/ui/dlg/dbfindex.hxx b/dbaccess/source/ui/dlg/dbfindex.hxx index d1fa3a04f0cb..0f90c5b5ce14 100644 --- a/dbaccess/source/ui/dlg/dbfindex.hxx +++ b/dbaccess/source/ui/dlg/dbfindex.hxx @@ -46,7 +46,7 @@ public: const OUString& GetIndexFileName() const { return aIndexFileName; } }; -typedef ::std::list< OTableIndex > TableIndexList; +typedef std::list< OTableIndex > TableIndexList; // OTableInfo class ODbaseIndexDialog; @@ -65,7 +65,7 @@ public: void WriteInfFile( const OUString& rDSN ) const; }; -typedef ::std::list< OTableInfo > TableInfoList; +typedef std::list< OTableInfo > TableInfoList; // IndexDialog class ODbaseIndexDialog : public ModalDialog diff --git a/dbaccess/source/ui/dlg/dbwiz.cxx b/dbaccess/source/ui/dlg/dbwiz.cxx index 669a607c669a..be43ef07a322 100644 --- a/dbaccess/source/ui/dlg/dbwiz.cxx +++ b/dbaccess/source/ui/dlg/dbwiz.cxx @@ -202,7 +202,7 @@ SfxItemSet* ODbTypeWizDialog::getWriteOutputSet() return m_pOutSet; } -::std::pair< Reference<XConnection>,sal_Bool> ODbTypeWizDialog::createConnection() +std::pair< Reference<XConnection>,sal_Bool> ODbTypeWizDialog::createConnection() { return m_pImpl->createConnection(); } diff --git a/dbaccess/source/ui/dlg/dbwizsetup.cxx b/dbaccess/source/ui/dlg/dbwizsetup.cxx index 910a0950b3bf..bf1b7c98c2fd 100644 --- a/dbaccess/source/ui/dlg/dbwizsetup.cxx +++ b/dbaccess/source/ui/dlg/dbwizsetup.cxx @@ -400,7 +400,7 @@ SfxItemSet* ODbTypeWizDialogSetup::getWriteOutputSet() return m_pOutSet; } -::std::pair< Reference<XConnection>,sal_Bool> ODbTypeWizDialogSetup::createConnection() +std::pair< Reference<XConnection>,sal_Bool> ODbTypeWizDialogSetup::createConnection() { return m_pImpl->createConnection(); } diff --git a/dbaccess/source/ui/dlg/detailpages.cxx b/dbaccess/source/ui/dlg/detailpages.cxx index 66209cf6f443..6cdc6efde692 100644 --- a/dbaccess/source/ui/dlg/detailpages.cxx +++ b/dbaccess/source/ui/dlg/detailpages.cxx @@ -118,7 +118,7 @@ namespace dbaui OGenericAdministrationPage::dispose(); } - void OCommonBehaviourTabPage::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OCommonBehaviourTabPage::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { if (m_nControlFlags & OCommonBehaviourTabPageFlags::UseOptions) { @@ -130,7 +130,7 @@ namespace dbaui _rControlList.push_back(new ODisableWrapper<FixedText>(m_pCharsetLabel)); } } - void OCommonBehaviourTabPage::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OCommonBehaviourTabPage::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { if (m_nControlFlags & OCommonBehaviourTabPageFlags::UseOptions) _rControlList.push_back(new OSaveValueWrapper<Edit>(m_pOptions)); @@ -362,14 +362,14 @@ namespace dbaui return bChangedSomething; } - void OUserDriverDetailsPage::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OUserDriverDetailsPage::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { OCommonBehaviourTabPage::fillControls(_rControlList); _rControlList.push_back(new OSaveValueWrapper<Edit>(m_pEDHostname)); _rControlList.push_back(new OSaveValueWrapper<CheckBox>(m_pUseCatalog)); _rControlList.push_back(new OSaveValueWrapper<NumericField>(m_pNFPortNumber)); } - void OUserDriverDetailsPage::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OUserDriverDetailsPage::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { OCommonBehaviourTabPage::fillWindows(_rControlList); _rControlList.push_back(new ODisableWrapper<FixedText>(m_pFTHostname)); @@ -586,7 +586,7 @@ namespace dbaui OCommonBehaviourTabPage::dispose(); } - void MySQLNativePage::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void MySQLNativePage::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { OCommonBehaviourTabPage::fillControls( _rControlList ); m_aMySQLSettings->fillControls( _rControlList ); @@ -594,7 +594,7 @@ namespace dbaui _rControlList.push_back(new OSaveValueWrapper<Edit>(m_pUserName)); _rControlList.push_back(new OSaveValueWrapper<CheckBox>(m_pPasswordRequired)); } - void MySQLNativePage::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void MySQLNativePage::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { OCommonBehaviourTabPage::fillWindows( _rControlList ); m_aMySQLSettings->fillWindows( _rControlList); @@ -768,13 +768,13 @@ namespace dbaui { return VclPtr<OTextDetailsPage>::Create( pParent, *_rAttrSet ); } - void OTextDetailsPage::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OTextDetailsPage::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { OCommonBehaviourTabPage::fillControls(_rControlList); m_pTextConnectionHelper->fillControls(_rControlList); } - void OTextDetailsPage::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OTextDetailsPage::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { OCommonBehaviourTabPage::fillWindows(_rControlList); m_pTextConnectionHelper->fillWindows(_rControlList); diff --git a/dbaccess/source/ui/dlg/detailpages.hxx b/dbaccess/source/ui/dlg/detailpages.hxx index bbc53088c6bf..d6db15724cfc 100644 --- a/dbaccess/source/ui/dlg/detailpages.hxx +++ b/dbaccess/source/ui/dlg/detailpages.hxx @@ -82,10 +82,10 @@ namespace dbaui virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; // <method>OGenericAdministrationPage::fillControls</method> - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; // <method>OGenericAdministrationPage::fillWindows</method> - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; private: DECL_LINK(CharsetSelectHdl, ListBox&, void); }; @@ -146,8 +146,8 @@ namespace dbaui virtual void dispose() override; protected: virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; private: VclPtr<FixedText> m_pFTHostname; VclPtr<Edit> m_pEDHostname; @@ -218,8 +218,8 @@ namespace dbaui protected: virtual bool FillItemSet( SfxItemSet* _rCoreAttrs ) override; virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; }; // OOdbcDetailsPage @@ -259,8 +259,8 @@ namespace dbaui virtual bool prepareLeave() override; virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; private: }; diff --git a/dbaccess/source/ui/dlg/dsselect.hxx b/dbaccess/source/ui/dlg/dsselect.hxx index 0de46b163af3..a2ad2b40c2d5 100644 --- a/dbaccess/source/ui/dlg/dsselect.hxx +++ b/dbaccess/source/ui/dlg/dsselect.hxx @@ -46,7 +46,7 @@ protected: VclPtr<CancelButton> m_pCancel; #ifdef HAVE_ODBC_ADMINISTRATION VclPtr<PushButton> m_pManageDatasources; - ::std::unique_ptr< OOdbcManagement > + std::unique_ptr< OOdbcManagement > m_pODBCManagement; #endif diff --git a/dbaccess/source/ui/dlg/generalpage.cxx b/dbaccess/source/ui/dlg/generalpage.cxx index cdd0bc258557..54d93741a1b0 100644 --- a/dbaccess/source/ui/dlg/generalpage.cxx +++ b/dbaccess/source/ui/dlg/generalpage.cxx @@ -94,9 +94,9 @@ namespace dbaui DisplayedType( const OUString& _eType, const OUString& _rDisplayName ) : eType( _eType ), sDisplayName( _rDisplayName ) { } }; - typedef ::std::vector< DisplayedType > DisplayedTypes; + typedef std::vector< DisplayedType > DisplayedTypes; - struct DisplayedTypeLess : ::std::binary_function< DisplayedType, DisplayedType, bool > + struct DisplayedTypeLess : std::binary_function< DisplayedType, DisplayedType, bool > { bool operator() ( const DisplayedType& _rLHS, const DisplayedType& _rRHS ) { @@ -133,7 +133,7 @@ namespace dbaui } } } - ::std::sort( aDisplayedTypes.begin(), aDisplayedTypes.end(), DisplayedTypeLess() ); + std::sort( aDisplayedTypes.begin(), aDisplayedTypes.end(), DisplayedTypeLess() ); DisplayedTypes::const_iterator aDisplayEnd = aDisplayedTypes.end(); for ( DisplayedTypes::const_iterator loop = aDisplayedTypes.begin(); loop != aDisplayEnd; @@ -172,7 +172,7 @@ namespace dbaui } } } - ::std::sort( aDisplayedTypes.begin(), aDisplayedTypes.end(), DisplayedTypeLess() ); + std::sort( aDisplayedTypes.begin(), aDisplayedTypes.end(), DisplayedTypeLess() ); DisplayedTypes::const_iterator aDisplayEnd = aDisplayedTypes.end(); for ( DisplayedTypes::const_iterator loop = aDisplayedTypes.begin(); loop != aDisplayEnd; @@ -377,12 +377,12 @@ namespace dbaui m_aEmbeddedURLPrefixes[nPos] = _sType; } - void OGeneralPage::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OGeneralPage::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back( new ODisableWrapper<FixedText>( m_pSpecialMessage ) ); } - void OGeneralPage::fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) + void OGeneralPage::fillControls(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back( new OSaveValueWrapper<ListBox>( m_pDatasourceType ) ); } diff --git a/dbaccess/source/ui/dlg/generalpage.hxx b/dbaccess/source/ui/dlg/generalpage.hxx index b7a5246dd6f4..7f3628a9eb1c 100644 --- a/dbaccess/source/ui/dlg/generalpage.hxx +++ b/dbaccess/source/ui/dlg/generalpage.hxx @@ -61,7 +61,7 @@ namespace dbaui ::dbaccess::ODsnTypeCollection* m_pCollection; /// the DSN type collection instance - ::std::vector< OUString> + std::vector< OUString> m_aURLPrefixes; public: @@ -83,9 +83,9 @@ namespace dbaui virtual bool approveDatasourceType( ::dbaccess::DATASOURCE_TYPE eType, OUString& _inout_rDisplayName ); // <method>OGenericAdministrationPage::fillControls</method> - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; // <method>OGenericAdministrationPage::fillWindows</method> - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; void onTypeSelected(const OUString& _sURLPrefix); void initializeTypeList(); @@ -178,7 +178,7 @@ namespace dbaui virtual OUString getDatasourceName( const SfxItemSet& _rSet ) override; virtual bool approveDatasourceType( ::dbaccess::DATASOURCE_TYPE eType, OUString& _inout_rDisplayName ) override; - ::std::vector< OUString> + std::vector< OUString> m_aEmbeddedURLPrefixes; OUString getEmbeddedDBName( const SfxItemSet& _rSet ); diff --git a/dbaccess/source/ui/dlg/odbcconfig.hxx b/dbaccess/source/ui/dlg/odbcconfig.hxx index 04af12d08ab6..41e9806522f6 100644 --- a/dbaccess/source/ui/dlg/odbcconfig.hxx +++ b/dbaccess/source/ui/dlg/odbcconfig.hxx @@ -88,7 +88,7 @@ protected: class ProcessTerminationWait; class OOdbcManagement { - ::std::unique_ptr< ProcessTerminationWait > m_pProcessWait; + std::unique_ptr< ProcessTerminationWait > m_pProcessWait; Link<void*,void> m_aAsyncFinishCallback; public: diff --git a/dbaccess/source/ui/dlg/sqlmessage.cxx b/dbaccess/source/ui/dlg/sqlmessage.cxx index 1933c916e500..8cd2ee05a6c8 100644 --- a/dbaccess/source/ui/dlg/sqlmessage.cxx +++ b/dbaccess/source/ui/dlg/sqlmessage.cxx @@ -186,7 +186,7 @@ namespace ); } - typedef ::std::vector< ExceptionDisplayInfo > ExceptionDisplayChain; + typedef std::vector< ExceptionDisplayInfo > ExceptionDisplayChain; /// strips the [OOoBase] vendor identifier from the given error message, if applicable OUString lcl_stripOOoBaseVendor( const OUString& _rErrorMessage ) diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx index 365716964d6c..e1d15840ba59 100644 --- a/dbaccess/source/ui/dlg/tablespage.cxx +++ b/dbaccess/source/ui/dlg/tablespage.cxx @@ -566,11 +566,11 @@ namespace dbaui return true; } - void OTableSubscriptionPage::fillControls(::std::vector< ISaveValueWrapper* >& /*_rControlList*/) + void OTableSubscriptionPage::fillControls(std::vector< ISaveValueWrapper* >& /*_rControlList*/) { } - void OTableSubscriptionPage::fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) + void OTableSubscriptionPage::fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) { _rControlList.push_back(new ODisableWrapper<VclContainer>(m_pTables)); } diff --git a/dbaccess/source/ui/dlg/tablespage.hxx b/dbaccess/source/ui/dlg/tablespage.hxx index 001248ed203a..2e1bdaa25301 100644 --- a/dbaccess/source/ui/dlg/tablespage.hxx +++ b/dbaccess/source/ui/dlg/tablespage.hxx @@ -61,8 +61,8 @@ namespace dbaui virtual void dispose() override; protected: - virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) override; - virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillControls(std::vector< ISaveValueWrapper* >& _rControlList) override; + virtual void fillWindows(std::vector< ISaveValueWrapper* >& _rControlList) override; DECL_LINK( OnTreeEntryCompare, const SvSortData&, sal_Int32 ); DECL_LINK( OnTreeEntryChecked, void*, void ); diff --git a/dbaccess/source/ui/inc/ColumnControlWindow.hxx b/dbaccess/source/ui/inc/ColumnControlWindow.hxx index 7c7f63a12e4e..1b6d4a5fd8a8 100644 --- a/dbaccess/source/ui/inc/ColumnControlWindow.hxx +++ b/dbaccess/source/ui/inc/ColumnControlWindow.hxx @@ -35,7 +35,7 @@ namespace dbaui mutable css::uno::Reference< css::util::XNumberFormatter > m_xFormatter; // a number formatter working with the connection's NumberFormatsSupplier OTypeInfoMap m_aDestTypeInfo; - ::std::vector<OTypeInfoMap::iterator> m_aDestTypeInfoIndex; + std::vector<OTypeInfoMap::iterator> m_aDestTypeInfoIndex; mutable TOTypeInfoSP m_pTypeInfo; // default type OUString m_sTypeNames; // these type names are the ones out of the resource file diff --git a/dbaccess/source/ui/inc/ConnectionLineData.hxx b/dbaccess/source/ui/inc/ConnectionLineData.hxx index 9717c6014878..821c3b063147 100644 --- a/dbaccess/source/ui/inc/ConnectionLineData.hxx +++ b/dbaccess/source/ui/inc/ConnectionLineData.hxx @@ -75,7 +75,7 @@ namespace dbaui }; typedef ::rtl::Reference< OConnectionLineData > OConnectionLineDataRef; - typedef ::std::vector< OConnectionLineDataRef > OConnectionLineDataVec; + typedef std::vector< OConnectionLineDataRef > OConnectionLineDataVec; } #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_CONNECTIONLINEDATA_HXX diff --git a/dbaccess/source/ui/inc/DExport.hxx b/dbaccess/source/ui/inc/DExport.hxx index fccfa99d9c58..a06a1aebcef4 100644 --- a/dbaccess/source/ui/inc/DExport.hxx +++ b/dbaccess/source/ui/inc/DExport.hxx @@ -60,14 +60,14 @@ namespace dbaui { public: typedef std::map<OUString, OFieldDescription*, ::comphelper::UStringMixLess> TColumns; - typedef ::std::vector<TColumns::const_iterator> TColumnVector; - typedef ::std::vector< ::std::pair<sal_Int32,sal_Int32> > TPositions; + typedef std::vector<TColumns::const_iterator> TColumnVector; + typedef std::vector< std::pair<sal_Int32,sal_Int32> > TPositions; protected: TPositions m_vColumns; ///< columns to be used - ::std::vector<sal_Int32> m_vColumnTypes; ///< ColumnTypes for faster access - ::std::vector<sal_Int32> m_vColumnSize; - ::std::vector<sal_Int16> m_vNumberFormat; + std::vector<sal_Int32> m_vColumnTypes; ///< ColumnTypes for faster access + std::vector<sal_Int32> m_vColumnSize; + std::vector<sal_Int16> m_vNumberFormat; css::lang::Locale m_aLocale; TColumns m_aDestColumns; ///< container for new created columns diff --git a/dbaccess/source/ui/inc/IItemSetHelper.hxx b/dbaccess/source/ui/inc/IItemSetHelper.hxx index 9cc898b1f8e5..e8685b42a911 100644 --- a/dbaccess/source/ui/inc/IItemSetHelper.hxx +++ b/dbaccess/source/ui/inc/IItemSetHelper.hxx @@ -51,7 +51,7 @@ namespace dbaui { public: virtual css::uno::Reference< css::uno::XComponentContext > getORB() const = 0; - virtual ::std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() = 0; + virtual std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() = 0; virtual css::uno::Reference< css::sdbc::XDriver > getDriver() = 0; virtual OUString getDatasourceType(const SfxItemSet& _rSet) const = 0; virtual void clearPassword() = 0; diff --git a/dbaccess/source/ui/inc/JoinController.hxx b/dbaccess/source/ui/inc/JoinController.hxx index 15cabf9cd9fc..41da7156e667 100644 --- a/dbaccess/source/ui/inc/JoinController.hxx +++ b/dbaccess/source/ui/inc/JoinController.hxx @@ -51,7 +51,7 @@ namespace dbaui ::dbtools::SQLExceptionInfo m_aExceptionInfo; VclPtr<OAddTableDlg> m_pAddTableDialog; - ::std::unique_ptr< AddTableDialogContext > m_pDialogContext; + std::unique_ptr< AddTableDialogContext > m_pDialogContext; Point m_aMinimumTableViewSize; // state of a feature. 'feature' may be the handle of a css::util::URL somebody requested a dispatch interface for OR a toolbar slot. diff --git a/dbaccess/source/ui/inc/JoinTableView.hxx b/dbaccess/source/ui/inc/JoinTableView.hxx index 343f703a4d19..5ecceca3577f 100644 --- a/dbaccess/source/ui/inc/JoinTableView.hxx +++ b/dbaccess/source/ui/inc/JoinTableView.hxx @@ -85,7 +85,7 @@ namespace dbaui private: OTableWindowMap m_aTableMap; - ::std::vector<VclPtr<OTableConnection> > m_vTableConnection; + std::vector<VclPtr<OTableConnection> > m_vTableConnection; Idle m_aDragScrollIdle; Rectangle m_aDragRect; @@ -181,7 +181,7 @@ namespace dbaui /** gives a read only access to the connection vector */ - const ::std::vector<VclPtr<OTableConnection> >& getTableConnections() const { return m_vTableConnection; } + const std::vector<VclPtr<OTableConnection> >& getTableConnections() const { return m_vTableConnection; } bool ExistsAConn(const OTableWindow* pFromWin) const; @@ -190,7 +190,7 @@ namespace dbaui @param _pFromWin the table for which connections should be found @return an iterator which can be used to travel all connections of the table */ - ::std::vector<VclPtr<OTableConnection> >::const_iterator getTableConnections(const OTableWindow* _pFromWin) const; + std::vector<VclPtr<OTableConnection> >::const_iterator getTableConnections(const OTableWindow* _pFromWin) const; /** how many connection belongs to single table diff --git a/dbaccess/source/ui/inc/RelationController.hxx b/dbaccess/source/ui/inc/RelationController.hxx index 5f56b3d50212..5d999197a6d7 100644 --- a/dbaccess/source/ui/inc/RelationController.hxx +++ b/dbaccess/source/ui/inc/RelationController.hxx @@ -29,7 +29,7 @@ namespace dbaui class ORelationController : public OJoinController { css::uno::Reference< css::container::XNameAccess > m_xTables; - ::std::unique_ptr<WaitObject> m_pWaitObject; + std::unique_ptr<WaitObject> m_pWaitObject; sal_uLong m_nThreadEvent; bool m_bRelationsPossible; protected: diff --git a/dbaccess/source/ui/inc/RtfReader.hxx b/dbaccess/source/ui/inc/RtfReader.hxx index 61ad0883df9a..50f9f3387a49 100644 --- a/dbaccess/source/ui/inc/RtfReader.hxx +++ b/dbaccess/source/ui/inc/RtfReader.hxx @@ -29,7 +29,7 @@ namespace dbaui { class ORTFReader : public SvRTFParser , public ODatabaseExport { - ::std::vector<sal_Int32> m_vecColor; + std::vector<sal_Int32> m_vecColor; protected: virtual bool CreateTable(int nToken) override; diff --git a/dbaccess/source/ui/inc/TableConnection.hxx b/dbaccess/source/ui/inc/TableConnection.hxx index 4cf945f64764..e7cb02228dac 100644 --- a/dbaccess/source/ui/inc/TableConnection.hxx +++ b/dbaccess/source/ui/inc/TableConnection.hxx @@ -37,7 +37,7 @@ namespace dbaui class OTableConnection : public vcl::Window { - ::std::vector<OConnectionLine*> m_vConnLine; + std::vector<OConnectionLine*> m_vConnLine; TTableConnectionData::value_type m_pData; VclPtr<OJoinTableView> m_pParent; @@ -89,7 +89,7 @@ namespace dbaui Rectangle GetBoundingRect() const; const TTableConnectionData::value_type& GetData() const { return m_pData; } - const ::std::vector<OConnectionLine*>& GetConnLineList() const { return m_vConnLine; } + const std::vector<OConnectionLine*>& GetConnLineList() const { return m_vConnLine; } inline OJoinTableView* GetParent() const { return m_pParent; } virtual void Draw(vcl::RenderContext& rRenderContext, const Rectangle& rRect); using Window::Draw; diff --git a/dbaccess/source/ui/inc/TableConnectionData.hxx b/dbaccess/source/ui/inc/TableConnectionData.hxx index 99a4ddcdad78..af5e4abba866 100644 --- a/dbaccess/source/ui/inc/TableConnectionData.hxx +++ b/dbaccess/source/ui/inc/TableConnectionData.hxx @@ -98,7 +98,7 @@ namespace dbaui virtual bool Update(){ return true; } }; - typedef ::std::vector< ::std::shared_ptr<OTableConnectionData> > TTableConnectionData; + typedef std::vector< std::shared_ptr<OTableConnectionData> > TTableConnectionData; } #endif diff --git a/dbaccess/source/ui/inc/TableController.hxx b/dbaccess/source/ui/inc/TableController.hxx index bd543443a38d..a6a4b60a22e0 100644 --- a/dbaccess/source/ui/inc/TableController.hxx +++ b/dbaccess/source/ui/inc/TableController.hxx @@ -39,9 +39,9 @@ namespace dbaui { private: OModuleClient m_aModuleClient; - ::std::vector< std::shared_ptr<OTableRow> > m_vRowList; + std::vector< std::shared_ptr<OTableRow> > m_vRowList; OTypeInfoMap m_aTypeInfo; - ::std::vector<OTypeInfoMap::iterator> m_aTypeInfoIndex; + std::vector<OTypeInfoMap::iterator> m_aTypeInfoIndex; css::uno::Reference< css::beans::XPropertySet > m_xTable; @@ -99,7 +99,7 @@ namespace dbaui virtual void impl_onModifyChanged() override; - inline ::std::vector< std::shared_ptr<OTableRow> >& getRows() { return m_vRowList; } + inline std::vector< std::shared_ptr<OTableRow> >& getRows() { return m_vRowList; } /// returns the position of the first empty row sal_Int32 getFirstEmptyRowPosition(); diff --git a/dbaccess/source/ui/inc/TableCopyHelper.hxx b/dbaccess/source/ui/inc/TableCopyHelper.hxx index 1a3c00a47f27..970a08603e36 100644 --- a/dbaccess/source/ui/inc/TableCopyHelper.hxx +++ b/dbaccess/source/ui/inc/TableCopyHelper.hxx @@ -33,7 +33,7 @@ namespace dbaui { class OGenericUnoController; /// unary_function Functor object for class DataFlavorExVector::value_type returntype is bool - struct TAppSupportedSotFunctor : ::std::unary_function<DataFlavorExVector::value_type,bool> + struct TAppSupportedSotFunctor : std::unary_function<DataFlavorExVector::value_type,bool> { ElementType eEntryType; TAppSupportedSotFunctor(const ElementType& _eEntryType) diff --git a/dbaccess/source/ui/inc/TableFieldDescription.hxx b/dbaccess/source/ui/inc/TableFieldDescription.hxx index f701f4b1519e..dc5700cae5d1 100644 --- a/dbaccess/source/ui/inc/TableFieldDescription.hxx +++ b/dbaccess/source/ui/inc/TableFieldDescription.hxx @@ -41,7 +41,7 @@ namespace dbaui class OTableFieldDesc : public ::salhelper::SimpleReferenceObject { private: - ::std::vector< OUString > + std::vector< OUString > m_aCriteria; OUString m_aTableName; @@ -118,15 +118,15 @@ namespace dbaui bool HasCriteria() const { - ::std::vector< OUString>::const_iterator aIter = m_aCriteria.begin(); - ::std::vector< OUString>::const_iterator aEnd = m_aCriteria.end(); + std::vector< OUString>::const_iterator aIter = m_aCriteria.begin(); + std::vector< OUString>::const_iterator aEnd = m_aCriteria.end(); for(;aIter != aEnd;++aIter) if(!aIter->isEmpty()) break; return aIter != aEnd; } - const ::std::vector< OUString>& GetCriteria() const { return m_aCriteria; } + const std::vector< OUString>& GetCriteria() const { return m_aCriteria; } void Load( const css::beans::PropertyValue& i_rSettings, const bool i_bIncludingCriteria ); void Save( ::comphelper::NamedValueCollection& o_rSettings, const bool i_bIncludingCriteria ); @@ -144,7 +144,7 @@ namespace dbaui } typedef ::rtl::Reference< OTableFieldDesc> OTableFieldDescRef; - typedef ::std::vector<OTableFieldDescRef> OTableFields; + typedef std::vector<OTableFieldDescRef> OTableFields; } #endif diff --git a/dbaccess/source/ui/inc/TableRowExchange.hxx b/dbaccess/source/ui/inc/TableRowExchange.hxx index ea931d189385..ee86c291cdad 100644 --- a/dbaccess/source/ui/inc/TableRowExchange.hxx +++ b/dbaccess/source/ui/inc/TableRowExchange.hxx @@ -28,9 +28,9 @@ namespace dbaui class OTableRow; class OTableRowExchange : public TransferableHelper { - ::std::vector< std::shared_ptr<OTableRow> > m_vTableRow; + std::vector< std::shared_ptr<OTableRow> > m_vTableRow; public: - OTableRowExchange(const ::std::vector< std::shared_ptr<OTableRow> >& _rvTableRow); + OTableRowExchange(const std::vector< std::shared_ptr<OTableRow> >& _rvTableRow); protected: virtual void AddSupportedFormats() override; virtual bool GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) override; diff --git a/dbaccess/source/ui/inc/TableWindow.hxx b/dbaccess/source/ui/inc/TableWindow.hxx index 082ac7085992..9ac631897b97 100644 --- a/dbaccess/source/ui/inc/TableWindow.hxx +++ b/dbaccess/source/ui/inc/TableWindow.hxx @@ -186,7 +186,7 @@ namespace dbaui // do I have connections to the outside? bool ExistsAConn() const; - void EnumValidFields(::std::vector< OUString>& arrstrFields); + void EnumValidFields(std::vector< OUString>& arrstrFields); /** clears the listbox inside. Must be called be the dtor is called. */ diff --git a/dbaccess/source/ui/inc/TableWindowData.hxx b/dbaccess/source/ui/inc/TableWindowData.hxx index 382df250e725..968c4657790f 100644 --- a/dbaccess/source/ui/inc/TableWindowData.hxx +++ b/dbaccess/source/ui/inc/TableWindowData.hxx @@ -90,7 +90,7 @@ namespace dbaui virtual void _disposing( const css::lang::EventObject& _rSource ) override; }; - typedef ::std::vector< std::shared_ptr<OTableWindowData> > TTableWindowData; + typedef std::vector< std::shared_ptr<OTableWindowData> > TTableWindowData; } #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_TABLEWINDOWDATA_HXX diff --git a/dbaccess/source/ui/inc/TablesSingleDlg.hxx b/dbaccess/source/ui/inc/TablesSingleDlg.hxx index de5082fde84c..5d029fd7977c 100644 --- a/dbaccess/source/ui/inc/TablesSingleDlg.hxx +++ b/dbaccess/source/ui/inc/TablesSingleDlg.hxx @@ -42,7 +42,7 @@ class ODbDataSourceAdministrationHelper; // OTableSubscriptionDialog class OTableSubscriptionDialog : public SfxSingleTabDialog, public IItemSetHelper { - ::std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; + std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; bool m_bStopExecution; // set when the dialog should not be executed SfxItemSet* m_pOutSet; diff --git a/dbaccess/source/ui/inc/TokenWriter.hxx b/dbaccess/source/ui/inc/TokenWriter.hxx index d97d3a84d2ea..120125be6c89 100644 --- a/dbaccess/source/ui/inc/TokenWriter.hxx +++ b/dbaccess/source/ui/inc/TokenWriter.hxx @@ -189,8 +189,8 @@ namespace dbaui class ORowSetImportExport : public ODatabaseImportExport { OModuleClient m_aModuleClient; - ::std::vector<sal_Int32> m_aColumnMapping; - ::std::vector<sal_Int32> m_aColumnTypes; + std::vector<sal_Int32> m_aColumnMapping; + std::vector<sal_Int32> m_aColumnTypes; css::uno::Reference< css::sdbc::XResultSetUpdate > m_xTargetResultSetUpdate; css::uno::Reference< css::sdbc::XRowUpdate > m_xTargetRowUpdate; css::uno::Reference< css::sdbc::XResultSetMetaData > m_xTargetResultSetMetaData; diff --git a/dbaccess/source/ui/inc/TypeInfo.hxx b/dbaccess/source/ui/inc/TypeInfo.hxx index 9f29f2617e77..66eb7df7d712 100644 --- a/dbaccess/source/ui/inc/TypeInfo.hxx +++ b/dbaccess/source/ui/inc/TypeInfo.hxx @@ -105,7 +105,7 @@ const sal_uInt16 TYPE_BIT = 31; }; typedef std::shared_ptr<OTypeInfo> TOTypeInfoSP; - typedef ::std::multimap<sal_Int32,TOTypeInfoSP> OTypeInfoMap; + typedef std::multimap<sal_Int32,TOTypeInfoSP> OTypeInfoMap; /** return the most suitable typeinfo for a requested type @param _rTypeInfo contains a map of type to typeinfo @param _nType the requested type diff --git a/dbaccess/source/ui/inc/UITools.hxx b/dbaccess/source/ui/inc/UITools.hxx index 18a6c2dbf1c5..e16e8de0c0c0 100644 --- a/dbaccess/source/ui/inc/UITools.hxx +++ b/dbaccess/source/ui/inc/UITools.hxx @@ -121,7 +121,7 @@ namespace dbaui void fillTypeInfo( const css::uno::Reference< css::sdbc::XConnection>& _rxConnection, const OUString& _rsTypeNames, OTypeInfoMap& _rTypeInfoMap, - ::std::vector<OTypeInfoMap::iterator>& _rTypeInfoIters); + std::vector<OTypeInfoMap::iterator>& _rTypeInfoIters); /** fill a column with data of a field description @param _rxColumn the column which should be filled diff --git a/dbaccess/source/ui/inc/UserAdminDlg.hxx b/dbaccess/source/ui/inc/UserAdminDlg.hxx index 3c13172a4692..81cafa3360b2 100644 --- a/dbaccess/source/ui/inc/UserAdminDlg.hxx +++ b/dbaccess/source/ui/inc/UserAdminDlg.hxx @@ -46,7 +46,7 @@ namespace dbaui class OUserAdminDlg : public SfxTabDialog, public IItemSetHelper, public IDatabaseSettingsDialog,public dbaui::OModuleClient { OModuleClient m_aModuleClient; - ::std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; + std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; SfxItemSet* m_pItemSet; css::uno::Reference< css::sdbc::XConnection> m_xConnection; bool m_bOwnConnection; @@ -69,7 +69,7 @@ namespace dbaui // forwards to ODbDataSourceAdministrationHelper virtual css::uno::Reference< css::uno::XComponentContext > getORB() const override; - virtual ::std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() override; + virtual std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() override; virtual css::uno::Reference< css::sdbc::XDriver > getDriver() override; virtual OUString getDatasourceType(const SfxItemSet& _rSet) const override; virtual void clearPassword() override; diff --git a/dbaccess/source/ui/inc/WColumnSelect.hxx b/dbaccess/source/ui/inc/WColumnSelect.hxx index df829da3633a..9f08c6ca19de 100644 --- a/dbaccess/source/ui/inc/WColumnSelect.hxx +++ b/dbaccess/source/ui/inc/WColumnSelect.hxx @@ -47,11 +47,11 @@ namespace dbaui static void clearListBox(ListBox& _rListBox); static void fillColumns( ListBox* pRight, - ::std::vector< OUString> &_rRightColumns); + std::vector< OUString> &_rRightColumns); void createNewColumn( ListBox* _pListbox, OFieldDescription* _pSrcField, - ::std::vector< OUString>& _rRightColumns, + std::vector< OUString>& _rRightColumns, const OUString& _sColumnName, const OUString& _sExtraChars, sal_Int32 _nMaxNameLen, @@ -59,7 +59,7 @@ namespace dbaui void moveColumn( ListBox* _pRight, ListBox* _pLeft, - ::std::vector< OUString>& _rRightColumns, + std::vector< OUString>& _rRightColumns, const OUString& _sColumnName, const OUString& _sExtraChars, sal_Int32 _nMaxNameLen, diff --git a/dbaccess/source/ui/inc/WCopyTable.hxx b/dbaccess/source/ui/inc/WCopyTable.hxx index 6d2488a658c9..f8042af896e9 100644 --- a/dbaccess/source/ui/inc/WCopyTable.hxx +++ b/dbaccess/source/ui/inc/WCopyTable.hxx @@ -45,7 +45,7 @@ namespace dbaui { - typedef ::std::unary_function< OUString,bool> TColumnFindFunctorType; + typedef std::unary_function< OUString,bool> TColumnFindFunctorType; class TColumnFindFunctor : public TColumnFindFunctorType { public: @@ -75,9 +75,9 @@ namespace dbaui class TMultiListBoxEntryFindFunctor : public TColumnFindFunctor { ::comphelper::UStringMixEqual m_aCase; - ::std::vector< OUString>* m_pVector; + std::vector< OUString>* m_pVector; public: - TMultiListBoxEntryFindFunctor(::std::vector< OUString>* _pVector, + TMultiListBoxEntryFindFunctor(std::vector< OUString>* _pVector, const ::comphelper::UStringMixEqual& _aCase) :m_aCase(_aCase) ,m_pVector(_pVector) @@ -88,8 +88,8 @@ namespace dbaui bool operator()(const OUString& _sColumnName) const override { - return ::std::any_of(m_pVector->begin(),m_pVector->end(), - ::std::bind2nd(m_aCase, _sColumnName)); + return std::any_of(m_pVector->begin(),m_pVector->end(), + std::bind2nd(m_aCase, _sColumnName)); } }; @@ -183,7 +183,7 @@ namespace dbaui OUString m_sTableCatalog; OUString m_sTableSchema; OUString m_sTableBareName; - ::std::vector< OFieldDescription > m_aColumnInfo; + std::vector< OFieldDescription > m_aColumnInfo; ::utl::SharedUNOComponent< css::sdbc::XPreparedStatement > m_xStatement; public: @@ -246,13 +246,13 @@ namespace dbaui VclPtr<PushButton> m_pbFinish; OTypeInfoMap m_aTypeInfo; - ::std::vector<OTypeInfoMap::iterator> m_aTypeInfoIndex; + std::vector<OTypeInfoMap::iterator> m_aTypeInfoIndex; OTypeInfoMap m_aDestTypeInfo; - ::std::vector<OTypeInfoMap::iterator> m_aDestTypeInfoIndex; + std::vector<OTypeInfoMap::iterator> m_aDestTypeInfoIndex; TNameMapping m_mNameMapping; ODatabaseExport::TPositions m_vColumnPos; - ::std::vector<sal_Int32> m_vColumnTypes; + std::vector<sal_Int32> m_vColumnTypes; css::uno::Reference< css::sdbc::XConnection > m_xDestConnection; @@ -334,7 +334,7 @@ namespace dbaui // returns a vector where the position of a column and if the column is in the selection // when not the value is COLUMN_POSITION_NOT_FOUND == (sal_uInt32)-1 const ODatabaseExport::TPositions& GetColumnPositions() const { return m_vColumnPos; } - const ::std::vector<sal_Int32>& GetColumnTypes() const { return m_vColumnTypes; } + const std::vector<sal_Int32>& GetColumnTypes() const { return m_vColumnTypes; } bool UseHeaderLine() const { return m_bUseHeaderLine; } void setUseHeaderLine(bool _bUseHeaderLine) { m_bUseHeaderLine = _bUseHeaderLine; } diff --git a/dbaccess/source/ui/inc/advancedsettingsdlg.hxx b/dbaccess/source/ui/inc/advancedsettingsdlg.hxx index 2674cb4f9069..3e94b4f41cb1 100644 --- a/dbaccess/source/ui/inc/advancedsettingsdlg.hxx +++ b/dbaccess/source/ui/inc/advancedsettingsdlg.hxx @@ -39,7 +39,7 @@ namespace dbaui ,public IDatabaseSettingsDialog { OModuleClient m_aModuleClient; - ::std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; + std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; protected: virtual void PageCreated(sal_uInt16 _nId, SfxTabPage& _rPage) override; @@ -63,7 +63,7 @@ namespace dbaui // forwards to ODbDataSourceAdministrationHelper virtual css::uno::Reference< css::uno::XComponentContext > getORB() const override; - virtual ::std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() override; + virtual std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() override; virtual css::uno::Reference< css::sdbc::XDriver > getDriver() override; virtual OUString getDatasourceType(const SfxItemSet& _rSet) const override; virtual void clearPassword() override; diff --git a/dbaccess/source/ui/inc/dbadmin.hxx b/dbaccess/source/ui/inc/dbadmin.hxx index 64fe97afc2c1..1ccc6053caf8 100644 --- a/dbaccess/source/ui/inc/dbadmin.hxx +++ b/dbaccess/source/ui/inc/dbadmin.hxx @@ -48,10 +48,10 @@ class ODbDataSourceAdministrationHelper; class ODbAdminDialog : public SfxTabDialog , public IItemSetHelper, public IDatabaseSettingsDialog { private: - typedef ::std::stack< sal_Int32 > PageStack; + typedef std::stack< sal_Int32 > PageStack; PageStack m_aCurrentDetailPages; // ids of all currently enabled (type-dependent) detail pages - ::std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; + std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; bool m_bApplied : 1; /// sal_True if any changes have been applied while the dialog was executing bool m_bUIEnabled : 1; /// <TRUE/> if the UI is enabled, false otherwise. Cannot be switched back to <TRUE/>, once it is <FALSE/> @@ -88,7 +88,7 @@ public: // forwards to ODbDataSourceAdministrationHelper virtual css::uno::Reference< css::uno::XComponentContext > getORB() const override; - virtual ::std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() override; + virtual std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() override; virtual css::uno::Reference< css::sdbc::XDriver > getDriver() override; virtual OUString getDatasourceType(const SfxItemSet& _rSet) const override; virtual void clearPassword() override; diff --git a/dbaccess/source/ui/inc/dbwiz.hxx b/dbaccess/source/ui/inc/dbwiz.hxx index eb5e6eb53aba..956158f40e3f 100644 --- a/dbaccess/source/ui/inc/dbwiz.hxx +++ b/dbaccess/source/ui/inc/dbwiz.hxx @@ -56,7 +56,7 @@ class ODbTypeWizDialog : public svt::OWizardMachine , public IItemSetHelper, pub { private: OModuleClient m_aModuleClient; - ::std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; + std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; SfxItemSet* m_pOutSet; ::dbaccess::ODsnTypeCollection* m_pCollection; /// the DSN type collection instance @@ -79,7 +79,7 @@ public: // forwards to ODbDataSourceAdministrationHelper virtual css::uno::Reference< css::uno::XComponentContext > getORB() const override; - virtual ::std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() override; + virtual std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() override; virtual css::uno::Reference< css::sdbc::XDriver > getDriver() override; virtual OUString getDatasourceType(const SfxItemSet& _rSet) const override; virtual void clearPassword() override; diff --git a/dbaccess/source/ui/inc/dbwizsetup.hxx b/dbaccess/source/ui/inc/dbwizsetup.hxx index 103b26299cf2..18cdcb9891c7 100644 --- a/dbaccess/source/ui/inc/dbwizsetup.hxx +++ b/dbaccess/source/ui/inc/dbwizsetup.hxx @@ -61,7 +61,7 @@ class ODbTypeWizDialogSetup : public svt::RoadmapWizard , public IItemSetHelper, private: OModuleClient m_aModuleClient; - ::std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; + std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl; SfxItemSet* m_pOutSet; OUString m_sURL; OUString m_sOldURL; @@ -106,7 +106,7 @@ public: // forwards to ODbDataSourceAdministrationHelper virtual css::uno::Reference< css::uno::XComponentContext > getORB() const override; - virtual ::std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() override; + virtual std::pair< css::uno::Reference< css::sdbc::XConnection >,sal_Bool> createConnection() override; virtual css::uno::Reference< css::sdbc::XDriver > getDriver() override; virtual OUString getDatasourceType(const SfxItemSet& _rSet) const override; virtual void clearPassword() override; diff --git a/dbaccess/source/ui/inc/directsql.hxx b/dbaccess/source/ui/inc/directsql.hxx index 9e6d74e62dd7..21c2f083cb10 100644 --- a/dbaccess/source/ui/inc/directsql.hxx +++ b/dbaccess/source/ui/inc/directsql.hxx @@ -57,7 +57,7 @@ namespace dbaui VclPtr<VclMultiLineEdit> m_pOutput; VclPtr<PushButton> m_pClose; - typedef ::std::deque< OUString > StringQueue; + typedef std::deque< OUString > StringQueue; StringQueue m_aStatementHistory; // previous statements StringQueue m_aNormalizedHistory; // previous statements, normalized to be used in the list box diff --git a/dbaccess/source/ui/inc/dsmeta.hxx b/dbaccess/source/ui/inc/dsmeta.hxx index d7e62e5345bb..9f88e0f7eb1a 100644 --- a/dbaccess/source/ui/inc/dsmeta.hxx +++ b/dbaccess/source/ui/inc/dsmeta.hxx @@ -74,7 +74,7 @@ namespace dbaui class FeatureSet { public: - typedef ::std::set< ItemID >::const_iterator const_iterator; + typedef std::set< ItemID >::const_iterator const_iterator; public: inline FeatureSet() { } @@ -89,7 +89,7 @@ namespace dbaui inline const_iterator end() const { return m_aContent.end(); } private: - ::std::set< ItemID > m_aContent; + std::set< ItemID > m_aContent; }; inline bool FeatureSet::supportsGeneratedValues() const diff --git a/dbaccess/source/ui/inc/formadapter.hxx b/dbaccess/source/ui/inc/formadapter.hxx index d75ba04195dd..20aaf70cac7d 100644 --- a/dbaccess/source/ui/inc/formadapter.hxx +++ b/dbaccess/source/ui/inc/formadapter.hxx @@ -141,8 +141,8 @@ namespace dbaui // hierarchy administration css::uno::Reference< css::uno::XInterface > m_xParent; - ::std::vector< css::uno::Reference< css::form::XFormComponent > > m_aChildren; - ::std::vector< OUString > m_aChildNames; + std::vector< css::uno::Reference< css::form::XFormComponent > > m_aChildren; + std::vector< OUString > m_aChildNames; // properties OUString m_sName; diff --git a/dbaccess/source/ui/inc/opendoccontrols.hxx b/dbaccess/source/ui/inc/opendoccontrols.hxx index 5b4515c1834c..6ac17f1b1920 100644 --- a/dbaccess/source/ui/inc/opendoccontrols.hxx +++ b/dbaccess/source/ui/inc/opendoccontrols.hxx @@ -50,8 +50,8 @@ namespace dbaui class OpenDocumentListBox : public ListBox { private: - typedef ::std::pair< OUString, OUString > StringPair; - typedef ::std::map< sal_uInt16, StringPair > MapIndexToStringPair; + typedef std::pair< OUString, OUString > StringPair; + typedef std::map< sal_uInt16, StringPair > MapIndexToStringPair; MapIndexToStringPair m_aURLs; diff --git a/dbaccess/source/ui/inc/propertystorage.hxx b/dbaccess/source/ui/inc/propertystorage.hxx index 9699e5ad814e..51732053adf9 100644 --- a/dbaccess/source/ui/inc/propertystorage.hxx +++ b/dbaccess/source/ui/inc/propertystorage.hxx @@ -48,7 +48,7 @@ namespace dbaui const sal_uInt16 m_nItemID; }; - typedef ::std::map< sal_Int32, std::shared_ptr< SetItemPropertyStorage > > PropertyValues; + typedef std::map< sal_Int32, std::shared_ptr< SetItemPropertyStorage > > PropertyValues; } // namespace dbaui diff --git a/dbaccess/source/ui/inc/sbagrid.hxx b/dbaccess/source/ui/inc/sbagrid.hxx index 3647249b07ad..beff20b48c31 100644 --- a/dbaccess/source/ui/inc/sbagrid.hxx +++ b/dbaccess/source/ui/inc/sbagrid.hxx @@ -44,7 +44,7 @@ namespace com { namespace sun { namespace star { namespace dbaui { - struct SbaURLCompare : public ::std::binary_function< css::util::URL, css::util::URL, bool> + struct SbaURLCompare : public std::binary_function< css::util::URL, css::util::URL, bool> { bool operator() (const css::util::URL& x, const css::util::URL& y) const { return x.Complete == y.Complete; } }; @@ -146,7 +146,7 @@ namespace dbaui css::util::URL aURL; css::uno::Sequence< css::beans::PropertyValue > aArgs; }; - ::std::queue< DispatchArgs > m_aDispatchArgs; + std::queue< DispatchArgs > m_aDispatchArgs; DECL_LINK( OnDispatchEvent, void*, void ); // for dynamic states of our 4 dispatchable URLs diff --git a/dbaccess/source/ui/inc/singledoccontroller.hxx b/dbaccess/source/ui/inc/singledoccontroller.hxx index 99b4f993f197..88aeeae25a8a 100644 --- a/dbaccess/source/ui/inc/singledoccontroller.hxx +++ b/dbaccess/source/ui/inc/singledoccontroller.hxx @@ -70,7 +70,7 @@ namespace dbaui using OSingleDocumentController_Base::disposing; private: - ::std::unique_ptr< OSingleDocumentController_Data > m_pData; + std::unique_ptr< OSingleDocumentController_Data > m_pData; }; } // namespace dbaui diff --git a/dbaccess/source/ui/inc/sqlmessage.hxx b/dbaccess/source/ui/inc/sqlmessage.hxx index 490fcff79cd8..cff7777bcde4 100644 --- a/dbaccess/source/ui/inc/sqlmessage.hxx +++ b/dbaccess/source/ui/inc/sqlmessage.hxx @@ -50,7 +50,7 @@ class OSQLMessageBox : public ButtonDialog VclPtr<FixedText> m_aMessage; OUString m_sHelpURL; - ::std::unique_ptr< SQLMessageBox_Impl > m_pImpl; + std::unique_ptr< SQLMessageBox_Impl > m_pImpl; public: enum MessageType diff --git a/dbaccess/source/ui/inc/tabletree.hxx b/dbaccess/source/ui/inc/tabletree.hxx index d07a455db03e..348ea519aa2d 100644 --- a/dbaccess/source/ui/inc/tabletree.hxx +++ b/dbaccess/source/ui/inc/tabletree.hxx @@ -50,8 +50,8 @@ public: void init(bool bVirtualRoot) { m_bVirtualRoot = bVirtualRoot; } - typedef ::std::pair< OUString, bool > TTableViewName; - typedef ::std::vector< TTableViewName > TNames; + typedef std::pair< OUString, bool > TTableViewName; + typedef std::vector< TTableViewName > TNames; void suppressEmptyFolders() { m_bNoEmptyFolders = true; } diff --git a/dbaccess/source/ui/inc/unodatbr.hxx b/dbaccess/source/ui/inc/unodatbr.hxx index 178af0838ad3..83fcdc5385ee 100644 --- a/dbaccess/source/ui/inc/unodatbr.hxx +++ b/dbaccess/source/ui/inc/unodatbr.hxx @@ -85,7 +85,7 @@ namespace dbaui ExternalFeature( const css::util::URL& _rURL ) : aURL( _rURL ), bEnabled( false ) { } }; - typedef ::std::map< sal_uInt16, ExternalFeature > ExternalFeaturesMap; + typedef std::map< sal_uInt16, ExternalFeature > ExternalFeaturesMap; ExternalFeaturesMap m_aExternalFeatures; svx::ODataAccessDescriptor m_aDocumentDataSource; @@ -325,7 +325,7 @@ namespace dbaui bool getExistentConnectionFor( SvTreeListEntry* _pDSEntry, SharedConnection& _rConnection ); /** returns an image provider which works with the connection belonging to the given entry */ - ::std::unique_ptr< ImageProvider > + std::unique_ptr< ImageProvider > getImageProviderFor( SvTreeListEntry* _pAnyEntry ); void implAdministrate( SvTreeListEntry* _pApplyTo ); diff --git a/dbaccess/source/ui/misc/DExport.cxx b/dbaccess/source/ui/misc/DExport.cxx index 446fb5bca164..02d9322ed598 100644 --- a/dbaccess/source/ui/misc/DExport.cxx +++ b/dbaccess/source/ui/misc/DExport.cxx @@ -182,8 +182,8 @@ ODatabaseExport::ODatabaseExport(const SharedConnection& _rxConnection, if(xSet.is()) { ::connectivity::ORowSetValue aValue; - ::std::vector<sal_Int32> aTypes; - ::std::vector<sal_Bool> aNullable; + std::vector<sal_Int32> aTypes; + std::vector<sal_Bool> aNullable; Reference<XResultSetMetaData> xResultSetMetaData = Reference<XResultSetMetaDataSupplier>(xSet,UNO_QUERY_THROW)->getMetaData(); Reference<XRow> xRow(xSet,UNO_QUERY_THROW); while(xSet->next()) @@ -608,8 +608,8 @@ void ODatabaseExport::SetColumnTypes(const TColumnVector* _pList,const OTypeInfo if(aFind != _pInfoMap->end()) { (*aIter)->second->SetType(aFind->second); - (*aIter)->second->SetPrecision(::std::min<sal_Int32>(aFind->second->nPrecision,nLength)); - (*aIter)->second->SetScale(::std::min<sal_Int32>(aFind->second->nMaximumScale,nScale)); + (*aIter)->second->SetPrecision(std::min<sal_Int32>(aFind->second->nPrecision,nLength)); + (*aIter)->second->SetScale(std::min<sal_Int32>(aFind->second->nMaximumScale,nScale)); sal_Int32 nFormatKey = ::dbtools::getDefaultNumberFormat( nDataType, (*aIter)->second->GetScale(), @@ -632,7 +632,7 @@ void ODatabaseExport::CreateDefaultColumn(const OUString& _rColumnName) aAlias = ::dbtools::convertName2SQLName(_rColumnName,xDestMetaData->getExtraNameCharacters()); if(nMaxNameLen && aAlias.getLength() > nMaxNameLen) - aAlias = aAlias.copy(0, ::std::min<sal_Int32>( nMaxNameLen-1, aAlias.getLength() ) ); + aAlias = aAlias.copy(0, std::min<sal_Int32>( nMaxNameLen-1, aAlias.getLength() ) ); OUString sName(aAlias); if(m_aDestColumns.find(sName) != m_aDestColumns.end()) @@ -645,7 +645,7 @@ void ODatabaseExport::CreateDefaultColumn(const OUString& _rColumnName) + OUString::number(++nPos); if(nMaxNameLen && sName.getLength() > nMaxNameLen) { - aAlias = aAlias.copy(0,::std::min<sal_Int32>( nMaxNameLen-nCount, aAlias.getLength() )); + aAlias = aAlias.copy(0,std::min<sal_Int32>( nMaxNameLen-nCount, aAlias.getLength() )); sName = aAlias + OUString::number(nPos); ++nCount; @@ -657,7 +657,7 @@ void ODatabaseExport::CreateDefaultColumn(const OUString& _rColumnName) OFieldDescription* pField = new OFieldDescription(); pField->SetType(m_pTypeInfo); pField->SetName(aAlias); - pField->SetPrecision(::std::min<sal_Int32>((sal_Int32)255,m_pTypeInfo->nPrecision)); + pField->SetPrecision(std::min<sal_Int32>((sal_Int32)255,m_pTypeInfo->nPrecision)); pField->SetScale(0); pField->SetIsNullable(ColumnValue::NULLABLE); pField->SetAutoIncrement(false); @@ -776,7 +776,7 @@ void ODatabaseExport::adjustFormat() OSL_ENSURE((nColPos) < static_cast<sal_Int32>(m_vNumberFormat.size()),"m_vFormatKey: Illegal index for vector"); OSL_ENSURE((nColPos) < static_cast<sal_Int32>(m_vColumnSize.size()),"m_vColumnSize: Illegal index for vector"); m_vNumberFormat[nColPos] = CheckString(m_sTextToken,m_vNumberFormat[nColPos]); - m_vColumnSize[nColPos] = ::std::max<sal_Int32>((sal_Int32)m_vColumnSize[nColPos], m_sTextToken.getLength()); + m_vColumnSize[nColPos] = std::max<sal_Int32>((sal_Int32)m_vColumnSize[nColPos], m_sTextToken.getLength()); } } eraseTokens(); @@ -829,11 +829,11 @@ Reference< XPreparedStatement > ODatabaseExport::createPreparedStatment( const R return Reference< XPreparedStatement > (); } const OUString* pIter = aDestColumnNames.getConstArray(); - ::std::vector< OUString> aInsertList; + std::vector< OUString> aInsertList; aInsertList.resize(aDestColumnNames.getLength()+1); for(size_t j=0; j < aInsertList.size(); ++j) { - ODatabaseExport::TPositions::const_iterator aFind = ::std::find_if(_rvColumns.begin(),_rvColumns.end(), + ODatabaseExport::TPositions::const_iterator aFind = std::find_if(_rvColumns.begin(),_rvColumns.end(), [j] (const ODatabaseExport::TPositions::value_type& tPos) { return tPos.second == (sal_Int32)(j+1); }); if ( _rvColumns.end() != aFind && aFind->second != sal::static_int_cast< long >(CONTAINER_ENTRY_NOTFOUND) && aFind->first != sal::static_int_cast< long >(CONTAINER_ENTRY_NOTFOUND) ) @@ -844,8 +844,8 @@ Reference< XPreparedStatement > ODatabaseExport::createPreparedStatment( const R } // create the sql string - ::std::vector< OUString>::const_iterator aInsertEnd = aInsertList.end(); - for (::std::vector< OUString>::const_iterator aInsertIter = aInsertList.begin(); aInsertIter != aInsertEnd; ++aInsertIter) + std::vector< OUString>::const_iterator aInsertEnd = aInsertList.end(); + for (std::vector< OUString>::const_iterator aInsertIter = aInsertList.begin(); aInsertIter != aInsertEnd; ++aInsertIter) { if ( !aInsertIter->isEmpty() ) { diff --git a/dbaccess/source/ui/misc/RowSetDrop.cxx b/dbaccess/source/ui/misc/RowSetDrop.cxx index e006693b208a..944b8b6d631c 100644 --- a/dbaccess/source/ui/misc/RowSetDrop.cxx +++ b/dbaccess/source/ui/misc/RowSetDrop.cxx @@ -100,8 +100,8 @@ bool ORowSetImportExport::Write() bool ORowSetImportExport::Read() { // check if there is any column to copy - if(::std::find_if(m_aColumnMapping.begin(),m_aColumnMapping.end(), - ::std::bind2nd(::std::greater<sal_Int32>(),0)) == m_aColumnMapping.end()) + if(std::find_if(m_aColumnMapping.begin(),m_aColumnMapping.end(), + std::bind2nd(std::greater<sal_Int32>(),0)) == m_aColumnMapping.end()) return false; bool bContinue = true; if(m_aSelection.getLength()) @@ -157,8 +157,8 @@ bool ORowSetImportExport::insertNewRow() { m_xTargetResultSetUpdate->moveToInsertRow(); sal_Int32 i = 1; - ::std::vector<sal_Int32>::const_iterator aEnd = m_aColumnMapping.end(); - for (::std::vector<sal_Int32>::const_iterator aIter = m_aColumnMapping.begin(); aIter != aEnd ;++aIter,++i ) + std::vector<sal_Int32>::const_iterator aEnd = m_aColumnMapping.end(); + for (std::vector<sal_Int32>::const_iterator aIter = m_aColumnMapping.begin(); aIter != aEnd ;++aIter,++i ) { if(*aIter > 0) { diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx index 987a4ea4d0fc..e0df88e01f13 100644 --- a/dbaccess/source/ui/misc/UITools.cxx +++ b/dbaccess/source/ui/misc/UITools.cxx @@ -297,7 +297,7 @@ TOTypeInfoSP getTypeInfoFromType(const OTypeInfoMap& _rTypeInfo, TOTypeInfoSP pTypeInfo; _brForceToType = false; // search for type - ::std::pair<OTypeInfoMap::const_iterator, OTypeInfoMap::const_iterator> aPair = _rTypeInfo.equal_range(_nType); + std::pair<OTypeInfoMap::const_iterator, OTypeInfoMap::const_iterator> aPair = _rTypeInfo.equal_range(_nType); OTypeInfoMap::const_iterator aIter = aPair.first; if(aIter != _rTypeInfo.end()) // compare with end is correct here { @@ -427,7 +427,7 @@ TOTypeInfoSP getTypeInfoFromType(const OTypeInfoMap& _rTypeInfo, void fillTypeInfo( const Reference< css::sdbc::XConnection>& _rxConnection, const OUString& _rsTypeNames, OTypeInfoMap& _rTypeInfoMap, - ::std::vector<OTypeInfoMap::iterator>& _rTypeInfoIters) + std::vector<OTypeInfoMap::iterator>& _rTypeInfoIters) { if(!_rxConnection.is()) return; @@ -438,8 +438,8 @@ void fillTypeInfo( const Reference< css::sdbc::XConnection>& _rxConnection, { Reference<XResultSetMetaData> xResultSetMetaData = Reference<XResultSetMetaDataSupplier>(xRs,UNO_QUERY)->getMetaData(); ::connectivity::ORowSetValue aValue; - ::std::vector<sal_Int32> aTypes; - ::std::vector<sal_Bool> aNullable; + std::vector<sal_Int32> aTypes; + std::vector<sal_Bool> aNullable; // Loop on the result set until we reach end of file while (xRs->next()) { @@ -1038,14 +1038,14 @@ void fillAutoIncrementValue(const Reference<XPropertySet>& _xDatasource, _xDatasource->getPropertyValue(PROPERTY_INFO) >>= aInfo; // search the right propertyvalue - const PropertyValue* pValue =::std::find_if(aInfo.getConstArray(), + const PropertyValue* pValue =std::find_if(aInfo.getConstArray(), aInfo.getConstArray() + aInfo.getLength(), - ::std::bind2nd(TPropertyValueEqualFunctor(),PROPERTY_AUTOINCREMENTCREATION)); + std::bind2nd(TPropertyValueEqualFunctor(),PROPERTY_AUTOINCREMENTCREATION)); if ( pValue && pValue != (aInfo.getConstArray() + aInfo.getLength()) ) pValue->Value >>= _rsAutoIncrementValue; - pValue =::std::find_if(aInfo.getConstArray(), + pValue =std::find_if(aInfo.getConstArray(), aInfo.getConstArray() + aInfo.getLength(), - ::std::bind2nd(TPropertyValueEqualFunctor(),OUString("IsAutoRetrievingEnabled") )); + std::bind2nd(TPropertyValueEqualFunctor(),OUString("IsAutoRetrievingEnabled") )); if ( pValue && pValue != (aInfo.getConstArray() + aInfo.getLength()) ) pValue->Value >>= _rAutoIncrementValueEnabled; } diff --git a/dbaccess/source/ui/misc/WColumnSelect.cxx b/dbaccess/source/ui/misc/WColumnSelect.cxx index a83eb94c9bc7..460bebf4fa4b 100644 --- a/dbaccess/source/ui/misc/WColumnSelect.cxx +++ b/dbaccess/source/ui/misc/WColumnSelect.cxx @@ -220,7 +220,7 @@ IMPL_LINK( OWizColumnSelect, ButtonClickHdl, Button *, pButton, void ) sal_Int32 nMaxNameLen = m_pParent->getMaxColumnNameLength(); ::comphelper::UStringMixEqual aCase(xMetaData->supportsMixedCaseQuotedIdentifiers()); - ::std::vector< OUString> aRightColumns; + std::vector< OUString> aRightColumns; fillColumns(pRight,aRightColumns); if(!bAll) @@ -266,7 +266,7 @@ IMPL_LINK( OWizColumnSelect, ListDoubleClickHdl, ListBox&, rListBox, void ) sal_Int32 nMaxNameLen = m_pParent->getMaxColumnNameLength(); ::comphelper::UStringMixEqual aCase(xMetaData->supportsMixedCaseQuotedIdentifiers()); - ::std::vector< OUString> aRightColumns; + std::vector< OUString> aRightColumns; fillColumns(pRight,aRightColumns); for(sal_Int32 i=0; i < pLeft->GetSelectEntryCount(); ++i) @@ -284,7 +284,7 @@ void OWizColumnSelect::clearListBox(ListBox& _rListBox) _rListBox.Clear(); } -void OWizColumnSelect::fillColumns(ListBox* pRight,::std::vector< OUString> &_rRightColumns) +void OWizColumnSelect::fillColumns(ListBox* pRight,std::vector< OUString> &_rRightColumns) { const sal_Int32 nCount = pRight->GetEntryCount(); _rRightColumns.reserve(nCount); @@ -294,7 +294,7 @@ void OWizColumnSelect::fillColumns(ListBox* pRight,::std::vector< OUString> &_rR void OWizColumnSelect::createNewColumn( ListBox* _pListbox, OFieldDescription* _pSrcField, - ::std::vector< OUString>& _rRightColumns, + std::vector< OUString>& _rRightColumns, const OUString& _sColumnName, const OUString& _sExtraChars, sal_Int32 _nMaxNameLen, @@ -320,7 +320,7 @@ void OWizColumnSelect::createNewColumn( ListBox* _pListbox, void OWizColumnSelect::moveColumn( ListBox* _pRight, ListBox* _pLeft, - ::std::vector< OUString>& _rRightColumns, + std::vector< OUString>& _rRightColumns, const OUString& _sColumnName, const OUString& _sExtraChars, sal_Int32 _nMaxNameLen, @@ -335,7 +335,7 @@ void OWizColumnSelect::moveColumn( ListBox* _pRight, else { // find the new column in the dest name mapping to obtain the old column - OCopyTableWizard::TNameMapping::const_iterator aIter = ::std::find_if(m_pParent->m_mNameMapping.begin(),m_pParent->m_mNameMapping.end(), + OCopyTableWizard::TNameMapping::const_iterator aIter = std::find_if(m_pParent->m_mNameMapping.begin(),m_pParent->m_mNameMapping.end(), [&_aCase, &_sColumnName] (const OCopyTableWizard::TNameMapping::value_type& nameMap) { return _aCase(nameMap.second, _sColumnName); }); @@ -349,7 +349,7 @@ void OWizColumnSelect::moveColumn( ListBox* _pRight, { // we need also the old position of this column to insert it back on that position again const ODatabaseExport::TColumnVector& rSrcVector = m_pParent->getSrcVector(); - ODatabaseExport::TColumnVector::const_iterator aPos = ::std::find(rSrcVector.begin(), rSrcVector.end(), aSrcIter); + ODatabaseExport::TColumnVector::const_iterator aPos = std::find(rSrcVector.begin(), rSrcVector.end(), aSrcIter); OSL_ENSURE( aPos != rSrcVector.end(),"Invalid position for the iterator here!"); ODatabaseExport::TColumnVector::size_type nPos = (aPos - rSrcVector.begin()) - adjustColumnPosition(_pLeft, _sColumnName, (aPos - rSrcVector.begin()), _aCase); @@ -384,7 +384,7 @@ sal_Int32 OWizColumnSelect::adjustColumnPosition( ListBox* _pLeft, if(_sColumnName != sColumnString) { // find the new column in the dest name mapping to obtain the old column - OCopyTableWizard::TNameMapping::const_iterator aIter = ::std::find_if(m_pParent->m_mNameMapping.begin(),m_pParent->m_mNameMapping.end(), + OCopyTableWizard::TNameMapping::const_iterator aIter = std::find_if(m_pParent->m_mNameMapping.begin(),m_pParent->m_mNameMapping.end(), [&_aCase, &sColumnString] (const OCopyTableWizard::TNameMapping::value_type& nameMap) { return _aCase(nameMap.second, sColumnString); }); @@ -396,7 +396,7 @@ sal_Int32 OWizColumnSelect::adjustColumnPosition( ListBox* _pLeft, { // we need also the old position of this column to insert it back on that position again const ODatabaseExport::TColumnVector& rSrcVector = m_pParent->getSrcVector(); - ODatabaseExport::TColumnVector::const_iterator aPos = ::std::find(rSrcVector.begin(), rSrcVector.end(), aSrcIter); + ODatabaseExport::TColumnVector::const_iterator aPos = std::find(rSrcVector.begin(), rSrcVector.end(), aSrcIter); ODatabaseExport::TColumnVector::size_type nPos = aPos - rSrcVector.begin(); if( nPos < nCurrentPos) { diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx index e259e29b369c..1457bea1227c 100644 --- a/dbaccess/source/ui/misc/WCopyTable.cxx +++ b/dbaccess/source/ui/misc/WCopyTable.cxx @@ -152,9 +152,9 @@ void ObjectCopySource::copyUISettingsTo( const Reference< XPropertySet >& _rxObj void ObjectCopySource::copyFilterAndSortingTo( const Reference< XConnection >& _xConnection,const Reference< XPropertySet >& _rxObject ) const { - ::std::pair< OUString, OUString > aProperties[] = { - ::std::pair< OUString, OUString >(PROPERTY_FILTER,OUString(" AND ")) - ,::std::pair< OUString, OUString >(PROPERTY_ORDER,OUString(" ORDER BY ")) + std::pair< OUString, OUString > aProperties[] = { + std::pair< OUString, OUString >(PROPERTY_FILTER,OUString(" AND ")) + ,std::pair< OUString, OUString >(PROPERTY_ORDER,OUString(" ORDER BY ")) }; try @@ -340,7 +340,7 @@ void NamedTableCopySource::impl_ensureColumnInfo_throw() Sequence< OUString > NamedTableCopySource::getColumnNames() const { Sequence< OUString > aNames( m_aColumnInfo.size() ); - for ( ::std::vector< OFieldDescription >::const_iterator col = m_aColumnInfo.begin(); + for ( std::vector< OFieldDescription >::const_iterator col = m_aColumnInfo.begin(); col != m_aColumnInfo.end(); ++col ) @@ -374,7 +374,7 @@ Sequence< OUString > NamedTableCopySource::getPrimaryKeyColumnNames() const OFieldDescription* NamedTableCopySource::createFieldDescription( const OUString& _rColumnName ) const { - for ( ::std::vector< OFieldDescription >::const_iterator col = m_aColumnInfo.begin(); + for ( std::vector< OFieldDescription >::const_iterator col = m_aColumnInfo.begin(); col != m_aColumnInfo.end(); ++col ) @@ -795,7 +795,7 @@ bool OCopyTableWizard::CheckColumns(sal_Int32& _rnBreakPos) if ( aDestIter != m_vDestColumns.end() ) { - ODatabaseExport::TColumnVector::const_iterator aFind = ::std::find(m_aDestVec.begin(),m_aDestVec.end(),aDestIter); + ODatabaseExport::TColumnVector::const_iterator aFind = std::find(m_aDestVec.begin(),m_aDestVec.end(),aDestIter); sal_Int32 nPos = (aFind - m_aDestVec.begin())+1; m_vColumnPos.push_back(ODatabaseExport::TPositions::value_type(nPos,nPos)); m_vColumnTypes.push_back((*aFind)->second->GetType()); @@ -873,7 +873,7 @@ IMPL_LINK_NOARG(OCopyTableWizard, ImplOKHdl, Button*, void) { if ( supportsPrimaryKey() ) { - ODatabaseExport::TColumns::const_iterator aFind = ::std::find_if(m_vDestColumns.begin(),m_vDestColumns.end(), + ODatabaseExport::TColumns::const_iterator aFind = std::find_if(m_vDestColumns.begin(),m_vDestColumns.end(), [] (const ODatabaseExport::TColumns::value_type& tCol) { return tCol.second->IsPrimaryKey(); }); if ( aFind == m_vDestColumns.end() && m_xInteractionHandler.is() ) { @@ -1270,10 +1270,10 @@ Reference< XPropertySet > OCopyTableWizard::createTable() if ( aDestIter != m_vDestColumns.end() ) { - ODatabaseExport::TColumnVector::const_iterator aFind = ::std::find(m_aDestVec.begin(),m_aDestVec.end(),aDestIter); + ODatabaseExport::TColumnVector::const_iterator aFind = std::find(m_aDestVec.begin(),m_aDestVec.end(),aDestIter); sal_Int32 nPos = (aFind - m_aDestVec.begin())+1; - ODatabaseExport::TPositions::iterator aPosFind = ::std::find_if( + ODatabaseExport::TPositions::iterator aPosFind = std::find_if( m_vColumnPos.begin(), m_vColumnPos.end(), [nPos] (const ODatabaseExport::TPositions::value_type& tPos) { diff --git a/dbaccess/source/ui/misc/WNameMatch.cxx b/dbaccess/source/ui/misc/WNameMatch.cxx index ee457f1b945e..410d6a01942b 100644 --- a/dbaccess/source/ui/misc/WNameMatch.cxx +++ b/dbaccess/source/ui/misc/WNameMatch.cxx @@ -154,7 +154,7 @@ bool OWizNameMatching::LeavePage() ODatabaseExport::TColumnVector::const_iterator aSrcEnd = rSrcColumns.end(); for(;aSrcIter != aSrcEnd && (*aSrcIter)->second != pSrcField;++aSrcIter) ; - const sal_Int32 nPos = ::std::distance(rSrcColumns.begin(),aSrcIter); + const sal_Int32 nPos = std::distance(rSrcColumns.begin(),aSrcIter); if(m_pCTRL_LEFT->GetCheckButtonState(pLeftEntry) == SvButtonState::Checked) { @@ -169,7 +169,7 @@ bool OWizNameMatching::LeavePage() OSL_ENSURE((nPos) < static_cast<sal_Int32>(m_pParent->m_vColumnPos.size()),"m_pParent->m_vColumnPos: Illegal index for vector"); m_pParent->m_vColumnPos[nPos].first = ++nParamPos; - m_pParent->m_vColumnPos[nPos].second = ::std::distance(rDestColumns.begin(),aDestIter) + 1; + m_pParent->m_vColumnPos[nPos].second = std::distance(rDestColumns.begin(),aDestIter) + 1; TOTypeInfoSP pTypeInfo; diff --git a/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx b/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx index 9b4ea9eaf3f9..82a5d90e8e7f 100644 --- a/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx +++ b/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx @@ -227,11 +227,11 @@ namespace dbaui if ( !m_pImpl->documentHasScriptSupport() ) { Sequence< Type > aStrippedTypes( aTypes.getLength() - 1 ); - ::std::remove_copy_if( + std::remove_copy_if( aTypes.getConstArray(), aTypes.getConstArray() + aTypes.getLength(), aStrippedTypes.getArray(), - ::std::bind2nd( ::std::equal_to< Type >(), cppu::UnoType<XScriptInvocationContext>::get() ) + std::bind2nd( std::equal_to< Type >(), cppu::UnoType<XScriptInvocationContext>::get() ) ); aTypes = aStrippedTypes; } diff --git a/dbaccess/source/ui/misc/dsmeta.cxx b/dbaccess/source/ui/misc/dsmeta.cxx index 89c0d556a013..4e8da229b874 100644 --- a/dbaccess/source/ui/misc/dsmeta.cxx +++ b/dbaccess/source/ui/misc/dsmeta.cxx @@ -86,7 +86,7 @@ namespace dbaui static const FeatureSet& lcl_getFeatureSet( const OUString& _rURL ) { - typedef ::std::map< OUString, FeatureSet > FeatureSets; + typedef std::map< OUString, FeatureSet > FeatureSets; static FeatureSets s_aFeatureSets; if ( s_aFeatureSets.empty() ) { diff --git a/dbaccess/source/ui/querydesign/ConnectionLine.cxx b/dbaccess/source/ui/querydesign/ConnectionLine.cxx index 1ddeaf5dbcc0..a14d86e50c7d 100644 --- a/dbaccess/source/ui/querydesign/ConnectionLine.cxx +++ b/dbaccess/source/ui/querydesign/ConnectionLine.cxx @@ -315,8 +315,8 @@ bool OConnectionLine::CheckHit( const Point& rMousePos ) const double l = fabs(dist_Euklid(m_aSourceConnPos,m_aDestConnPos,rMousePos,q)); if( l < HIT_SENSITIVE_RADIUS) { - if(::std::min(m_aSourceConnPos.X(),m_aDestConnPos.X()) <= q.X() && ::std::min(m_aSourceConnPos.Y(),m_aDestConnPos.Y()) <= q.Y() - && q.X() <= ::std::max(m_aDestConnPos.X(),m_aSourceConnPos.X()) && q.Y() <= ::std::max(m_aDestConnPos.Y(),m_aSourceConnPos.Y())) + if(std::min(m_aSourceConnPos.X(),m_aDestConnPos.X()) <= q.X() && std::min(m_aSourceConnPos.Y(),m_aDestConnPos.Y()) <= q.Y() + && q.X() <= std::max(m_aDestConnPos.X(),m_aSourceConnPos.X()) && q.Y() <= std::max(m_aDestConnPos.Y(),m_aSourceConnPos.Y())) return true; } diff --git a/dbaccess/source/ui/querydesign/JoinController.cxx b/dbaccess/source/ui/querydesign/JoinController.cxx index b2243bc4e505..84044841c6ed 100644 --- a/dbaccess/source/ui/querydesign/JoinController.cxx +++ b/dbaccess/source/ui/querydesign/JoinController.cxx @@ -301,7 +301,7 @@ void OJoinController::SaveTabWinsPosSize( OJoinTableView::OTableWindowMap* pTabW void OJoinController::removeConnectionData(const TTableConnectionData::value_type& _pData) { - m_vTableConnectionData.erase( ::std::remove(m_vTableConnectionData.begin(),m_vTableConnectionData.end(),_pData),m_vTableConnectionData.end()); + m_vTableConnectionData.erase( std::remove(m_vTableConnectionData.begin(),m_vTableConnectionData.end(),_pData),m_vTableConnectionData.end()); } void OJoinController::describeSupportedFeatures() diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx index 88fe2941e6cd..6f383c341841 100644 --- a/dbaccess/source/ui/querydesign/JoinTableView.cxx +++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx @@ -380,7 +380,7 @@ void OJoinTableView::RemoveTabWin( OTableWindow* pTabWin ) pTabWin->Hide(); OJoinController& rController = m_pView->getController(); - TTableWindowData::iterator aFind = ::std::find(rController.getTableWindowData().begin(), rController.getTableWindowData().end(), pData); + TTableWindowData::iterator aFind = std::find(rController.getTableWindowData().begin(), rController.getTableWindowData().end(), pData); if(aFind != rController.getTableWindowData().end()) { rController.getTableWindowData().erase(aFind); @@ -902,8 +902,8 @@ void OJoinTableView::SelectConn(OTableConnection* pConn) SvTreeListEntry* pFirstSourceVisible = pSourceBox->GetFirstEntryInView(); SvTreeListEntry* pFirstDestVisible = pDestBox->GetFirstEntryInView(); - const ::std::vector<OConnectionLine*>& rLines = pConn->GetConnLineList(); - ::std::vector<OConnectionLine*>::const_reverse_iterator aIter = rLines.rbegin(); + const std::vector<OConnectionLine*>& rLines = pConn->GetConnLineList(); + std::vector<OConnectionLine*>::const_reverse_iterator aIter = rLines.rbegin(); for(;aIter != rLines.rend();++aIter) { if ((*aIter)->IsValid()) @@ -955,18 +955,18 @@ void OJoinTableView::DrawConnections(vcl::RenderContext& rRenderContext, const R GetSelectedConn()->Draw(rRenderContext, rRect); } -::std::vector<VclPtr<OTableConnection> >::const_iterator OJoinTableView::getTableConnections(const OTableWindow* _pFromWin) const +std::vector<VclPtr<OTableConnection> >::const_iterator OJoinTableView::getTableConnections(const OTableWindow* _pFromWin) const { - return ::std::find_if( m_vTableConnection.begin(), + return std::find_if( m_vTableConnection.begin(), m_vTableConnection.end(), - ::std::bind2nd(::std::mem_fun(&OTableConnection::isTableConnection),_pFromWin)); + std::bind2nd(std::mem_fun(&OTableConnection::isTableConnection),_pFromWin)); } sal_Int32 OJoinTableView::getConnectionCount(const OTableWindow* _pFromWin) const { - return ::std::count_if( m_vTableConnection.begin(), + return std::count_if( m_vTableConnection.begin(), m_vTableConnection.end(), - ::std::bind2nd(::std::mem_fun(&OTableConnection::isTableConnection),_pFromWin)); + std::bind2nd(std::mem_fun(&OTableConnection::isTableConnection),_pFromWin)); } bool OJoinTableView::ExistsAConn(const OTableWindow* pFrom) const @@ -1159,8 +1159,8 @@ void OJoinTableView::Command(const CommandEvent& rEvt) { if (rSelConnection) { - const ::std::vector<OConnectionLine*>& rLines = rSelConnection->GetConnLineList(); - ::std::vector<OConnectionLine*>::const_iterator aIter = ::std::find_if(rLines.begin(), rLines.end(),::std::mem_fun(&OConnectionLine::IsValid)); + const std::vector<OConnectionLine*>& rLines = rSelConnection->GetConnLineList(); + std::vector<OConnectionLine*>::const_iterator aIter = std::find_if(rLines.begin(), rLines.end(),std::mem_fun(&OConnectionLine::IsValid)); if( aIter != rLines.end() ) executePopup((*aIter)->getMidPoint(), rSelConnection); } @@ -1561,7 +1561,7 @@ void OJoinTableView::addConnection(OTableConnection* _pConnection,bool _bAddData { #if OSL_DEBUG_LEVEL > 0 TTableConnectionData& rTabConnDataList = m_pView->getController().getTableConnectionData(); - OSL_ENSURE( ::std::find(rTabConnDataList.begin(), rTabConnDataList.end(),_pConnection->GetData()) == rTabConnDataList.end(),"Data already in vector!"); + OSL_ENSURE( std::find(rTabConnDataList.begin(), rTabConnDataList.end(),_pConnection->GetData()) == rTabConnDataList.end(),"Data already in vector!"); #endif m_pView->getController().getTableConnectionData().push_back(_pConnection->GetData()); } diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index ab12b20f4e34..8463687025c3 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -719,7 +719,7 @@ namespace OTableFields::const_iterator aEnd = _rFieldList.end(); for(;aIter != aEnd;++aIter) { - nMaxCriteria = ::std::max<sal_uInt16>(nMaxCriteria,(sal_uInt16)(*aIter)->GetCriteria().size()); + nMaxCriteria = std::max<sal_uInt16>(nMaxCriteria,(sal_uInt16)(*aIter)->GetCriteria().size()); } try { @@ -964,7 +964,7 @@ namespace void GenerateInnerJoinCriterias(const Reference< XConnection>& _xConnection, OUString& _rJoinCrit, - const ::std::vector<VclPtr<OTableConnection> >& _rConnList) + const std::vector<VclPtr<OTableConnection> >& _rConnList) { auto aIter = _rConnList.begin(); auto aEnd = _rConnList.end(); @@ -995,7 +995,7 @@ namespace } OUString GenerateFromClause( const Reference< XConnection>& _xConnection, const OQueryTableView::OTableWindowMap* pTabList, - const ::std::vector<VclPtr<OTableConnection> >& rConnList + const std::vector<VclPtr<OTableConnection> >& rConnList ) { @@ -1008,24 +1008,24 @@ namespace { auto aIter = rConnList.begin(); auto aEnd = rConnList.end(); - ::std::map<OTableWindow*,sal_Int32> aConnectionCount; + std::map<OTableWindow*,sal_Int32> aConnectionCount; for(;aIter != aEnd;++aIter) { static_cast<OQueryTableConnection*>((*aIter).get())->SetVisited(false); ++aConnectionCount[(*aIter)->GetSourceWin()]; ++aConnectionCount[(*aIter)->GetDestWin()]; } - ::std::multimap<sal_Int32 , OTableWindow*> aMulti; - ::std::map<OTableWindow*,sal_Int32>::const_iterator aCountIter = aConnectionCount.begin(); - ::std::map<OTableWindow*,sal_Int32>::const_iterator aCountEnd = aConnectionCount.end(); + std::multimap<sal_Int32 , OTableWindow*> aMulti; + std::map<OTableWindow*,sal_Int32>::const_iterator aCountIter = aConnectionCount.begin(); + std::map<OTableWindow*,sal_Int32>::const_iterator aCountEnd = aConnectionCount.end(); for(;aCountIter != aCountEnd;++aCountIter) { - aMulti.insert(::std::multimap<sal_Int32 , OTableWindow*>::value_type(aCountIter->second,aCountIter->first)); + aMulti.insert(std::multimap<sal_Int32 , OTableWindow*>::value_type(aCountIter->second,aCountIter->first)); } const bool bUseEscape = ::dbtools::getBooleanDataSourceSetting( _xConnection, PROPERTY_OUTERJOINESCAPE ); - ::std::multimap<sal_Int32 , OTableWindow*>::const_reverse_iterator aRIter = aMulti.rbegin(); - ::std::multimap<sal_Int32 , OTableWindow*>::const_reverse_iterator aREnd = aMulti.rend(); + std::multimap<sal_Int32 , OTableWindow*>::const_reverse_iterator aRIter = aMulti.rbegin(); + std::multimap<sal_Int32 , OTableWindow*>::const_reverse_iterator aREnd = aMulti.rend(); for(;aRIter != aREnd;++aRIter) { auto aConIter = aRIter->second->getTableView()->getTableConnections(aRIter->second); @@ -1115,7 +1115,7 @@ namespace if(!xConnection.is()) return OUString(); - ::std::map< OUString,bool> aGroupByNames; + std::map< OUString,bool> aGroupByNames; OUString aGroupByStr; try @@ -1159,7 +1159,7 @@ namespace } if ( aGroupByNames.find(sGroupByPart) == aGroupByNames.end() ) { - aGroupByNames.insert(::std::map< OUString,bool>::value_type(sGroupByPart,true)); + aGroupByNames.insert(std::map< OUString,bool>::value_type(sGroupByPart,true)); aGroupByStr += sGroupByPart + ","; } } @@ -2701,7 +2701,7 @@ void OQueryDesignView::fillValidFields(const OUString& sAliasName, ComboBox* pFi OJoinTableView::OTableWindowMap& rTabWins = m_pTableView->GetTabWinMap(); OUString strCurrentPrefix; - ::std::vector< OUString> aFields; + std::vector< OUString> aFields; OJoinTableView::OTableWindowMap::const_iterator aIter = rTabWins.begin(); OJoinTableView::OTableWindowMap::const_iterator aEnd = rTabWins.end(); for(;aIter != aEnd;++aIter) @@ -2713,8 +2713,8 @@ void OQueryDesignView::fillValidFields(const OUString& sAliasName, ComboBox* pFi pCurrentWin->EnumValidFields(aFields); - ::std::vector< OUString>::const_iterator aStrIter = aFields.begin(); - ::std::vector< OUString>::const_iterator aStrEnd = aFields.end(); + std::vector< OUString>::const_iterator aStrIter = aFields.begin(); + std::vector< OUString>::const_iterator aStrEnd = aFields.end(); for(;aStrIter != aStrEnd;++aStrIter) { if (bAllTables || aStrIter->toChar() == '*') diff --git a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx index 30257e9a9f6f..e0bfd9658a19 100644 --- a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx +++ b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx @@ -33,7 +33,7 @@ namespace dbaui class OQueryTabWinUndoAct : public OQueryDesignUndoAction { protected: - ::std::vector<VclPtr<OTableConnection> > m_vTableConnection; + std::vector<VclPtr<OTableConnection> > m_vTableConnection; VclPtr<OQueryTableWindow> m_pTabWin; bool m_bOwnerOfObjects; // am I the only owner of the managed objects? (changes with every redo or undo) @@ -51,7 +51,7 @@ namespace dbaui void SetTabWin(OQueryTableWindow* pTW) { m_pTabWin = pTW; } // now SetOwnership should be invoked - ::std::vector<VclPtr<OTableConnection> >& GetTabConnList() { return m_vTableConnection; } + std::vector<VclPtr<OTableConnection> >& GetTabConnList() { return m_vTableConnection; } void InsertConnection( OTableConnection* pConnection ) { m_vTableConnection.push_back(pConnection); } }; diff --git a/dbaccess/source/ui/querydesign/QueryTableView.cxx b/dbaccess/source/ui/querydesign/QueryTableView.cxx index c6fa90fc8e6d..a5097e0b6e0b 100644 --- a/dbaccess/source/ui/querydesign/QueryTableView.cxx +++ b/dbaccess/source/ui/querydesign/QueryTableView.cxx @@ -251,7 +251,7 @@ void OQueryTableView::ReSync() "before calling OQueryTableView::ReSync() please call ClearAll !"); // I need a collection of all window names that cannot be created so that I do not initialize connections for them. - ::std::vector<OUString> arrInvalidTables; + std::vector<OUString> arrInvalidTables; TTableWindowData::const_reverse_iterator aIter = rTabWinDataList.rbegin(); // Create the window and add it @@ -272,7 +272,7 @@ void OQueryTableView::ReSync() pTabWin.disposeAndClear(); arrInvalidTables.push_back(pData->GetAliasName()); - rTabWinDataList.erase( ::std::remove(rTabWinDataList.begin(), rTabWinDataList.end(), *aIter), rTabWinDataList.end()); + rTabWinDataList.erase( std::remove(rTabWinDataList.begin(), rTabWinDataList.end(), *aIter), rTabWinDataList.end()); continue; } @@ -294,14 +294,14 @@ void OQueryTableView::ReSync() // do both tables for the connection exist ? OUString strTabExistenceTest = pTabConnData->getReferencingTable()->GetWinName(); - bool bInvalid = ::std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end(); + bool bInvalid = std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end(); strTabExistenceTest = pTabConnData->getReferencedTable()->GetWinName(); - bInvalid = bInvalid && ::std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end(); + bInvalid = bInvalid && std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end(); if (bInvalid) { // no -> bad luck, no connection - rTabConnDataList.erase( ::std::remove(rTabConnDataList.begin(), rTabConnDataList.end(), *aConIter), rTabConnDataList.end()); + rTabConnDataList.erase( std::remove(rTabConnDataList.begin(), rTabConnDataList.end(), *aConIter), rTabConnDataList.end()); continue; } @@ -329,7 +329,7 @@ void OQueryTableView::NotifyTabConnection(const OQueryTableConnection& rNewConn, OQueryTableConnection* pTabConn = nullptr; const auto& rConnections = getTableConnections(); auto aEnd = rConnections.end(); - auto aIter = ::std::find( rConnections.begin(), + auto aIter = std::find( rConnections.begin(), aEnd, VclPtr<OTableConnection>(const_cast<OTableConnection*>(static_cast<const OTableConnection*>(&rNewConn))) ); @@ -809,7 +809,7 @@ void OQueryTableView::HideTabWin( OQueryTableWindow* pTabWin, OQueryTabWinUndoAc // the TabWin data must also be passed out of my responsibility TTableWindowData& rTabWinDataList = m_pView->getController().getTableWindowData(); - rTabWinDataList.erase( ::std::remove(rTabWinDataList.begin(), rTabWinDataList.end(), pTabWin->GetData()), rTabWinDataList.end()); + rTabWinDataList.erase( std::remove(rTabWinDataList.begin(), rTabWinDataList.end(), pTabWin->GetData()), rTabWinDataList.end()); // The data should not be destroyed as TabWin itself - which is still alive - needs them // Either it goes back into my responsibility, (via ShowTabWin), then I add the data back, // or the Undo-Action, which currently has full responsibility for the window diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index b9fb54822c11..9994c52ed909 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -930,7 +930,7 @@ bool OSelectionBrowseBox::SaveModified() { OTableFieldDescRef pNewEntry = new OTableFieldDesc(); pNewEntry->SetColumnId( pEntry->GetColumnId() ); - ::std::replace(getFields().begin(),getFields().end(),pEntry,pNewEntry); + std::replace(getFields().begin(),getFields().end(),pEntry,pNewEntry); sal_uInt16 nCol = GetCurColumnId(); for (int i = 0; i < m_nVisibleCount; i++) // redraw column RowModified(i,nCol); diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx index 4fad23f3af48..9366ecfbbb44 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx @@ -51,7 +51,7 @@ namespace dbaui class OSelectionBrowseBox : public ::svt::EditBrowseBox { friend class OQueryDesignView; - ::std::vector<bool> m_bVisibleRow; // at pos we find the RowId + std::vector<bool> m_bVisibleRow; // at pos we find the RowId Timer m_timerInvalidate; long m_nSeekRow; diff --git a/dbaccess/source/ui/querydesign/TableConnection.cxx b/dbaccess/source/ui/querydesign/TableConnection.cxx index 2f4d014a96c2..606e9f10ba9b 100644 --- a/dbaccess/source/ui/querydesign/TableConnection.cxx +++ b/dbaccess/source/ui/querydesign/TableConnection.cxx @@ -64,8 +64,8 @@ namespace dbaui void OTableConnection::clearLineData() { - ::std::vector<OConnectionLine*>::const_iterator aLineEnd = m_vConnLine.end(); - for(::std::vector<OConnectionLine*>::const_iterator aLineIter = m_vConnLine.begin();aLineIter != aLineEnd;++aLineIter) + std::vector<OConnectionLine*>::const_iterator aLineEnd = m_vConnLine.end(); + for(std::vector<OConnectionLine*>::const_iterator aLineIter = m_vConnLine.begin();aLineIter != aLineEnd;++aLineIter) delete *aLineIter; m_vConnLine.clear(); } @@ -88,9 +88,9 @@ namespace dbaui // copy linelist if(! rConn.GetConnLineList().empty() ) { - const ::std::vector<OConnectionLine*>& rLine = rConn.GetConnLineList(); - ::std::vector<OConnectionLine*>::const_iterator aIter = rLine.begin(); - ::std::vector<OConnectionLine*>::const_iterator aEnd = rLine.end(); + const std::vector<OConnectionLine*>& rLine = rConn.GetConnLineList(); + std::vector<OConnectionLine*>::const_iterator aIter = rLine.begin(); + std::vector<OConnectionLine*>::const_iterator aEnd = rLine.end(); m_vConnLine.reserve(rLine.size()); for(;aIter != aEnd;++aIter) m_vConnLine.push_back( new OConnectionLine( **aIter )); @@ -148,7 +148,7 @@ namespace dbaui bool OTableConnection::CheckHit( const Point& rMousePos ) const { // check if the point hit our line - return ::std::any_of(m_vConnLine.begin(), + return std::any_of(m_vConnLine.begin(), m_vConnLine.end(), [&rMousePos] ( const OConnectionLine* pLine ) @@ -172,8 +172,8 @@ namespace dbaui // determine all lines of the surrounding rectangle Rectangle aBoundingRect( Point(0,0), Point(0,0) ); Rectangle aTempRect; - ::std::vector<OConnectionLine*>::const_iterator aEnd = m_vConnLine.end(); - for(::std::vector<OConnectionLine*>::const_iterator aIter = m_vConnLine.begin();aIter != aEnd;++aIter) + std::vector<OConnectionLine*>::const_iterator aEnd = m_vConnLine.end(); + for(std::vector<OConnectionLine*>::const_iterator aIter = m_vConnLine.begin();aIter != aEnd;++aIter) { aTempRect = (*aIter)->GetBoundingRect(); diff --git a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx index c9d755d8b26f..21e7348d9d2f 100644 --- a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx +++ b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx @@ -121,7 +121,7 @@ OUString OTableFieldDesc::GetCriteria( sal_uInt16 nIdx ) const namespace { - struct SelectPropertyValueAsString : public ::std::unary_function< PropertyValue, OUString > + struct SelectPropertyValueAsString : public std::unary_function< PropertyValue, OUString > { OUString operator()( const PropertyValue& i_rPropValue ) const { @@ -154,7 +154,7 @@ void OTableFieldDesc::Load( const css::beans::PropertyValue& i_rSettings, const { const Sequence< PropertyValue > aCriteria( aFieldDesc.getOrDefault( "Criteria", Sequence< PropertyValue >() ) ); m_aCriteria.resize( aCriteria.getLength() ); - ::std::transform( + std::transform( aCriteria.getConstArray(), aCriteria.getConstArray() + aCriteria.getLength(), m_aCriteria.begin(), @@ -185,7 +185,7 @@ void OTableFieldDesc::Save( ::comphelper::NamedValueCollection& o_rSettings, con { sal_Int32 c = 0; Sequence< PropertyValue > aCriteria( m_aCriteria.size() ); - for ( ::std::vector< OUString >::const_iterator crit = m_aCriteria.begin(); + for ( std::vector< OUString >::const_iterator crit = m_aCriteria.begin(); crit != m_aCriteria.end(); ++crit, ++c ) diff --git a/dbaccess/source/ui/querydesign/TableWindow.cxx b/dbaccess/source/ui/querydesign/TableWindow.cxx index c2ae87db31b6..dfc78424b2a7 100644 --- a/dbaccess/source/ui/querydesign/TableWindow.cxx +++ b/dbaccess/source/ui/querydesign/TableWindow.cxx @@ -519,7 +519,7 @@ bool OTableWindow::ExistsAConn() const return getTableView()->ExistsAConn(this); } -void OTableWindow::EnumValidFields(::std::vector< OUString>& arrstrFields) +void OTableWindow::EnumValidFields(std::vector< OUString>& arrstrFields) { arrstrFields.clear(); // This default implementation counts every item in the ListBox ... for any other behaviour it must be over-written diff --git a/dbaccess/source/ui/querydesign/TableWindowAccess.cxx b/dbaccess/source/ui/querydesign/TableWindowAccess.cxx index e3b132b1f689..0a0c98cc3357 100644 --- a/dbaccess/source/ui/querydesign/TableWindowAccess.cxx +++ b/dbaccess/source/ui/querydesign/TableWindowAccess.cxx @@ -213,7 +213,7 @@ namespace dbaui auto aIter = pView->getTableConnections(m_pTable); auto aEnd = rConnectionList.end(); - ::std::vector< Reference<XInterface> > aRelations; + std::vector< Reference<XInterface> > aRelations; aRelations.reserve(5); // just guessing for (; aIter != aEnd ; ++aIter ) { diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx index 9351116c60c3..6d20196910bd 100644 --- a/dbaccess/source/ui/querydesign/querycontroller.cxx +++ b/dbaccess/source/ui/querydesign/querycontroller.cxx @@ -403,7 +403,7 @@ void SAL_CALL OQueryController::getFastPropertyValue( Any& o_rValue, sal_Int32 i PropertyAttribute::READONLY ); - ::std::sort( + std::sort( aProps.getArray(), aProps.getArray() + aProps.getLength(), ::comphelper::PropertyCompareByName() @@ -1568,9 +1568,9 @@ struct CommentStrip See also delComment() implementation for OSQLParser::parseTree(). */ -static ::std::vector< CommentStrip > getComment( const OUString& rQuery ) +static std::vector< CommentStrip > getComment( const OUString& rQuery ) { - ::std::vector< CommentStrip > aRet; + std::vector< CommentStrip > aRet; // First a quick search if there is any "--" or "//" or "/*", if not then // the whole copying loop is pointless. if (rQuery.indexOf( "--" ) < 0 && rQuery.indexOf( "//" ) < 0 && @@ -1645,7 +1645,7 @@ static ::std::vector< CommentStrip > getComment( const OUString& rQuery ) recomposition. This is ugly but at least allows commented queries while preserving the comments _somehow_. */ -static OUString concatComment( const OUString& rQuery, const ::std::vector< CommentStrip >& rComments ) +static OUString concatComment( const OUString& rQuery, const std::vector< CommentStrip >& rComments ) { // No comments => return query. if (rComments.empty()) @@ -1657,7 +1657,7 @@ static OUString concatComment( const OUString& rQuery, const ::std::vector< Comm // Obtaining the needed size once should be faster than reallocating. // Also add a blank or linefeed for each comment. sal_Int32 nBufSize = nLen + nComments; - for (::std::vector< CommentStrip >::const_iterator it( rComments.begin()); it != rComments.end(); ++it) + for (std::vector< CommentStrip >::const_iterator it( rComments.begin()); it != rComments.end(); ++it) nBufSize += (*it).maComment.getLength(); OUStringBuffer aBuf( nBufSize ); sal_Int32 nIndBeg = 0; @@ -1706,7 +1706,7 @@ OUString OQueryController::translateStatement( bool _bFireStatementChange ) { OUString aErrorMsg; - ::std::vector< CommentStrip > aComments = getComment( m_sStatement); + std::vector< CommentStrip > aComments = getComment( m_sStatement); ::connectivity::OSQLParseNode* pNode = m_aSqlParser.parseTree( aErrorMsg, m_sStatement, m_bGraphicalDesign ); if(pNode) @@ -1844,7 +1844,7 @@ void OQueryController::impl_reset( const bool i_bForceCurrentControllerSettings else if ( m_bEscapeProcessing ) { OUString aErrorMsg; - ::std::unique_ptr< ::connectivity::OSQLParseNode > pNode( + std::unique_ptr< ::connectivity::OSQLParseNode > pNode( m_aSqlParser.parseTree( aErrorMsg, m_sStatement, m_bGraphicalDesign ) ); if ( pNode.get() ) diff --git a/dbaccess/source/ui/relationdesign/RTableConnection.cxx b/dbaccess/source/ui/relationdesign/RTableConnection.cxx index 4b5824a0dbb0..6b0468508fda 100644 --- a/dbaccess/source/ui/relationdesign/RTableConnection.cxx +++ b/dbaccess/source/ui/relationdesign/RTableConnection.cxx @@ -61,7 +61,7 @@ void ORelationTableConnection::Draw(vcl::RenderContext& rRenderContext, const Re long nTemp; const OConnectionLine* pTopLine = nullptr; - const ::std::vector<OConnectionLine*>& rConnLineList = GetConnLineList(); + const std::vector<OConnectionLine*>& rConnLineList = GetConnLineList(); std::vector<OConnectionLine*>::const_iterator aIter = rConnLineList.begin(); std::vector<OConnectionLine*>::const_iterator aEnd = rConnLineList.end(); diff --git a/dbaccess/source/ui/relationdesign/RelationController.cxx b/dbaccess/source/ui/relationdesign/RelationController.cxx index e42dc0df526e..04f355764bb6 100644 --- a/dbaccess/source/ui/relationdesign/RelationController.cxx +++ b/dbaccess/source/ui/relationdesign/RelationController.cxx @@ -274,7 +274,7 @@ namespace { class RelationLoader : public ::osl::Thread { - typedef std::map<OUString, ::std::shared_ptr<OTableWindowData>, ::comphelper::UStringMixLess> TTableDataHelper; + typedef std::map<OUString, std::shared_ptr<OTableWindowData>, ::comphelper::UStringMixLess> TTableDataHelper; TTableDataHelper m_aTableData; TTableConnectionData m_vTableConnectionData; const Sequence< OUString> m_aTableList; @@ -442,7 +442,7 @@ void ORelationController::mergeData(const TTableConnectionData& _aConnectionData { ::osl::MutexGuard aGuard( getMutex() ); - ::std::copy( _aConnectionData.begin(), _aConnectionData.end(), ::std::back_inserter( m_vTableConnectionData )); + std::copy( _aConnectionData.begin(), _aConnectionData.end(), std::back_inserter( m_vTableConnectionData )); // here we are finished, so we can collect the table from connection data TTableConnectionData::const_iterator aConnDataIter = m_vTableConnectionData.begin(); TTableConnectionData::const_iterator aConnDataEnd = m_vTableConnectionData.end(); @@ -501,7 +501,7 @@ void ORelationController::loadData() if ( aMeta.supportsThreads() ) { const sal_Int32 nMaxElements = (nCount / MAX_THREADS) +1; - sal_Int32 nStart = 0,nEnd = ::std::min(nMaxElements,nCount); + sal_Int32 nStart = 0,nEnd = std::min(nMaxElements,nCount); while(nStart != nEnd) { ++m_nThreadEvent; @@ -511,7 +511,7 @@ void ORelationController::loadData() pThread->resume(); nStart = nEnd; nEnd += nMaxElements; - nEnd = ::std::min(nEnd,nCount); + nEnd = std::min(nEnd,nCount); } } else diff --git a/dbaccess/source/ui/relationdesign/RelationTableView.cxx b/dbaccess/source/ui/relationdesign/RelationTableView.cxx index d0af2765bb64..705931b5cd0e 100644 --- a/dbaccess/source/ui/relationdesign/RelationTableView.cxx +++ b/dbaccess/source/ui/relationdesign/RelationTableView.cxx @@ -98,7 +98,7 @@ void ORelationTableView::ReSync() // Tables could have been hidden in the database, which are part of a relation. Or a table was in layout // (quite often without a relation) and does not exist anymore. In both cases creation of TabWins will fail // and all TabWinDatas and related ConnDates should be deleted. - ::std::vector< OUString> arrInvalidTables; + std::vector< OUString> arrInvalidTables; // create and insert windows TTableWindowData& rTabWinDataList = m_pView->getController().getTableWindowData(); @@ -116,7 +116,7 @@ void ORelationTableView::ReSync() pTabWin.disposeAndClear(); arrInvalidTables.push_back(pData->GetTableName()); - rTabWinDataList.erase( ::std::remove(rTabWinDataList.begin(), rTabWinDataList.end(), *aIter), rTabWinDataList.end()); + rTabWinDataList.erase( std::remove(rTabWinDataList.begin(), rTabWinDataList.end(), *aIter), rTabWinDataList.end()); continue; } @@ -139,14 +139,14 @@ void ORelationTableView::ReSync() { // do the tables to the connection exist? OUString strTabExistenceTest = pTabConnData->getReferencingTable()->GetTableName(); - bool bInvalid = ::std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end(); + bool bInvalid = std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end(); strTabExistenceTest = pTabConnData->getReferencedTable()->GetTableName(); - bInvalid = bInvalid || ::std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end(); + bInvalid = bInvalid || std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end(); if (bInvalid) { // no -> bad luck, the connection is gone - rTabConnDataList.erase( ::std::remove(rTabConnDataList.begin(), rTabConnDataList.end(), *aConIter), rTabConnDataList.end() ); + rTabConnDataList.erase( std::remove(rTabConnDataList.begin(), rTabConnDataList.end(), *aConIter), rTabConnDataList.end() ); continue; } } diff --git a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx index 9476b33912a0..c96355c5dff2 100644 --- a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx +++ b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx @@ -189,13 +189,13 @@ void OFieldDescription::FillFromTypeInfo(const TOTypeInfoSP& _pType,bool _bForce sal_Int32 nPrec = DEFAULT_VARCHAR_PRECISION; if ( GetPrecision() ) nPrec = GetPrecision(); - SetPrecision(::std::min<sal_Int32>(nPrec,_pType->nPrecision)); + SetPrecision(std::min<sal_Int32>(nPrec,_pType->nPrecision)); } break; case DataType::TIMESTAMP: if ( bForce && _pType->nMaximumScale) { - SetScale(::std::min<sal_Int32>(GetScale() ? GetScale() : DEFAULT_NUMERIC_SCALE,_pType->nMaximumScale)); + SetScale(std::min<sal_Int32>(GetScale() ? GetScale() : DEFAULT_NUMERIC_SCALE,_pType->nMaximumScale)); } break; default: @@ -216,9 +216,9 @@ void OFieldDescription::FillFromTypeInfo(const TOTypeInfoSP& _pType,bool _bForce } if ( _pType->nPrecision ) - SetPrecision(::std::min<sal_Int32>(nPrec ? nPrec : DEFAULT_NUMERIC_PRECISION,_pType->nPrecision)); + SetPrecision(std::min<sal_Int32>(nPrec ? nPrec : DEFAULT_NUMERIC_PRECISION,_pType->nPrecision)); if ( _pType->nMaximumScale ) - SetScale(::std::min<sal_Int32>(GetScale() ? GetScale() : DEFAULT_NUMERIC_SCALE,_pType->nMaximumScale)); + SetScale(std::min<sal_Int32>(GetScale() ? GetScale() : DEFAULT_NUMERIC_SCALE,_pType->nMaximumScale)); } } if ( _pType->aCreateParams.isEmpty() ) diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx index 9d4c26304a37..f089175f29ac 100644 --- a/dbaccess/source/ui/tabledesign/TEditControl.cxx +++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx @@ -483,8 +483,8 @@ sal_Int32 OTableEditorCtrl::HasFieldName( const OUString& rFieldName ) ::comphelper::UStringMixEqual bCase(!xMetaData.is() || xMetaData->supportsMixedCaseQuotedIdentifiers()); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_pRowList->begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_pRowList->end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_pRowList->begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_pRowList->end(); sal_Int32 nCount(0); for(;aIter != aEnd;++aIter) { @@ -719,7 +719,7 @@ void OTableEditorCtrl::CopyRows() // Copy selected rows to the ClipboardList std::shared_ptr<OTableRow> pClipboardRow; std::shared_ptr<OTableRow> pRow; - ::std::vector< std::shared_ptr<OTableRow> > vClipboardList; + std::vector< std::shared_ptr<OTableRow> > vClipboardList; vClipboardList.reserve(GetSelectRowCount()); for( long nIndex=FirstSelectedRow(); nIndex >= 0 && nIndex < static_cast<long>(m_pRowList->size()); nIndex=NextSelectedRow() ) @@ -769,7 +769,7 @@ OUString OTableEditorCtrl::GenerateName( const OUString& rName ) void OTableEditorCtrl::InsertRows( long nRow ) { - ::std::vector< std::shared_ptr<OTableRow> > vInsertedUndoRedoRows; // need for undo/redo handling + std::vector< std::shared_ptr<OTableRow> > vInsertedUndoRedoRows; // need for undo/redo handling // get rows from clipboard TransferableDataHelper aTransferData(TransferableDataHelper::CreateFromSystemClipboard(GetParent())); if(aTransferData.HasFormat(SotClipboardFormatId::SBA_TABED)) @@ -1449,7 +1449,7 @@ IMPL_LINK_NOARG( OTableEditorCtrl, DelayedPaste, void*, void ) { // Insertion is not allowed, only appending, so test if there are full cells after the PastePosition sal_Int32 nFreeFromPos; // from here on there are only empty rows - ::std::vector< std::shared_ptr<OTableRow> >::const_reverse_iterator aIter = m_pRowList->rbegin(); + std::vector< std::shared_ptr<OTableRow> >::const_reverse_iterator aIter = m_pRowList->rbegin(); for(nFreeFromPos = m_pRowList->size(); aIter != m_pRowList->rend() && (!(*aIter) || !(*aIter)->GetActFieldDescr() || (*aIter)->GetActFieldDescr()->GetName().isEmpty()); --nFreeFromPos, ++aIter) @@ -1514,8 +1514,8 @@ void OTableEditorCtrl::SetPrimaryKey( bool bSet ) MultiSelection aDeletedPrimKeys; aDeletedPrimKeys.SetTotalRange( Range(0,GetRowCount()) ); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_pRowList->begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_pRowList->end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_pRowList->begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_pRowList->end(); for(sal_Int32 nRow = 0;aIter != aEnd;++aIter,++nRow) { OFieldDescription* pFieldDescr = (*aIter)->GetActFieldDescr(); @@ -1557,8 +1557,8 @@ bool OTableEditorCtrl::IsPrimaryKey() { // Are all marked fields part of the Primary Key ? long nPrimaryKeys = 0; - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_pRowList->begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_pRowList->end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_pRowList->begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_pRowList->end(); for(sal_Int32 nRow=0;aIter != aEnd;++aIter,++nRow) { if( IsRowSelected(nRow) && !(*aIter)->IsPrimaryKey() ) diff --git a/dbaccess/source/ui/tabledesign/TEditControl.hxx b/dbaccess/source/ui/tabledesign/TEditControl.hxx index 0c6a44d6e73d..4eb3426b16b7 100644 --- a/dbaccess/source/ui/tabledesign/TEditControl.hxx +++ b/dbaccess/source/ui/tabledesign/TEditControl.hxx @@ -43,7 +43,7 @@ namespace dbaui NONE }; - ::std::vector< ::std::shared_ptr<OTableRow> >* m_pRowList; + std::vector< std::shared_ptr<OTableRow> >* m_pRowList; VclPtr<OSQLNameEdit> pNameCell; VclPtr< ::svt::ListBoxControl> pTypeCell; @@ -51,7 +51,7 @@ namespace dbaui VclPtr<Edit> pDescrCell; VclPtr<OTableFieldDescWin> pDescrWin; // properties of one column - ::std::shared_ptr<OTableRow> pActRow; + std::shared_ptr<OTableRow> pActRow; ImplSVEvent * nCutEvent; ImplSVEvent * nPasteEvent; @@ -143,9 +143,9 @@ namespace dbaui virtual OTableDesignView* GetView() const override; - ::std::vector< ::std::shared_ptr<OTableRow> >* GetRowList(){ return m_pRowList; } + std::vector< std::shared_ptr<OTableRow> >* GetRowList(){ return m_pRowList; } - const ::std::shared_ptr<OTableRow>& GetActRow(){ return pActRow; } + const std::shared_ptr<OTableRow>& GetActRow(){ return pActRow; } void CellModified( long nRow, sal_uInt16 nColId ); void SetReadOnly( bool bRead ); diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index 7d5318942bc3..68ec90e114b1 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -190,14 +190,14 @@ FeatureState OTableController::GetState(sal_uInt16 _nId) const aReturn.bEnabled = true; break; case ID_BROWSER_SAVEDOC: - aReturn.bEnabled = isEditable() && ::std::any_of(m_vRowList.begin(),m_vRowList.end(),::std::mem_fn(&OTableRow::isValid)); + aReturn.bEnabled = isEditable() && std::any_of(m_vRowList.begin(),m_vRowList.end(),std::mem_fn(&OTableRow::isValid)); break; case ID_BROWSER_SAVEASDOC: aReturn.bEnabled = isConnected() && isEditable(); if ( aReturn.bEnabled ) { - aReturn.bEnabled = ::std::any_of(m_vRowList.begin(),m_vRowList.end(), - ::std::mem_fn(&OTableRow::isValid)); + aReturn.bEnabled = std::any_of(m_vRowList.begin(),m_vRowList.end(), + std::mem_fn(&OTableRow::isValid)); } break; @@ -219,8 +219,8 @@ FeatureState OTableController::GetState(sal_uInt16 _nId) const ); if ( aReturn.bEnabled ) { - aReturn.bEnabled = ::std::any_of(m_vRowList.begin(),m_vRowList.end(), - ::std::mem_fn(&OTableRow::isValid)); + aReturn.bEnabled = std::any_of(m_vRowList.begin(),m_vRowList.end(), + std::mem_fn(&OTableRow::isValid)); } break; default: @@ -548,8 +548,8 @@ sal_Bool SAL_CALL OTableController::suspend(sal_Bool /*_bSuspend*/) bool bCheck = true; if ( isModified() ) { - if ( ::std::any_of(m_vRowList.begin(),m_vRowList.end(), - ::std::mem_fn(&OTableRow::isValid)) ) + if ( std::any_of(m_vRowList.begin(),m_vRowList.end(), + std::mem_fn(&OTableRow::isValid)) ) { ScopedVclPtrInstance<MessageDialog> aQry(getView(), "TableDesignSaveModifiedDialog", "dbaccess/ui/tabledesignsavemodifieddialog.ui"); @@ -676,8 +676,8 @@ void OTableController::appendColumns(Reference<XColumnsSupplier>& _rxColSup, boo Reference<XAppend> xAppend(xColumns,UNO_QUERY); OSL_ENSURE(xAppend.is(),"No XAppend Interface!"); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); for(;aIter != aEnd;++aIter) { OSL_ENSURE(*aIter,"OTableRow is null!"); @@ -863,8 +863,8 @@ void OTableController::loadData() for(;pKeyBegin != pKeyEnd;++pKeyBegin) { - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator rowIter = m_vRowList.begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator rowEnd = m_vRowList.end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator rowIter = m_vRowList.begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator rowEnd = m_vRowList.end(); for(;rowIter != rowEnd;++rowIter) { if((*rowIter)->GetActFieldDescr()->GetName() == *pKeyBegin) @@ -907,8 +907,8 @@ bool OTableController::checkColumns(bool _bNew) DatabaseMetaData aMetaData( getConnection() ); ::comphelper::UStringMixEqual bCase(!xMetaData.is() || xMetaData->supportsMixedCaseQuotedIdentifiers()); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); for(;aIter != aEnd;++aIter) { OFieldDescription* pFieldDesc = (*aIter)->GetActFieldDescr(); @@ -916,7 +916,7 @@ bool OTableController::checkColumns(bool _bNew) { bFoundPKey |= (*aIter)->IsPrimaryKey(); // first check for duplicate names - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter2 = aIter+1; + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter2 = aIter+1; for(;aIter2 != aEnd;++aIter2) { OFieldDescription* pCompareDesc = (*aIter2)->GetActFieldDescr(); @@ -993,8 +993,8 @@ void OTableController::alterColumns() comphelper::UStringMixLess( !xMetaData.is() || xMetaData->supportsMixedCaseQuotedIdentifiers())); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); // first look for columns where something other than the name changed sal_Int32 nPos = 0; for(;aIter != aEnd;++aIter,++nPos) @@ -1436,8 +1436,8 @@ void OTableController::reSyncRows() { bool bAlterAllowed = isAlterAllowed(); bool bAddAllowed = isAddAllowed(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); for(;aIter != aEnd;++aIter) { OSL_ENSURE(*aIter,"OTableRow is null!"); @@ -1461,8 +1461,8 @@ OUString OTableController::createUniqueName(const OUString& _rName) ::comphelper::UStringMixEqual bCase(!xMetaData.is() || xMetaData->supportsMixedCaseQuotedIdentifiers()); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); for(sal_Int32 i=0;aIter != aEnd;++aIter) { OFieldDescription* pFieldDesc = (*aIter)->GetActFieldDescr(); @@ -1513,8 +1513,8 @@ void OTableController::reload() sal_Int32 OTableController::getFirstEmptyRowPosition() { sal_Int32 nRet = -1; - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vRowList.begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vRowList.end(); for(;aIter != aEnd;++aIter) { if ( !*aIter || !(*aIter)->GetActFieldDescr() || (*aIter)->GetActFieldDescr()->GetName().isEmpty() ) diff --git a/dbaccess/source/ui/tabledesign/TableRowExchange.cxx b/dbaccess/source/ui/tabledesign/TableRowExchange.cxx index 9a8c15fc2c91..586b3216e380 100644 --- a/dbaccess/source/ui/tabledesign/TableRowExchange.cxx +++ b/dbaccess/source/ui/tabledesign/TableRowExchange.cxx @@ -26,7 +26,7 @@ namespace dbaui { using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; - OTableRowExchange::OTableRowExchange(const ::std::vector< std::shared_ptr<OTableRow> >& _rvTableRow) + OTableRowExchange::OTableRowExchange(const std::vector< std::shared_ptr<OTableRow> >& _rvTableRow) : m_vTableRow(_rvTableRow) { } @@ -34,12 +34,12 @@ namespace dbaui { if(nUserObjectId == SotClipboardFormatId::SBA_TABED) { - ::std::vector< std::shared_ptr<OTableRow> >* pRows = static_cast< ::std::vector< std::shared_ptr<OTableRow> >* >(pUserObject); + std::vector< std::shared_ptr<OTableRow> >* pRows = static_cast< std::vector< std::shared_ptr<OTableRow> >* >(pUserObject); if(pRows) { (*rxOStm).WriteInt32( pRows->size() ); // first stream the size - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = pRows->begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = pRows->end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = pRows->begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = pRows->end(); for(;aIter != aEnd;++aIter) WriteOTableRow(*rxOStm, **aIter); return true; diff --git a/dbaccess/source/ui/tabledesign/TableUndo.cxx b/dbaccess/source/ui/tabledesign/TableUndo.cxx index bd97f0618613..e23b4e87ddb8 100644 --- a/dbaccess/source/ui/tabledesign/TableUndo.cxx +++ b/dbaccess/source/ui/tabledesign/TableUndo.cxx @@ -160,7 +160,7 @@ OTableEditorDelUndoAct::OTableEditorDelUndoAct( OTableEditorCtrl* pOwner) : OTableEditorUndoAct( pOwner ,STR_TABED_UNDO_ROWDELETED) { // fill DeletedRowList - ::std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pOwner->GetRowList(); + std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pOwner->GetRowList(); long nIndex = pOwner->FirstSelectedRow(); std::shared_ptr<OTableRow> pOriginalRow; std::shared_ptr<OTableRow> pNewRow; @@ -184,11 +184,11 @@ void OTableEditorDelUndoAct::Undo() { // Insert the deleted line sal_uLong nPos; - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_aDeletedRows.begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_aDeletedRows.end(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_aDeletedRows.begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_aDeletedRows.end(); std::shared_ptr<OTableRow> pNewOrigRow; - ::std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); + std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); for(;aIter != aEnd;++aIter) { @@ -206,9 +206,9 @@ void OTableEditorDelUndoAct::Redo() { // delete line again sal_uLong nPos; - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_aDeletedRows.begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_aDeletedRows.end(); - ::std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_aDeletedRows.begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_aDeletedRows.end(); + std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); for(;aIter != aEnd;++aIter) { @@ -224,7 +224,7 @@ void OTableEditorDelUndoAct::Redo() // class OTableEditorInsUndoAct OTableEditorInsUndoAct::OTableEditorInsUndoAct( OTableEditorCtrl* pOwner, long nInsertPosition , - const ::std::vector< std::shared_ptr<OTableRow> >& _vInsertedRows) + const std::vector< std::shared_ptr<OTableRow> >& _vInsertedRows) :OTableEditorUndoAct( pOwner,STR_TABED_UNDO_ROWINSERTED ) ,m_vInsertedRows(_vInsertedRows) ,m_nInsPos( nInsertPosition ) @@ -239,7 +239,7 @@ OTableEditorInsUndoAct::~OTableEditorInsUndoAct() void OTableEditorInsUndoAct::Undo() { // delete lines again - ::std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); + std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); for( long i=(m_nInsPos+m_vInsertedRows.size()-1); i>(m_nInsPos-1); i-- ) { pOriginalRows->erase(pOriginalRows->begin()+i); @@ -256,9 +256,9 @@ void OTableEditorInsUndoAct::Redo() // insert lines again long nInsertRow = m_nInsPos; std::shared_ptr<OTableRow> pRow; - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vInsertedRows.begin(); - ::std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vInsertedRows.end(); - ::std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aIter = m_vInsertedRows.begin(); + std::vector< std::shared_ptr<OTableRow> >::const_iterator aEnd = m_vInsertedRows.end(); + std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); for(;aIter != aEnd;++aIter) { pRow.reset(new OTableRow( **aIter )); @@ -287,7 +287,7 @@ OTableEditorInsNewUndoAct::~OTableEditorInsNewUndoAct() void OTableEditorInsNewUndoAct::Undo() { // delete inserted lines - ::std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); + std::vector< std::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList(); for( long i=(m_nInsPos+m_nInsRows-1); i>(m_nInsPos-1); i-- ) { @@ -303,7 +303,7 @@ void OTableEditorInsNewUndoAct::Undo() void OTableEditorInsNewUndoAct::Redo() { // insert lines again - ::std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); + std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); for( long i=m_nInsPos; i<(m_nInsPos+m_nInsRows); i++ ) pRowList->insert( pRowList->begin()+i,std::make_shared<OTableRow>() ); @@ -329,7 +329,7 @@ OPrimKeyUndoAct::~OPrimKeyUndoAct() void OPrimKeyUndoAct::Undo() { - ::std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); + std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); std::shared_ptr<OTableRow> pRow; long nIndex; @@ -355,7 +355,7 @@ void OPrimKeyUndoAct::Undo() void OPrimKeyUndoAct::Redo() { - ::std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); + std::vector< std::shared_ptr<OTableRow> >* pRowList = pTabEdCtrl->GetRowList(); long nIndex; // delete the deleted keys diff --git a/dbaccess/source/ui/tabledesign/TableUndo.hxx b/dbaccess/source/ui/tabledesign/TableUndo.hxx index afb75c6419c2..37b990a586f8 100644 --- a/dbaccess/source/ui/tabledesign/TableUndo.hxx +++ b/dbaccess/source/ui/tabledesign/TableUndo.hxx @@ -88,7 +88,7 @@ namespace dbaui class OTableEditorDelUndoAct : public OTableEditorUndoAct { protected: - ::std::vector< std::shared_ptr<OTableRow> > m_aDeletedRows; + std::vector< std::shared_ptr<OTableRow> > m_aDeletedRows; virtual void Undo() override; virtual void Redo() override; @@ -100,7 +100,7 @@ namespace dbaui class OTableEditorInsUndoAct : public OTableEditorUndoAct { protected: - ::std::vector< std::shared_ptr<OTableRow> > m_vInsertedRows; + std::vector< std::shared_ptr<OTableRow> > m_vInsertedRows; long m_nInsPos; virtual void Undo() override; @@ -108,7 +108,7 @@ namespace dbaui public: OTableEditorInsUndoAct( OTableEditorCtrl* pOwner, long nInsertPosition, - const ::std::vector< std::shared_ptr<OTableRow> >& _vInsertedRows); + const std::vector< std::shared_ptr<OTableRow> >& _vInsertedRows); virtual ~OTableEditorInsUndoAct() override; }; diff --git a/dbaccess/source/ui/uno/copytablewizard.cxx b/dbaccess/source/ui/uno/copytablewizard.cxx index b68b0a6f30d7..6bf46be55a74 100644 --- a/dbaccess/source/ui/uno/copytablewizard.cxx +++ b/dbaccess/source/ui/uno/copytablewizard.cxx @@ -234,7 +234,7 @@ namespace dbaui /** extracts the source object (table or query) described by the given descriptor, relative to m_xSourceConnection */ - ::std::unique_ptr< ICopyTableSourceObject > + std::unique_ptr< ICopyTableSourceObject > impl_extractSourceObject_throw( const Reference< XPropertySet >& _rxDescriptor, sal_Int32& _out_rCommandType @@ -333,7 +333,7 @@ private: // source SharedConnection m_xSourceConnection; sal_Int32 m_nCommandType; - ::std::unique_ptr< ICopyTableSourceObject > + std::unique_ptr< ICopyTableSourceObject > m_pSourceObject; Reference< XResultSet > m_xSourceResultSet; Sequence< Any > m_aSourceSelection; @@ -711,7 +711,7 @@ void CopyTableWizard::impl_checkForUnsupportedSettings_throw( const Reference< X } -::std::unique_ptr< ICopyTableSourceObject > CopyTableWizard::impl_extractSourceObject_throw( const Reference< XPropertySet >& _rxDescriptor, sal_Int32& _out_rCommandType ) const +std::unique_ptr< ICopyTableSourceObject > CopyTableWizard::impl_extractSourceObject_throw( const Reference< XPropertySet >& _rxDescriptor, sal_Int32& _out_rCommandType ) const { OSL_PRECOND( _rxDescriptor.is() && m_xSourceConnection.is(), "CopyTableWizard::impl_extractSourceObject_throw: illegal arguments!" ); @@ -728,7 +728,7 @@ void CopyTableWizard::impl_checkForUnsupportedSettings_throw( const Reference< X OSL_VERIFY( _rxDescriptor->getPropertyValue( PROPERTY_COMMAND ) >>= sCommand ); OSL_VERIFY( _rxDescriptor->getPropertyValue( PROPERTY_COMMAND_TYPE ) >>= _out_rCommandType ); - ::std::unique_ptr< ICopyTableSourceObject > pSourceObject; + std::unique_ptr< ICopyTableSourceObject > pSourceObject; Reference< XNameAccess > xContainer; switch ( _out_rCommandType ) { @@ -968,7 +968,7 @@ namespace class ValueTransfer { public: - ValueTransfer( const sal_Int32& _rSourcePos, const sal_Int32& _rDestPos, const ::std::vector< sal_Int32 >& _rColTypes, + ValueTransfer( const sal_Int32& _rSourcePos, const sal_Int32& _rDestPos, const std::vector< sal_Int32 >& _rColTypes, const Reference< XRow >& _rxSource, const Reference< XParameters >& _rxDest ) :m_rSourcePos( _rSourcePos ) ,m_rDestPos( _rDestPos ) @@ -1003,7 +1003,7 @@ namespace private: const sal_Int32& m_rSourcePos; const sal_Int32& m_rDestPos; - const ::std::vector< sal_Int32 > m_rColTypes; + const std::vector< sal_Int32 > m_rColTypes; const Reference< XRow > m_xSource; const Reference< XParameters > m_xDest; }; @@ -1106,11 +1106,11 @@ void CopyTableWizard::impl_copyRows_throw( const Reference< XResultSet >& _rxSou // we need a vector which all types sal_Int32 nCount = xMeta->getColumnCount(); - ::std::vector< sal_Int32 > aSourceColTypes; + std::vector< sal_Int32 > aSourceColTypes; aSourceColTypes.reserve( nCount + 1 ); aSourceColTypes.push_back( -1 ); // just to avoid a every time i-1 call - ::std::vector< sal_Int32 > aSourcePrec; + std::vector< sal_Int32 > aSourcePrec; aSourcePrec.reserve( nCount + 1 ); aSourcePrec.push_back( -1 ); // just to avoid a every time i-1 call diff --git a/desktop/qa/deployment_misc/test_dp_version.cxx b/desktop/qa/deployment_misc/test_dp_version.cxx index 836608d24167..5ec747b0014b 100644 --- a/desktop/qa/deployment_misc/test_dp_version.cxx +++ b/desktop/qa/deployment_misc/test_dp_version.cxx @@ -61,7 +61,7 @@ void Test::test() { OUString("9223372036854775807"), ::dp_misc::GREATER } }; - for (::std::size_t i = 0; i < SAL_N_ELEMENTS(data); ++i) { + for (std::size_t i = 0; i < SAL_N_ELEMENTS(data); ++i) { CPPUNIT_ASSERT_EQUAL( data[i].order, ::dp_misc::compareVersions(data[i].version1, data[i].version2)); diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx index 14e39ce0e287..2f03578c9968 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx +++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx @@ -90,7 +90,7 @@ struct StrAllFiles : public rtl::StaticWithInit< OUString, StrAllFiles > { const OUString operator () () { const SolarMutexGuard guard; - ::std::unique_ptr< ResMgr > const resmgr( ResMgr::CreateResMgr( "fps_office" ) ); + std::unique_ptr< ResMgr > const resmgr( ResMgr::CreateResMgr( "fps_office" ) ); OSL_ASSERT( resmgr.get() != nullptr ); return ResId(STR_FILTERNAME_ALL, *resmgr.get()).toString(); } @@ -687,7 +687,7 @@ uno::Sequence< OUString > ExtMgrDialog::raiseAddPicker() xFilePicker->setDisplayDirectory( m_sLastFolderURL ); // collect and set filter list: - typedef ::std::map< OUString, OUString > t_string2string; + typedef std::map< OUString, OUString > t_string2string; t_string2string title2filter; OUString sDefaultFilter( StrAllFiles::get() ); @@ -701,7 +701,7 @@ uno::Sequence< OUString > ExtMgrDialog::raiseAddPicker() if (!filter.isEmpty()) { const OUString title( xPackageType->getShortDescription() ); - const ::std::pair< t_string2string::iterator, bool > insertion( + const std::pair< t_string2string::iterator, bool > insertion( title2filter.insert( t_string2string::value_type( title, filter ) ) ); if ( ! insertion.second ) { // already existing, append extensions: diff --git a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx index fbdd34bba1d2..155a28284520 100644 --- a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx +++ b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx @@ -905,7 +905,7 @@ void ExtensionCmdQueue::Thread::_checkForUpdates( { // If there is at least one directly downloadable extension then we // open the install dialog. - ::std::vector< UpdateData > dataDownload; + std::vector< UpdateData > dataDownload; int countWebsiteDownload = 0; typedef std::vector< dp_gui::UpdateData >::const_iterator cit; diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx index 5486a4ec69a6..e76a2932a313 100644 --- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx +++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx @@ -890,7 +890,7 @@ bool ExtensionBox_Impl::FindEntryPos( const TEntry_Impl& rEntry, const long nSta void ExtensionBox_Impl::cleanVecListenerAdded() { - typedef ::std::vector<uno::WeakReference<deployment::XPackage> >::iterator IT; + typedef std::vector<uno::WeakReference<deployment::XPackage> >::iterator IT; IT i = m_vListenerAdded.begin(); while( i != m_vListenerAdded.end()) { @@ -907,7 +907,7 @@ void ExtensionBox_Impl::addEventListenerOnce( { //make sure to only add the listener once cleanVecListenerAdded(); - if ( ::std::none_of(m_vListenerAdded.begin(), m_vListenerAdded.end(), + if ( std::none_of(m_vListenerAdded.begin(), m_vListenerAdded.end(), FindWeakRef(extension)) ) { extension->addEventListener( m_xRemoveListener.get() ); diff --git a/desktop/source/deployment/gui/dp_gui_service.cxx b/desktop/source/deployment/gui/dp_gui_service.cxx index 3deb997c43cf..d449f055cc1c 100644 --- a/desktop/source/deployment/gui/dp_gui_service.cxx +++ b/desktop/source/deployment/gui/dp_gui_service.cxx @@ -202,7 +202,7 @@ void ServiceImpl::startExecuteModal( Reference< ui::dialogs::XDialogClosedListener > const & xListener ) { bool bCloseDialog = true; // only used if m_bShowUpdateOnly is true - ::std::unique_ptr<Application> app; + std::unique_ptr<Application> app; //ToDo: synchronize access to s_dialog !!! if (! dp_gui::TheExtensionManager::s_ExtMgr.is()) { diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx index 3decee341847..fc3a079b48d5 100644 --- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx +++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx @@ -1275,7 +1275,7 @@ IMPL_LINK_NOARG(UpdateDialog, okHandler, Button*, void) { //If users are going to update a shared extension then we need //to warn them - typedef ::std::vector<UpdateData>::const_iterator CIT; + typedef std::vector<UpdateData>::const_iterator CIT; for (CIT i = m_enabledUpdates.begin(); i < m_enabledUpdates.end(); ++i) { OSL_ASSERT(i->aInstalledPackage.is()); diff --git a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx index 0254152a927a..8f18c13c8060 100644 --- a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx +++ b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx @@ -377,7 +377,7 @@ void UpdateInstallDialog::Thread::downloadExtensions() } dp_misc::DescriptionInfoset info(m_xComponentContext, curData.aUpdateInfo); //remember occurring exceptions in case we need to print out error information - ::std::vector< ::std::pair<OUString, cssu::Exception> > vecExceptions; + std::vector< std::pair<OUString, cssu::Exception> > vecExceptions; cssu::Sequence<OUString> seqDownloadURLs = info.getUpdateDownloadUrls(); OSL_ENSURE(seqDownloadURLs.getLength() > 0, "No download URL provided!"); for (sal_Int32 j = 0; j < seqDownloadURLs.getLength(); j++) @@ -391,7 +391,7 @@ void UpdateInstallDialog::Thread::downloadExtensions() } catch ( cssu::Exception & e ) { - vecExceptions.push_back( ::std::make_pair(seqDownloadURLs[j], e)); + vecExceptions.push_back( std::make_pair(seqDownloadURLs[j], e)); //There can be several different errors, for example, the URL is wrong, webserver cannot be reached, //name cannot be resolved. The UCB helper API does not specify different special exceptions for these //cases. Therefore ignore and continue. @@ -408,7 +408,7 @@ void UpdateInstallDialog::Thread::downloadExtensions() { //Construct a string of all messages contained in the exceptions plus the respective download URLs OUStringBuffer buf(256); - typedef ::std::vector< ::std::pair<OUString, cssu::Exception > >::const_iterator CIT; + typedef std::vector< std::pair<OUString, cssu::Exception > >::const_iterator CIT; for (CIT j = vecExceptions.begin(); j != vecExceptions.end(); ++j) { if (j != vecExceptions.begin()) diff --git a/desktop/source/deployment/inc/dp_descriptioninfoset.hxx b/desktop/source/deployment/inc/dp_descriptioninfoset.hxx index f3d7281a3892..21b190856b10 100644 --- a/desktop/source/deployment/inc/dp_descriptioninfoset.hxx +++ b/desktop/source/deployment/inc/dp_descriptioninfoset.hxx @@ -115,7 +115,7 @@ public: In case there is no publisher element then a pair of two empty strings is returned. */ - ::std::pair< OUString, OUString > getLocalizedPublisherNameAndURL() const; + std::pair< OUString, OUString > getLocalizedPublisherNameAndURL() const; /** Returns the URL for the release notes corresponding to the office's locale. diff --git a/desktop/source/deployment/inc/dp_ucb.h b/desktop/source/deployment/inc/dp_ucb.h index 174af57c87e9..3c97fc6a1e89 100644 --- a/desktop/source/deployment/inc/dp_ucb.h +++ b/desktop/source/deployment/inc/dp_ucb.h @@ -89,7 +89,7 @@ bool readLine( OUString * res, OUString const & startingWith, ::ucbhelper::Content & ucb_content, rtl_TextEncoding textenc ); DESKTOP_DEPLOYMENTMISC_DLLPUBLIC -bool readProperties( ::std::list< ::std::pair< OUString, OUString> > & out_result, +bool readProperties( std::list< std::pair< OUString, OUString> > & out_result, ::ucbhelper::Content & ucb_content); diff --git a/desktop/source/deployment/inc/dp_update.hxx b/desktop/source/deployment/inc/dp_update.hxx index 0e07563b59c1..390fb0c6ee87 100644 --- a/desktop/source/deployment/inc/dp_update.hxx +++ b/desktop/source/deployment/inc/dp_update.hxx @@ -122,7 +122,7 @@ UpdateInfoMap getOnlineUpdateInfos( css::uno::Reference< css::deployment::XExtensionManager> const & xExtMgr, css::uno::Reference< css::deployment::XUpdateInformationProvider > const & updateInformation, std::vector< css::uno::Reference< css::deployment::XPackage > > const * extensionList, - ::std::vector< ::std::pair< css::uno::Reference< + std::vector< std::pair< css::uno::Reference< css::deployment::XPackage>, css::uno::Any> > & out_errors); /* retunrs the highest version from the provided arguments. diff --git a/desktop/source/deployment/manager/dp_activepackages.cxx b/desktop/source/deployment/manager/dp_activepackages.cxx index c9234ae10735..410c0aab528a 100644 --- a/desktop/source/deployment/manager/dp_activepackages.cxx +++ b/desktop/source/deployment/manager/dp_activepackages.cxx @@ -169,7 +169,7 @@ ActivePackages::Entries ActivePackages::getEntries() const { { if (!i->first.isEmpty() && i->first[0] == separator) { es.push_back( - ::std::make_pair( + std::make_pair( OUString( i->first.getStr() + 1, i->first.getLength() - 1, RTL_TEXTENCODING_UTF8), @@ -178,7 +178,7 @@ ActivePackages::Entries ActivePackages::getEntries() const { OUString fn( OStringToOUString(i->first, RTL_TEXTENCODING_UTF8)); es.push_back( - ::std::make_pair( + std::make_pair( ::dp_misc::generateLegacyIdentifier(fn), decodeOldData(fn, i->second))); } diff --git a/desktop/source/deployment/manager/dp_activepackages.hxx b/desktop/source/deployment/manager/dp_activepackages.hxx index 93b593041fbd..59533819cd0d 100644 --- a/desktop/source/deployment/manager/dp_activepackages.hxx +++ b/desktop/source/deployment/manager/dp_activepackages.hxx @@ -61,7 +61,7 @@ public: OUString failedPrerequisites; }; - typedef ::std::vector< ::std::pair< OUString, Data > > Entries; + typedef std::vector< std::pair< OUString, Data > > Entries; ActivePackages(); diff --git a/desktop/source/deployment/manager/dp_extensionmanager.cxx b/desktop/source/deployment/manager/dp_extensionmanager.cxx index 0426abbe4349..68305de971b1 100644 --- a/desktop/source/deployment/manager/dp_extensionmanager.cxx +++ b/desktop/source/deployment/manager/dp_extensionmanager.cxx @@ -75,23 +75,23 @@ namespace { struct CompIdentifiers { - bool operator() (::std::vector<Reference<css::deployment::XPackage> > const & a, - ::std::vector<Reference<css::deployment::XPackage> > const & b) + bool operator() (std::vector<Reference<css::deployment::XPackage> > const & a, + std::vector<Reference<css::deployment::XPackage> > const & b) { if (getName(a).compareTo(getName(b)) < 0) return true; return false; } - static OUString getName(::std::vector<Reference<css::deployment::XPackage> > const & a); + static OUString getName(std::vector<Reference<css::deployment::XPackage> > const & a); }; -OUString CompIdentifiers::getName(::std::vector<Reference<css::deployment::XPackage> > const & a) +OUString CompIdentifiers::getName(std::vector<Reference<css::deployment::XPackage> > const & a) { OSL_ASSERT(a.size() == 3); //get the first non-null reference Reference<css::deployment::XPackage> extension; - ::std::vector<Reference<css::deployment::XPackage> >::const_iterator it = a.begin(); + std::vector<Reference<css::deployment::XPackage> >::const_iterator it = a.begin(); for (; it != a.end(); ++it) { if (it->is()) @@ -241,7 +241,7 @@ void ExtensionManager::addExtensionsToMap( { //Determine the index in the vector where these extensions are to be //added. - ::std::list<OUString>::const_iterator citNames = + std::list<OUString>::const_iterator citNames = m_repositoryNames.begin(); int index = 0; for (;citNames != m_repositoryNames.end(); ++citNames, ++index) @@ -257,7 +257,7 @@ void ExtensionManager::addExtensionsToMap( id2extensions::iterator ivec = mapExt.find(id); if (ivec == mapExt.end()) { - ::std::vector<Reference<css::deployment::XPackage> > vec(3); + std::vector<Reference<css::deployment::XPackage> > vec(3); vec[index] = xExtension; mapExt[id] = vec; } @@ -280,13 +280,13 @@ void ExtensionManager::addExtensionsToMap( The number of elements is always three, unless the number of repository changes. */ -::std::list<Reference<css::deployment::XPackage> > +std::list<Reference<css::deployment::XPackage> > ExtensionManager::getExtensionsWithSameId( OUString const & identifier, OUString const & fileName, Reference< ucb::XCommandEnvironment> const & /*xCmdEnv*/) { - ::std::list<Reference<css::deployment::XPackage> > extensionList; + std::list<Reference<css::deployment::XPackage> > extensionList; Reference<css::deployment::XPackageManager> lRepos[] = { getUserRepository(), getSharedRepository(), getBundledRepository() }; for (int i(0); i != SAL_N_ELEMENTS(lRepos); ++i) @@ -315,13 +315,13 @@ ExtensionManager::getExtensionsWithSameIdentifier( { try { - ::std::list<Reference<css::deployment::XPackage> > listExtensions = + std::list<Reference<css::deployment::XPackage> > listExtensions = getExtensionsWithSameId( identifier, fileName, xCmdEnv); bool bHasExtension = false; //throw an IllegalArgumentException if there is no extension at all. - typedef ::std::list<Reference<css::deployment::XPackage> >::const_iterator CIT; + typedef std::list<Reference<css::deployment::XPackage> >::const_iterator CIT; for (CIT i = listExtensions.begin(); i != listExtensions.end(); ++i) bHasExtension |= i->is(); if (!bHasExtension) @@ -355,7 +355,7 @@ ExtensionManager::getExtensionsWithSameIdentifier( bool ExtensionManager::isUserDisabled( OUString const & identifier, OUString const & fileName) { - ::std::list<Reference<css::deployment::XPackage> > listExtensions; + std::list<Reference<css::deployment::XPackage> > listExtensions; try { listExtensions = getExtensionsWithSameId(identifier, fileName); @@ -408,7 +408,7 @@ void ExtensionManager::activateExtension( Reference<task::XAbortChannel> const & xAbortChannel, Reference<ucb::XCommandEnvironment> const & xCmdEnv ) { - ::std::list<Reference<css::deployment::XPackage> > listExtensions; + std::list<Reference<css::deployment::XPackage> > listExtensions; try { listExtensions = getExtensionsWithSameId(identifier, fileName); } catch (const lang::IllegalArgumentException &) { @@ -1111,16 +1111,16 @@ uno::Sequence< uno::Sequence<Reference<css::deployment::XPackage> > > getTmpRepository(); //copy the values of the map to a vector for sorting - ::std::vector< ::std::vector<Reference<css::deployment::XPackage> > > + std::vector< std::vector<Reference<css::deployment::XPackage> > > vecExtensions; id2extensions::const_iterator mapIt = mapExt.begin(); for (;mapIt != mapExt.end(); ++mapIt) vecExtensions.push_back(mapIt->second); //sort the element according to the identifier - ::std::sort(vecExtensions.begin(), vecExtensions.end(), CompIdentifiers()); + std::sort(vecExtensions.begin(), vecExtensions.end(), CompIdentifiers()); - ::std::vector< ::std::vector<Reference<css::deployment::XPackage> > >::const_iterator + std::vector< std::vector<Reference<css::deployment::XPackage> > >::const_iterator citVecVec = vecExtensions.begin(); sal_Int32 j = 0; uno::Sequence< uno::Sequence<Reference<css::deployment::XPackage> > > seqSeq(vecExtensions.size()); diff --git a/desktop/source/deployment/manager/dp_extensionmanager.hxx b/desktop/source/deployment/manager/dp_extensionmanager.hxx index 9b113ce105fe..fd060446a9a2 100644 --- a/desktop/source/deployment/manager/dp_extensionmanager.hxx +++ b/desktop/source/deployment/manager/dp_extensionmanager.hxx @@ -149,7 +149,7 @@ private: priority. That is, the first element is "user" followed by "shared" and then "bundled" */ - ::std::list< OUString > m_repositoryNames; + std::list< OUString > m_repositoryNames; css::uno::Reference<css::deployment::XPackageManager> getUserRepository(); css::uno::Reference<css::deployment::XPackageManager> getSharedRepository(); @@ -176,7 +176,7 @@ private: css::uno::Reference<css::task::XAbortChannel> const & xAbortChannel, css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv ); - ::std::list<css::uno::Reference<css::deployment::XPackage> > + std::list<css::uno::Reference<css::deployment::XPackage> > getExtensionsWithSameId(OUString const & identifier, OUString const & fileName, css::uno::Reference< css::ucb::XCommandEnvironment> const & xCmdEnv = diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx index 8b9d18479847..55c42ad8c920 100644 --- a/desktop/source/deployment/manager/dp_manager.cxx +++ b/desktop/source/deployment/manager/dp_manager.cxx @@ -190,8 +190,8 @@ void PackageManagerImpl::initActivationLayer( ::ucbhelper::INCLUDE_DOCUMENTS_ONLY ) ); // get all temp directories: - ::std::vector<OUString> tempEntries; - ::std::vector<OUString> removedEntries; + std::vector<OUString> tempEntries; + std::vector<OUString> removedEntries; while (xResultSet->next()) { OUString title( @@ -219,7 +219,7 @@ void PackageManagerImpl::initActivationLayer( for (OUString & tempEntry : tempEntries) { const MatchTempDir match( tempEntry ); - if (::std::none_of( id2temp.begin(), id2temp.end(), match )) + if (std::none_of( id2temp.begin(), id2temp.end(), match )) { const OUString url( makeURL(m_activePackages_expanded, tempEntry ) ); @@ -228,7 +228,7 @@ void PackageManagerImpl::initActivationLayer( //added extensions if there is no xxx.tmpremoved file. if (bShared) { - if (::std::find(removedEntries.begin(), removedEntries.end(), tempEntry) == + if (std::find(removedEntries.begin(), removedEntries.end(), tempEntry) == removedEntries.end()) { continue; @@ -1010,7 +1010,7 @@ Sequence< Reference<deployment::XPackage> > PackageManagerImpl::getDeployedPackages_( Reference<XCommandEnvironment> const & xCmdEnv ) { - ::std::vector< Reference<deployment::XPackage> > packages; + std::vector< Reference<deployment::XPackage> > packages; ActivePackages::Entries id2temp( m_activePackagesDB->getEntries() ); ActivePackages::Entries::const_iterator iPos( id2temp.begin() ); ActivePackages::Entries::const_iterator const iEnd( id2temp.end() ); @@ -1332,7 +1332,7 @@ bool PackageManagerImpl::synchronizeAddedExtensions( //installed the extension it was already checked if there is one with the //same identifier. const MatchTempDir match(titleEncoded); - if (::std::none_of( id2temp.begin(), id2temp.end(), match )) + if (std::none_of( id2temp.begin(), id2temp.end(), match )) { // The folder was not found in the data base, so it must be @@ -1432,7 +1432,7 @@ sal_Bool PackageManagerImpl::synchronize( Sequence< Reference<deployment::XPackage> > PackageManagerImpl::getExtensionsWithUnacceptedLicenses( Reference<ucb::XCommandEnvironment> const & xCmdEnv) { - ::std::vector<Reference<deployment::XPackage> > vec; + std::vector<Reference<deployment::XPackage> > vec; try { diff --git a/desktop/source/deployment/manager/dp_manager.h b/desktop/source/deployment/manager/dp_manager.h index cafd630e12c3..dd12b59fc957 100644 --- a/desktop/source/deployment/manager/dp_manager.h +++ b/desktop/source/deployment/manager/dp_manager.h @@ -50,7 +50,7 @@ class PackageManagerImpl : private ::dp_misc::MutexHolder, public t_pm_helper OUString m_activePackages; OUString m_activePackages_expanded; - ::std::unique_ptr< ActivePackages > m_activePackagesDB; + std::unique_ptr< ActivePackages > m_activePackagesDB; //This mutex is only used for synchronization in addPackage ::osl::Mutex m_addMutex; css::uno::Reference<css::ucb::XProgressHandler> m_xLogFile; diff --git a/desktop/source/deployment/manager/dp_managerfac.cxx b/desktop/source/deployment/manager/dp_managerfac.cxx index ab1cc4466f66..b2e9fc418d8e 100644 --- a/desktop/source/deployment/manager/dp_managerfac.cxx +++ b/desktop/source/deployment/manager/dp_managerfac.cxx @@ -128,7 +128,7 @@ PackageManagerFactoryImpl::getPackageManager( OUString const & context ) guard.clear(); xRet.set( PackageManagerImpl::create( m_xComponentContext, context ) ); guard.reset(); - ::std::pair< t_string2weakref::iterator, bool > insertion( + std::pair< t_string2weakref::iterator, bool > insertion( m_managers.insert( t_string2weakref::value_type( context, xRet ) ) ); if (insertion.second) { diff --git a/desktop/source/deployment/manager/dp_properties.cxx b/desktop/source/deployment/manager/dp_properties.cxx index a3f5ac54ef33..3ecab8aa169a 100644 --- a/desktop/source/deployment/manager/dp_properties.cxx +++ b/desktop/source/deployment/manager/dp_properties.cxx @@ -49,14 +49,14 @@ ExtensionProperties::ExtensionProperties( { m_propFileUrl = urlExtension + "properties"; - ::std::list< ::std::pair< OUString, OUString> > props; + std::list< std::pair< OUString, OUString> > props; if (! dp_misc::create_ucb_content(nullptr, m_propFileUrl, nullptr, false)) return; ::ucbhelper::Content contentProps(m_propFileUrl, m_xCmdEnv, m_xContext); dp_misc::readProperties(props, contentProps); - typedef ::std::list< ::std::pair< OUString, OUString> >::const_iterator CI; + typedef std::list< std::pair< OUString, OUString> >::const_iterator CI; for (CI i = props.begin(); i != props.end(); ++i) { if (i->first == PROP_SUPPRESS_LICENSE) diff --git a/desktop/source/deployment/misc/dp_descriptioninfoset.cxx b/desktop/source/deployment/misc/dp_descriptioninfoset.cxx index f17e4c4471da..b1762ab7fd87 100644 --- a/desktop/source/deployment/misc/dp_descriptioninfoset.cxx +++ b/desktop/source/deployment/misc/dp_descriptioninfoset.cxx @@ -465,7 +465,7 @@ css::uno::Sequence< OUString > DescriptionInfoset::getSupportedPlatforms() const //There is a platform element. const OUString value = getNodeValueFromExpression("desc:platform/@value"); //parse the string, it can contained multiple strings separated by commas - ::std::vector< OUString> vec; + std::vector< OUString> vec; sal_Int32 nIndex = 0; do { @@ -567,7 +567,7 @@ css::uno::Sequence< OUString > DescriptionInfoset::getUrls( return urls; } -::std::pair< OUString, OUString > DescriptionInfoset::getLocalizedPublisherNameAndURL() const +std::pair< OUString, OUString > DescriptionInfoset::getLocalizedPublisherNameAndURL() const { css::uno::Reference< css::xml::dom::XNode > node = getLocalizedChild("desc:publisher"); @@ -598,7 +598,7 @@ css::uno::Sequence< OUString > DescriptionInfoset::getUrls( if (xURL.is()) sURL = xURL->getNodeValue(); } - return ::std::make_pair(sPublisherName, sURL); + return std::make_pair(sPublisherName, sURL); } OUString DescriptionInfoset::getLocalizedReleaseNotesURL() const @@ -692,8 +692,8 @@ DescriptionInfoset::getLocalizedChild( const OUString & sParent) const if (! nodeMatch.is()) { // Already tried full tag, continue with first fallback. - const ::std::vector< OUString > aFallbacks( getOfficeLanguageTag().getFallbackStrings( false)); - for (::std::vector< OUString >::const_iterator it( aFallbacks.begin()); it != aFallbacks.end(); ++it) + const std::vector< OUString > aFallbacks( getOfficeLanguageTag().getFallbackStrings( false)); + for (std::vector< OUString >::const_iterator it( aFallbacks.begin()); it != aFallbacks.end(); ++it) { nodeMatch = matchLanguageTag(xParent, *it); if (nodeMatch.is()) diff --git a/desktop/source/deployment/misc/dp_ucb.cxx b/desktop/source/deployment/misc/dp_ucb.cxx index eda1d50f74b3..062f76668307 100644 --- a/desktop/source/deployment/misc/dp_ucb.cxx +++ b/desktop/source/deployment/misc/dp_ucb.cxx @@ -253,7 +253,7 @@ bool readLine( OUString * res, OUString const & startingWith, return false; } -bool readProperties( ::std::list< ::std::pair< OUString, OUString> > & out_result, +bool readProperties( std::list< std::pair< OUString, OUString> > & out_result, ::ucbhelper::Content & ucb_content ) { // read whole file: @@ -290,7 +290,7 @@ bool readProperties( ::std::list< ::std::pair< OUString, OUString> > & out_resul { OUString name = aLine.copy(0, posEqual); OUString value = aLine.copy(posEqual + 1); - out_result.push_back(::std::make_pair(name, value)); + out_result.push_back(std::make_pair(name, value)); } if (bEOF) diff --git a/desktop/source/deployment/registry/component/dp_compbackenddb.hxx b/desktop/source/deployment/registry/component/dp_compbackenddb.hxx index 71b859866001..7ed32c3d1fe0 100644 --- a/desktop/source/deployment/registry/component/dp_compbackenddb.hxx +++ b/desktop/source/deployment/registry/component/dp_compbackenddb.hxx @@ -75,8 +75,8 @@ public: { Data(): javaTypeLibrary(false) {}; - ::std::list< OUString> implementationNames; - ::std::vector< ::std::pair< OUString, OUString> >singletons; + std::list< OUString> implementationNames; + std::vector< std::pair< OUString, OUString> >singletons; // map from singleton names to implementation names bool javaTypeLibrary; }; diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx index f2c1708f9478..2b04a5c5c94e 100644 --- a/desktop/source/deployment/registry/component/dp_component.cxx +++ b/desktop/source/deployment/registry/component/dp_component.cxx @@ -62,17 +62,17 @@ namespace backend { namespace component { namespace { -typedef ::std::list<OUString> t_stringlist; -typedef ::std::vector< ::std::pair<OUString, OUString> > t_stringpairvec; +typedef std::list<OUString> t_stringlist; +typedef std::vector< std::pair<OUString, OUString> > t_stringpairvec; #define IMPLEMENTATION_NAME "com.sun.star.comp.deployment.component.PackageRegistryBackend" /** return a vector of bootstrap variables which have been provided as command arguments. */ -::std::vector<OUString> getCmdBootstrapVariables() +std::vector<OUString> getCmdBootstrapVariables() { - ::std::vector<OUString> ret; + std::vector<OUString> ret; sal_uInt32 count = osl_getCommandArgCount(); for (sal_uInt32 i = 0; i < count; i++) { @@ -976,7 +976,7 @@ void BackendImpl::addToUnoRc( RcItem kind, OUString const & url_, const ::osl::MutexGuard guard( getMutex() ); unorc_verify_init( xCmdEnv ); t_stringlist & rSet = getRcItemList(kind); - if (::std::find( rSet.begin(), rSet.end(), rcterm ) == rSet.end()) { + if (std::find( rSet.begin(), rSet.end(), rcterm ) == rSet.end()) { rSet.push_front( rcterm ); // prepend to list, thus overriding // write immediately: m_unorc_modified = true; @@ -1005,7 +1005,7 @@ bool BackendImpl::hasInUnoRc( const OUString rcterm( dp_misc::makeRcTerm(url_) ); const ::osl::MutexGuard guard( getMutex() ); t_stringlist const & rSet = getRcItemList(kind); - return ::std::find( rSet.begin(), rSet.end(), rcterm ) != rSet.end(); + return std::find( rSet.begin(), rSet.end(), rcterm ) != rSet.end(); } css::uno::Reference< css::uno::XComponentContext > BackendImpl::getRootContext() @@ -1040,7 +1040,7 @@ Reference<XInterface> BackendImpl::insertObject( OUString const & id, Reference<XInterface> const & xObject ) { const ::osl::MutexGuard guard( getMutex() ); - const ::std::pair<t_string2object::iterator, bool> insertion( + const std::pair<t_string2object::iterator, bool> insertion( m_backendObjects.insert( t_string2object::value_type( id, xObject ) ) ); return insertion.first->second; @@ -1061,7 +1061,7 @@ Reference<XComponentContext> raise_uno_process( // javavm service uses unorc next to executable to retrieve deployed // jar typelibs - ::std::vector<OUString> args{ + std::vector<OUString> args{ #if OSL_DEBUG_LEVEL == 0 "--quiet", #endif @@ -1072,7 +1072,7 @@ Reference<XComponentContext> raise_uno_process( "-env:INIFILENAME=" }; //now add the bootstrap variables which were supplied on the command line - ::std::vector<OUString> bootvars = getCmdBootstrapVariables(); + std::vector<OUString> bootvars = getCmdBootstrapVariables(); args.insert(args.end(), bootvars.begin(), bootvars.end()); oslProcess hProcess; diff --git a/desktop/source/deployment/registry/configuration/dp_configuration.cxx b/desktop/source/deployment/registry/configuration/dp_configuration.cxx index b1b0e08cdcc4..1dd47424491d 100644 --- a/desktop/source/deployment/registry/configuration/dp_configuration.cxx +++ b/desktop/source/deployment/registry/configuration/dp_configuration.cxx @@ -62,7 +62,7 @@ namespace backend { namespace configuration { namespace { -typedef ::std::list<OUString> t_stringlist; +typedef std::list<OUString> t_stringlist; class BackendImpl : public ::dp_registry::backend::PackageRegistryBackend @@ -116,7 +116,7 @@ class BackendImpl : public ::dp_registry::backend::PackageRegistryBackend #if HAVE_FEATURE_EXTENSIONS // for backwards compatibility - nil if no (compatible) back-compat db present - ::std::unique_ptr<PersistentMap> m_registeredPackages; + std::unique_ptr<PersistentMap> m_registeredPackages; #endif virtual void SAL_CALL disposing() override; @@ -214,13 +214,13 @@ BackendImpl::BackendImpl( //are still registers. Only after revoking and restarting OOo the folders //can be removed. This works now, because the extension manager is a singleton //and the backends are only create once per process. - ::std::list<OUString> folders = m_backendDb->getAllDataUrls(); + std::list<OUString> folders = m_backendDb->getAllDataUrls(); deleteUnusedFolders(OUString(), folders); configmgrini_verify_init( xCmdEnv ); #if HAVE_FEATURE_EXTENSIONS - ::std::unique_ptr<PersistentMap> pMap; + std::unique_ptr<PersistentMap> pMap; OUString aCompatURL( makeURL( getCachePath(), "registered_packages.pmap" ) ); // Don't create it if it doesn't exist already @@ -474,7 +474,7 @@ void BackendImpl::addToConfigmgrIni( bool isSchema, bool isURL, OUString const & const ::osl::MutexGuard guard( getMutex() ); configmgrini_verify_init( xCmdEnv ); t_stringlist & rSet = getFiles(isSchema); - if (::std::find( rSet.begin(), rSet.end(), rcterm ) == rSet.end()) { + if (std::find( rSet.begin(), rSet.end(), rcterm ) == rSet.end()) { rSet.push_front( rcterm ); // prepend to list, thus overriding // write immediately: m_configmgrini_modified = true; diff --git a/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx b/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx index a77fef4fbb3a..54c6f150fba8 100644 --- a/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx +++ b/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.cxx @@ -127,11 +127,11 @@ ConfigurationBackendDb::getEntry(OUString const & url) } } -::std::list<OUString> ConfigurationBackendDb::getAllDataUrls() +std::list<OUString> ConfigurationBackendDb::getAllDataUrls() { try { - ::std::list<OUString> listRet; + std::list<OUString> listRet; Reference<css::xml::dom::XDocument> doc = getDocument(); Reference<css::xml::dom::XNode> root = doc->getFirstChild(); diff --git a/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.hxx b/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.hxx index 88dd77640d9d..c09bff58512c 100644 --- a/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.hxx +++ b/desktop/source/deployment/registry/configuration/dp_configurationbackenddb.hxx @@ -70,7 +70,7 @@ public: void addEntry(OUString const & url, Data const & data); ::boost::optional<Data> getEntry(OUString const & url); - ::std::list< OUString> getAllDataUrls(); + std::list< OUString> getAllDataUrls(); }; diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx index 0ce14491b972..645f7df694d4 100644 --- a/desktop/source/deployment/registry/dp_backend.cxx +++ b/desktop/source/deployment/registry/dp_backend.cxx @@ -190,7 +190,7 @@ Reference<deployment::XPackage> PackageRegistryBackend::bindPackage( guard.reset(); - ::std::pair< t_string2ref::iterator, bool > insertion( + std::pair< t_string2ref::iterator, bool > insertion( m_bound.insert( t_string2ref::value_type( url, xNewPackage ) ) ); if (insertion.second) { // first insertion @@ -253,7 +253,7 @@ void PackageRegistryBackend::deleteTempFolder( //If the folderURL has no '_' then there is no corresponding tmp file. void PackageRegistryBackend::deleteUnusedFolders( OUString const & relUrl, - ::std::list< OUString> const & usedFolders) + std::list< OUString> const & usedFolders) { try { @@ -265,7 +265,7 @@ void PackageRegistryBackend::deleteUnusedFolders( StrTitle::createCursor( tempFolder, ::ucbhelper::INCLUDE_FOLDERS_ONLY ) ); // get all temp directories: - ::std::vector<OUString> tempEntries; + std::vector<OUString> tempEntries; while (xResultSet->next()) { @@ -281,7 +281,7 @@ void PackageRegistryBackend::deleteUnusedFolders( for (OUString & tempEntrie : tempEntries) { - if (::std::find( usedFolders.begin(), usedFolders.end(), tempEntrie ) == + if (std::find( usedFolders.begin(), usedFolders.end(), tempEntrie ) == usedFolders.end()) { deleteTempFolder(tempEntrie); diff --git a/desktop/source/deployment/registry/dp_backenddb.cxx b/desktop/source/deployment/registry/dp_backenddb.cxx index dcc54711736c..127b07751cf4 100644 --- a/desktop/source/deployment/registry/dp_backenddb.cxx +++ b/desktop/source/deployment/registry/dp_backenddb.cxx @@ -266,7 +266,7 @@ Reference<css::xml::dom::XNode> BackendDb::getKeyElement( //Only writes the data if there is at least one entry void BackendDb::writeVectorOfPair( - ::std::vector< ::std::pair< OUString, OUString > > const & vecPairs, + std::vector< std::pair< OUString, OUString > > const & vecPairs, OUString const & sVectorTagName, OUString const & sPairTagName, OUString const & sFirstTagName, @@ -288,7 +288,7 @@ void BackendDb::writeVectorOfPair( xParent->appendChild( Reference<css::xml::dom::XNode>( vectorNode, css::uno::UNO_QUERY_THROW)); - typedef ::std::vector< ::std::pair< OUString, OUString > >::const_iterator CIT; + typedef std::vector< std::pair< OUString, OUString > >::const_iterator CIT; for (CIT i = vecPairs.begin(); i != vecPairs.end(); ++i) { const Reference<css::xml::dom::XElement> pairNode( @@ -336,7 +336,7 @@ void BackendDb::writeVectorOfPair( } } -::std::vector< ::std::pair< OUString, OUString > > +std::vector< std::pair< OUString, OUString > > BackendDb::readVectorOfPair( Reference<css::xml::dom::XNode> const & parent, OUString const & sListTagName, @@ -354,7 +354,7 @@ BackendDb::readVectorOfPair( const Reference<css::xml::dom::XNodeList> listPairs = xpathApi->selectNodeList(parent, sExprPairs); - ::std::vector< ::std::pair< OUString, OUString > > retVector; + std::vector< std::pair< OUString, OUString > > retVector; sal_Int32 length = listPairs->getLength(); for (sal_Int32 i = 0; i < length; i++) { @@ -368,7 +368,7 @@ BackendDb::readVectorOfPair( xpathApi->selectSingleNode(aPair, sExprSecond); OSL_ASSERT(first.is() && second.is()); - retVector.push_back(::std::make_pair( + retVector.push_back(std::make_pair( first->getNodeValue(), second->getNodeValue())); } return retVector; @@ -384,7 +384,7 @@ BackendDb::readVectorOfPair( //Only writes the data if there is at least one entry void BackendDb::writeSimpleList( - ::std::list< OUString> const & list, + std::list< OUString> const & list, OUString const & sListTagName, OUString const & sMemberTagName, Reference<css::xml::dom::XNode> const & xParent) @@ -404,7 +404,7 @@ void BackendDb::writeSimpleList( Reference<css::xml::dom::XNode>( listNode, css::uno::UNO_QUERY_THROW)); - typedef ::std::list<OUString>::const_iterator ITC_ITEMS; + typedef std::list<OUString>::const_iterator ITC_ITEMS; for (ITC_ITEMS i = list.begin(); i != list.end(); ++i) { const Reference<css::xml::dom::XNode> memberNode( @@ -534,7 +534,7 @@ OUString BackendDb::readSimpleElement( } -::std::list< OUString> BackendDb::readList( +std::list< OUString> BackendDb::readList( Reference<css::xml::dom::XNode> const & parent, OUString const & sListTagName, OUString const & sMemberTagName) @@ -549,7 +549,7 @@ OUString BackendDb::readSimpleElement( const Reference<css::xml::dom::XNodeList> list = xpathApi->selectNodeList(parent, sExprList); - ::std::list<OUString > retList; + std::list<OUString > retList; sal_Int32 length = list->getLength(); for (sal_Int32 i = 0; i < length; i++) { @@ -567,12 +567,12 @@ OUString BackendDb::readSimpleElement( } } -::std::list<OUString> BackendDb::getOneChildFromAllEntries( +std::list<OUString> BackendDb::getOneChildFromAllEntries( OUString const & name) { try { - ::std::list<OUString> listRet; + std::list<OUString> listRet; Reference<css::xml::dom::XDocument> doc = getDocument(); Reference<css::xml::dom::XNode> root = doc->getFirstChild(); diff --git a/desktop/source/deployment/registry/dp_registry.cxx b/desktop/source/deployment/registry/dp_registry.cxx index 3e9463d2636b..d0b4211691ee 100644 --- a/desktop/source/deployment/registry/dp_registry.cxx +++ b/desktop/source/deployment/registry/dp_registry.cxx @@ -64,7 +64,7 @@ typedef ::cppu::WeakComponentImplHelper< class PackageRegistryImpl : private MutexHolder, public t_helper { struct ci_string_hash { - ::std::size_t operator () ( OUString const & str ) const { + std::size_t operator () ( OUString const & str ) const { return str.toAsciiLowerCase().hashCode(); } }; @@ -86,7 +86,7 @@ class PackageRegistryImpl : private MutexHolder, public t_helper t_string2string m_filter2mediaType; t_registryset m_ambiguousBackends; t_registryset m_allBackends; - ::std::vector< Reference<deployment::XPackageTypeInfo> > m_typesInfos; + std::vector< Reference<deployment::XPackageTypeInfo> > m_typesInfos; void insertBackend( Reference<deployment::XPackageRegistry> const & xBackend ); @@ -194,7 +194,7 @@ void PackageRegistryImpl::insertBackend( const OUString mediaType( normalizeMediaType( xPackageType->getMediaType() ) ); - ::std::pair<t_string2registry::iterator, bool> a_insertion( + std::pair<t_string2registry::iterator, bool> a_insertion( m_mediaType2backend.insert( t_string2registry::value_type( mediaType, xBackend ) ) ); if (a_insertion.second) @@ -227,7 +227,7 @@ void PackageRegistryImpl::insertBackend( bool ambig = (token.indexOf('*') >= 0 || token.indexOf('?') >= 0); if (! ambig) { - ::std::pair<t_string2string::iterator, bool> ins( + std::pair<t_string2string::iterator, bool> ins( m_filter2mediaType.insert( t_string2string::value_type( token, mediaType ) ) ); diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx index 5c265a46d16a..9ccb725c3567 100644 --- a/desktop/source/deployment/registry/help/dp_help.cxx +++ b/desktop/source/deployment/registry/help/dp_help.cxx @@ -146,7 +146,7 @@ BackendImpl::BackendImpl( //are still registers. Only after revoking and restarting OOo the folders //can be removed. This works now, because the extension manager is a singleton //and the backends are only create once per process. - ::std::list<OUString> folders = m_backendDb->getAllDataUrls(); + std::list<OUString> folders = m_backendDb->getAllDataUrls(); deleteUnusedFolders(OUString(), folders); } } diff --git a/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx b/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx index 14df597abbf7..31ac496a1775 100644 --- a/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx +++ b/desktop/source/deployment/registry/help/dp_helpbackenddb.cxx @@ -123,7 +123,7 @@ HelpBackendDb::getEntry(OUString const & url) } } -::std::list<OUString> HelpBackendDb::getAllDataUrls() +std::list<OUString> HelpBackendDb::getAllDataUrls() { return getOneChildFromAllEntries("data-url"); } diff --git a/desktop/source/deployment/registry/help/dp_helpbackenddb.hxx b/desktop/source/deployment/registry/help/dp_helpbackenddb.hxx index 2dd822a0c197..0addaebe5e82 100644 --- a/desktop/source/deployment/registry/help/dp_helpbackenddb.hxx +++ b/desktop/source/deployment/registry/help/dp_helpbackenddb.hxx @@ -68,7 +68,7 @@ public: ::boost::optional<Data> getEntry(OUString const & url); //must also return the data urls for entries with @activ="false". That is, //those are currently revoked. - ::std::list< OUString> getAllDataUrls(); + std::list< OUString> getAllDataUrls(); }; diff --git a/desktop/source/deployment/registry/inc/dp_backend.h b/desktop/source/deployment/registry/inc/dp_backend.h index ad717500c181..5df23c86ab57 100644 --- a/desktop/source/deployment/registry/inc/dp_backend.h +++ b/desktop/source/deployment/registry/inc/dp_backend.h @@ -256,7 +256,7 @@ protected: */ void deleteUnusedFolders( OUString const & relUrl, - ::std::list< OUString> const & usedFolders); + std::list< OUString> const & usedFolders); /* deletes one folder with a "temporary" name and the corresponding tmp file, which was used to derive the folder name. */ diff --git a/desktop/source/deployment/registry/inc/dp_backenddb.hxx b/desktop/source/deployment/registry/inc/dp_backenddb.hxx index dfd556a53566..a127658cd99a 100644 --- a/desktop/source/deployment/registry/inc/dp_backenddb.hxx +++ b/desktop/source/deployment/registry/inc/dp_backenddb.hxx @@ -70,13 +70,13 @@ protected: OUString const & url); void writeSimpleList( - ::std::list< OUString> const & list, + std::list< OUString> const & list, OUString const & sListTagName, OUString const & sMemberTagName, css::uno::Reference<css::xml::dom::XNode> const & xParent); void writeVectorOfPair( - ::std::vector< ::std::pair< OUString, OUString > > const & vecPairs, + std::vector< std::pair< OUString, OUString > > const & vecPairs, OUString const & sVectorTagName, OUString const & sPairTagName, OUString const & sFirstTagName, @@ -94,7 +94,7 @@ protected: OUString const & sElementName, css::uno::Reference<css::xml::dom::XNode> const & xParent); - ::std::vector< ::std::pair< OUString, OUString > > + std::vector< std::pair< OUString, OUString > > readVectorOfPair( css::uno::Reference<css::xml::dom::XNode> const & parent, OUString const & sListTagName, @@ -102,14 +102,14 @@ protected: OUString const & sFirstTagName, OUString const & sSecondTagName); - ::std::list< OUString> readList( + std::list< OUString> readList( css::uno::Reference<css::xml::dom::XNode> const & parent, OUString const & sListTagName, OUString const & sMemberTagName); /* returns the values of one particularly child element of all key elements. */ - ::std::list< OUString> getOneChildFromAllEntries( + std::list< OUString> getOneChildFromAllEntries( OUString const & sElementName); diff --git a/desktop/source/deployment/registry/package/dp_extbackenddb.hxx b/desktop/source/deployment/registry/package/dp_extbackenddb.hxx index a5f06976855c..4b5b5e4fb601 100644 --- a/desktop/source/deployment/registry/package/dp_extbackenddb.hxx +++ b/desktop/source/deployment/registry/package/dp_extbackenddb.hxx @@ -54,9 +54,9 @@ public: /* every element consists of a pair of the url to the item (jar,rdb, etc) and the media type */ - ::std::vector< ::std::pair< OUString, OUString> > items; - typedef ::std::vector< - ::std::pair< OUString, OUString> >::const_iterator ITC_ITEMS; + std::vector< std::pair< OUString, OUString> > items; + typedef std::vector< + std::pair< OUString, OUString> >::const_iterator ITC_ITEMS; }; public: diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx index a487ec95e6b4..98f7d6b16a0d 100644 --- a/desktop/source/deployment/registry/package/dp_package.cxx +++ b/desktop/source/deployment/registry/package/dp_package.cxx @@ -109,7 +109,7 @@ class BackendImpl : public ImplBaseT Reference<ucb::XCommandEnvironment> const & xCmdEnv, bool notifyDetectionError = true ); - typedef ::std::vector< Reference<deployment::XPackage> > t_packagevec; + typedef std::vector< Reference<deployment::XPackage> > t_packagevec; void scanBundle( t_packagevec & bundle, ::rtl::Reference<AbortChannel> const & abortChannel, @@ -120,7 +120,7 @@ class BackendImpl : public ImplBaseT ::rtl::Reference<AbortChannel> const & abortChannel, Reference<ucb::XCommandEnvironment> const & xCmdEnv, bool skip_registration = false ); - ::std::vector<Reference<deployment::XPackage> > getPackagesFromDb( + std::vector<Reference<deployment::XPackage> > getPackagesFromDb( Reference<ucb::XCommandEnvironment> const & xCmdEnv); bool checkPlatform( Reference<ucb::XCommandEnvironment > const & environment); @@ -754,7 +754,7 @@ beans::StringPair BackendImpl::PackageImpl::getPublisherInfo() { if (m_bRemoved) throw deployment::ExtensionRemovedException(); - ::std::pair< OUString, OUString > aInfo = getDescriptionInfoset().getLocalizedPublisherNameAndURL(); + std::pair< OUString, OUString > aInfo = getDescriptionInfoset().getLocalizedPublisherNameAndURL(); beans::StringPair aStrPair( aInfo.first, aInfo.second ); return aStrPair; } @@ -866,7 +866,7 @@ void BackendImpl::PackageImpl::processPackage_( } } data.items.push_back( - ::std::make_pair(xPackage->getURL(), + std::make_pair(xPackage->getURL(), xPackage->getPackageType()->getMediaType())); } getMyBackend()->addDataToDb(getURL(), data); @@ -1071,7 +1071,7 @@ void BackendImpl::PackageImpl::exportTo( exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() ); } - ::std::vector< Sequence<beans::PropertyValue> > manifest; + std::vector< Sequence<beans::PropertyValue> > manifest; manifest.reserve( bundle.getLength() ); sal_Int32 baseURLlen = m_url_expanded.getLength(); Reference<deployment::XPackage> const *pbundle = bundle.getConstArray(); @@ -1371,8 +1371,8 @@ void BackendImpl::PackageImpl::scanBundle( const LanguageTag& officeLocale = getOfficeLanguageTag(); - const ::std::vector< OUString > officeFallbacks( officeLocale.getFallbackStrings( true)); - const size_t nPenaltyMax = ::std::numeric_limits<size_t>::max(); + const std::vector< OUString > officeFallbacks( officeLocale.getFallbackStrings( true)); + const size_t nPenaltyMax = std::numeric_limits<size_t>::max(); size_t descrPenalty = nPenaltyMax; OUString descrFile; @@ -1429,7 +1429,7 @@ void BackendImpl::PackageImpl::scanBundle( if (officeLocale.getLanguage() == descrTag.getLanguage()) { size_t nPenalty = nPenaltyMax; - const ::std::vector< OUString > descrFallbacks( descrTag.getFallbackStrings( true)); + const std::vector< OUString > descrFallbacks( descrTag.getFallbackStrings( true)); for (size_t o=0; o < officeFallbacks.size() && nPenalty == nPenaltyMax; ++o) { for (size_t d=0; d < descrFallbacks.size() && nPenalty == nPenaltyMax; ++d) @@ -1579,13 +1579,13 @@ OUString BackendImpl::PackageImpl::getDisplayName() return sName; } -::std::vector<Reference<deployment::XPackage> > +std::vector<Reference<deployment::XPackage> > BackendImpl::PackageImpl::getPackagesFromDb( Reference<ucb::XCommandEnvironment> const & xCmdEnv) { - ::std::vector<Reference<deployment::XPackage> > retVector; + std::vector<Reference<deployment::XPackage> > retVector; - typedef ::std::vector< ::std::pair<OUString, OUString> >::const_iterator ITC; + typedef std::vector< std::pair<OUString, OUString> >::const_iterator ITC; for (ITC i = m_dbData.items.begin(); i != m_dbData.items.end(); ++i) { Reference<deployment::XPackage> xExtension = diff --git a/desktop/source/migration/migration.cxx b/desktop/source/migration/migration.cxx index 2f93f8ae756f..9061aeab34c8 100644 --- a/desktop/source/migration/migration.cxx +++ b/desktop/source/migration/migration.cxx @@ -232,7 +232,7 @@ bool MigrationImpl::doMigration() bool result = false; try { NewVersionUIInfo aNewVersionUIInfo; - ::std::vector< MigrationModuleInfo > vModulesInfo = dectectUIChangesForAllModules(); + std::vector< MigrationModuleInfo > vModulesInfo = dectectUIChangesForAllModules(); aNewVersionUIInfo.init(vModulesInfo); copyFiles(); @@ -912,9 +912,9 @@ void MigrationImpl::runServices() } } -::std::vector< MigrationModuleInfo > MigrationImpl::dectectUIChangesForAllModules() const +std::vector< MigrationModuleInfo > MigrationImpl::dectectUIChangesForAllModules() const { - ::std::vector< MigrationModuleInfo > vModulesInfo; + std::vector< MigrationModuleInfo > vModulesInfo; const OUString MENUBAR("menubar"); const OUString TOOLBAR("toolbar"); @@ -987,8 +987,8 @@ void MigrationImpl::compareOldAndNewConfig(const OUString& sParent, { const OUString MENU_SEPARATOR(" | "); - ::std::vector< MigrationItem > vOldItems; - ::std::vector< MigrationItem > vNewItems; + std::vector< MigrationItem > vOldItems; + std::vector< MigrationItem > vNewItems; uno::Sequence< beans::PropertyValue > aProp; sal_Int32 nOldCount = xIndexOld->getCount(); sal_Int32 nNewCount = xIndexNew->getCount(); @@ -1023,11 +1023,11 @@ void MigrationImpl::compareOldAndNewConfig(const OUString& sParent, } } - ::std::vector< MigrationItem >::iterator it; + std::vector< MigrationItem >::iterator it; OUString sSibling; for (it = vOldItems.begin(); it!=vOldItems.end(); ++it) { - ::std::vector< MigrationItem >::iterator pFound = ::std::find(vNewItems.begin(), vNewItems.end(), *it); + std::vector< MigrationItem >::iterator pFound = std::find(vNewItems.begin(), vNewItems.end(), *it); if (pFound != vNewItems.end() && it->m_xPopupMenu.is()) { OUString sName; if (!sParent.isEmpty()) @@ -1038,11 +1038,11 @@ void MigrationImpl::compareOldAndNewConfig(const OUString& sParent, } else if (pFound == vNewItems.end()) { MigrationItem aMigrationItem(sParent, sSibling, it->m_sCommandURL, it->m_xPopupMenu); if (m_aOldVersionItemsHashMap.find(sResourceURL)==m_aOldVersionItemsHashMap.end()) { - ::std::vector< MigrationItem > vMigrationItems; + std::vector< MigrationItem > vMigrationItems; m_aOldVersionItemsHashMap.insert(MigrationHashMap::value_type(sResourceURL, vMigrationItems)); m_aOldVersionItemsHashMap[sResourceURL].push_back(aMigrationItem); } else { - if (::std::find(m_aOldVersionItemsHashMap[sResourceURL].begin(), m_aOldVersionItemsHashMap[sResourceURL].end(), aMigrationItem)==m_aOldVersionItemsHashMap[sResourceURL].end()) + if (std::find(m_aOldVersionItemsHashMap[sResourceURL].begin(), m_aOldVersionItemsHashMap[sResourceURL].end(), aMigrationItem)==m_aOldVersionItemsHashMap[sResourceURL].end()) m_aOldVersionItemsHashMap[sResourceURL].push_back(aMigrationItem); } } @@ -1060,7 +1060,7 @@ void MigrationImpl::mergeOldToNewVersion(const uno::Reference< ui::XUIConfigurat if (pFound==m_aOldVersionItemsHashMap.end()) return; - ::std::vector< MigrationItem >::iterator it; + std::vector< MigrationItem >::iterator it; for (it=pFound->second.begin(); it!=pFound->second.end(); ++it) { uno::Reference< container::XIndexContainer > xTemp = xIndexContainer; @@ -1191,7 +1191,7 @@ uno::Reference< container::XIndexContainer > NewVersionUIInfo::getNewToolbarSett return xNewToolbarSettings; } -void NewVersionUIInfo::init(const ::std::vector< MigrationModuleInfo >& vModulesInfo) +void NewVersionUIInfo::init(const std::vector< MigrationModuleInfo >& vModulesInfo) { m_lCfgManagerSeq.resize(vModulesInfo.size()); m_lNewVersionMenubarSettingsSeq.realloc(vModulesInfo.size()); diff --git a/desktop/source/migration/migration_impl.hxx b/desktop/source/migration/migration_impl.hxx index cc16eef9f2a5..03a99349283f 100644 --- a/desktop/source/migration/migration_impl.hxx +++ b/desktop/source/migration/migration_impl.hxx @@ -140,7 +140,7 @@ struct MigrationModuleInfo { OUString sModuleShortName; bool bHasMenubar; - ::std::vector< OUString > m_vToolbars; + std::vector< OUString > m_vToolbars; MigrationModuleInfo() : bHasMenubar(false) {}; }; @@ -156,7 +156,7 @@ public: css::uno::Reference< css::ui::XUIConfigurationManager > getConfigManager(const OUString& sModuleShortName) const; css::uno::Reference< css::container::XIndexContainer > getNewMenubarSettings(const OUString& sModuleShortName) const; css::uno::Reference< css::container::XIndexContainer > getNewToolbarSettings(const OUString& sModuleShortName, const OUString& sToolbarName) const; - void init(const ::std::vector< MigrationModuleInfo >& vModulesInfo); + void init(const std::vector< MigrationModuleInfo >& vModulesInfo); private: @@ -192,7 +192,7 @@ private: static strings_vr applyPatterns(const strings_v& vSet, const strings_v& vPatterns); static css::uno::Reference< css::container::XNameAccess > getConfigAccess(const sal_Char* path, bool rw=false); - ::std::vector< MigrationModuleInfo > dectectUIChangesForAllModules() const; + std::vector< MigrationModuleInfo > dectectUIChangesForAllModules() const; void compareOldAndNewConfig(const OUString& sParentNodeName, const css::uno::Reference< css::container::XIndexContainer >& xOldIndexContainer, const css::uno::Reference< css::container::XIndexContainer >& xNewIndexContainer, diff --git a/desktop/source/migration/services/jvmfwk.cxx b/desktop/source/migration/services/jvmfwk.cxx index 907651433414..f766011d4821 100644 --- a/desktop/source/migration/services/jvmfwk.cxx +++ b/desktop/source/migration/services/jvmfwk.cxx @@ -154,8 +154,8 @@ private: css::uno::Reference< css::configuration::backend::XLayer> m_xLayer; void migrateJavarc(); - typedef ::std::pair< OUString, sal_Int16> TElementType; - typedef ::std::stack< TElementType > TElementStack; + typedef std::pair< OUString, sal_Int16> TElementType; + typedef std::stack< TElementType > TElementStack; TElementStack m_aStack; }; diff --git a/desktop/source/migration/services/misc.hxx b/desktop/source/migration/services/misc.hxx index f6018ed022f1..ca1320a2ac5d 100644 --- a/desktop/source/migration/services/misc.hxx +++ b/desktop/source/migration/services/misc.hxx @@ -30,8 +30,8 @@ namespace migration { - typedef ::std::vector< OUString > TStringVector; - typedef ::std::unique_ptr< TStringVector > TStringVectorPtr; + typedef std::vector< OUString > TStringVector; + typedef std::unique_ptr< TStringVector > TStringVectorPtr; } // namespace migration diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx index 922f05caecd5..b3a5b72e5d5e 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx @@ -194,7 +194,7 @@ extern "C" int unopkg_main() OUString logFile; OUString repository; OUString cmdArg; - ::std::vector<OUString> cmdPackages; + std::vector<OUString> cmdPackages; OptionInfo const * info_shared = getOptionInfo( s_option_infos, "shared" ); @@ -406,7 +406,7 @@ extern "C" int unopkg_main() } else if ( subCommand == "list" ) { - ::std::vector<Reference<deployment::XPackage> > vecExtUnaccepted; + std::vector<Reference<deployment::XPackage> > vecExtUnaccepted; ::comphelper::sequenceToContainer(vecExtUnaccepted, xExtensionManager->getExtensionsWithUnacceptedLicenses( repository, xCmdEnv)); @@ -421,24 +421,24 @@ extern "C" int unopkg_main() packages = xExtensionManager->getDeployedExtensions( repository, Reference<task::XAbortChannel>(), xCmdEnv ); - ::std::vector<Reference<deployment::XPackage> > vec_packages; + std::vector<Reference<deployment::XPackage> > vec_packages; ::comphelper::sequenceToContainer(vec_packages, packages); //First copy the extensions with the unaccepted license //to vector allExtensions. allExtensions.resize(vecExtUnaccepted.size() + vec_packages.size()); - ::std::vector<Reference<deployment::XPackage> >::iterator i_all_ext = - ::std::copy(vecExtUnaccepted.begin(), vecExtUnaccepted.end(), + std::vector<Reference<deployment::XPackage> >::iterator i_all_ext = + std::copy(vecExtUnaccepted.begin(), vecExtUnaccepted.end(), allExtensions.begin()); //Now copy those we got from getDeployedExtensions - ::std::copy(vec_packages.begin(), vec_packages.end(), i_all_ext); + std::copy(vec_packages.begin(), vec_packages.end(), i_all_ext); //Now prepare the vector which tells what extension has an //unaccepted license vecUnaccepted.resize(vecExtUnaccepted.size() + vec_packages.size()); - ::std::fill_n(vecUnaccepted.begin(), vecExtUnaccepted.size(), true); - ::std::fill_n(vecUnaccepted.begin() + vecExtUnaccepted.size(), + std::fill_n(vecUnaccepted.begin(), vecExtUnaccepted.size(), true); + std::fill_n(vecUnaccepted.begin() + vecExtUnaccepted.size(), vec_packages.size(), false); dp_misc::writeConsole( @@ -466,8 +466,8 @@ extern "C" int unopkg_main() bool bUnacceptedLic = false; if (!extension.is()) { - ::std::vector<Reference<deployment::XPackage> >::const_iterator - i = ::std::find_if( + std::vector<Reference<deployment::XPackage> >::const_iterator + i = std::find_if( vecExtUnaccepted.begin(), vecExtUnaccepted.end(), ExtensionName(cmdPackage)); if (i != vecExtUnaccepted.end()) @@ -495,7 +495,7 @@ extern "C" int unopkg_main() } else if ( subCommand == "validate" ) { - ::std::vector<Reference<deployment::XPackage> > vecExtUnaccepted; + std::vector<Reference<deployment::XPackage> > vecExtUnaccepted; ::comphelper::sequenceToContainer( vecExtUnaccepted, xExtensionManager->getExtensionsWithUnacceptedLicenses( repository, xCmdEnv)); @@ -516,8 +516,8 @@ extern "C" int unopkg_main() if (!extension.is()) { - ::std::vector<Reference<deployment::XPackage> >::const_iterator - i = ::std::find_if( + std::vector<Reference<deployment::XPackage> >::const_iterator + i = std::find_if( vecExtUnaccepted.begin(), vecExtUnaccepted.end(), ExtensionName(cmdPackage)); if (i != vecExtUnaccepted.end()) diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx index 031c6dda6e09..bf40197682d7 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx @@ -280,9 +280,9 @@ void printf_package( xPackage->getBundle( Reference<task::XAbortChannel>(), xCmdEnv ) ); printf_space( level + 1 ); dp_misc::writeConsole("bundled Packages: {\n"); - ::std::vector<Reference<deployment::XPackage> >vec_bundle; + std::vector<Reference<deployment::XPackage> >vec_bundle; ::comphelper::sequenceToContainer(vec_bundle, seq); - printf_packages( vec_bundle, ::std::vector<bool>(vec_bundle.size()), + printf_packages( vec_bundle, std::vector<bool>(vec_bundle.size()), xCmdEnv, level + 2 ); printf_space( level + 1 ); dp_misc::writeConsole("}\n"); @@ -303,8 +303,8 @@ void printf_unaccepted_licenses( void printf_packages( - ::std::vector< Reference<deployment::XPackage> > const & allExtensions, - ::std::vector<bool> const & vecUnaccepted, + std::vector< Reference<deployment::XPackage> > const & allExtensions, + std::vector<bool> const & vecUnaccepted, Reference<XCommandEnvironment> const & xCmdEnv, sal_Int32 level ) { OSL_ASSERT(allExtensions.size() == vecUnaccepted.size()); @@ -316,7 +316,7 @@ void printf_packages( } else { - typedef ::std::vector< Reference<deployment::XPackage> >::const_iterator I_EXT; + typedef std::vector< Reference<deployment::XPackage> >::const_iterator I_EXT; int index = 0; for (I_EXT i = allExtensions.begin(); i != allExtensions.end(); ++i, ++index) { diff --git a/desktop/source/pkgchk/unopkg/unopkg_shared.h b/desktop/source/pkgchk/unopkg/unopkg_shared.h index aba49127b30f..1bd6a04b46bd 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_shared.h +++ b/desktop/source/pkgchk/unopkg/unopkg_shared.h @@ -107,9 +107,9 @@ css::uno::Reference<css::ucb::XCommandEnvironment> createCmdEnv( bool option_suppressLicense); void printf_packages( - ::std::vector< + std::vector< css::uno::Reference<css::deployment::XPackage> > const & allExtensions, - ::std::vector<bool> const & vecUnaccepted, + std::vector<bool> const & vecUnaccepted, css::uno::Reference<css::ucb::XCommandEnvironment> const & xCmdEnv, sal_Int32 level = 0 ); diff --git a/drawinglayer/source/attribute/sdrlightingattribute3d.cxx b/drawinglayer/source/attribute/sdrlightingattribute3d.cxx index f2705e998a2a..c2f44f26dff6 100644 --- a/drawinglayer/source/attribute/sdrlightingattribute3d.cxx +++ b/drawinglayer/source/attribute/sdrlightingattribute3d.cxx @@ -33,11 +33,11 @@ namespace drawinglayer public: // 3D light attribute definitions basegfx::BColor maAmbientLight; - ::std::vector< Sdr3DLightAttribute > maLightVector; + std::vector< Sdr3DLightAttribute > maLightVector; ImpSdrLightingAttribute( const basegfx::BColor& rAmbientLight, - const ::std::vector< Sdr3DLightAttribute >& rLightVector) + const std::vector< Sdr3DLightAttribute >& rLightVector) : maAmbientLight(rAmbientLight), maLightVector(rLightVector) { @@ -51,7 +51,7 @@ namespace drawinglayer // data read access const basegfx::BColor& getAmbientLight() const { return maAmbientLight; } - const ::std::vector< Sdr3DLightAttribute >& getLightVector() const { return maLightVector; } + const std::vector< Sdr3DLightAttribute >& getLightVector() const { return maLightVector; } bool operator==(const ImpSdrLightingAttribute& rCandidate) const { @@ -68,7 +68,7 @@ namespace drawinglayer SdrLightingAttribute::SdrLightingAttribute( const basegfx::BColor& rAmbientLight, - const ::std::vector< Sdr3DLightAttribute >& rLightVector) + const std::vector< Sdr3DLightAttribute >& rLightVector) : mpSdrLightingAttribute(ImpSdrLightingAttribute( rAmbientLight, rLightVector)) { @@ -119,7 +119,7 @@ namespace drawinglayer return rCandidate.mpSdrLightingAttribute == mpSdrLightingAttribute; } - const ::std::vector< Sdr3DLightAttribute >& SdrLightingAttribute::getLightVector() const + const std::vector< Sdr3DLightAttribute >& SdrLightingAttribute::getLightVector() const { return mpSdrLightingAttribute->getLightVector(); } diff --git a/drawinglayer/source/attribute/sdrlineattribute.cxx b/drawinglayer/source/attribute/sdrlineattribute.cxx index 1da16445188b..fa6267c1e958 100644 --- a/drawinglayer/source/attribute/sdrlineattribute.cxx +++ b/drawinglayer/source/attribute/sdrlineattribute.cxx @@ -35,7 +35,7 @@ namespace drawinglayer double mfTransparence; // [0.0 .. 1.0], 0.0==no transp. basegfx::BColor maColor; // color of line css::drawing::LineCap meCap; // BUTT, ROUND, or SQUARE - ::std::vector< double > maDotDashArray; // array of double which defines the dot-dash pattern + std::vector< double > maDotDashArray; // array of double which defines the dot-dash pattern double mfFullDotDashLen; // sum of maDotDashArray (for convenience) ImpSdrLineAttribute( @@ -44,7 +44,7 @@ namespace drawinglayer double fTransparence, const basegfx::BColor& rColor, css::drawing::LineCap eCap, - const ::std::vector< double >& rDotDashArray, + const std::vector< double >& rDotDashArray, double fFullDotDashLen) : meJoin(eJoin), mfWidth(fWidth), @@ -73,7 +73,7 @@ namespace drawinglayer double getTransparence() const { return mfTransparence; } const basegfx::BColor& getColor() const { return maColor; } css::drawing::LineCap getCap() const { return meCap; } - const ::std::vector< double >& getDotDashArray() const { return maDotDashArray; } + const std::vector< double >& getDotDashArray() const { return maDotDashArray; } double getFullDotDashLen() const { return mfFullDotDashLen; } bool operator==(const ImpSdrLineAttribute& rCandidate) const @@ -99,7 +99,7 @@ namespace drawinglayer double fTransparence, const basegfx::BColor& rColor, css::drawing::LineCap eCap, - const ::std::vector< double >& rDotDashArray, + const std::vector< double >& rDotDashArray, double fFullDotDashLen) : mpSdrLineAttribute( ImpSdrLineAttribute( @@ -179,7 +179,7 @@ namespace drawinglayer return mpSdrLineAttribute->getColor(); } - const ::std::vector< double >& SdrLineAttribute::getDotDashArray() const + const std::vector< double >& SdrLineAttribute::getDotDashArray() const { return mpSdrLineAttribute->getDotDashArray(); } diff --git a/drawinglayer/source/attribute/strokeattribute.cxx b/drawinglayer/source/attribute/strokeattribute.cxx index 05e9ba509e26..2ff6dd0c106e 100644 --- a/drawinglayer/source/attribute/strokeattribute.cxx +++ b/drawinglayer/source/attribute/strokeattribute.cxx @@ -30,11 +30,11 @@ namespace drawinglayer { public: // data definitions - ::std::vector< double > maDotDashArray; // array of double which defines the dot-dash pattern + std::vector< double > maDotDashArray; // array of double which defines the dot-dash pattern double mfFullDotDashLen; // sum of maDotDashArray (for convenience) ImpStrokeAttribute( - const ::std::vector< double >& rDotDashArray, + const std::vector< double >& rDotDashArray, double fFullDotDashLen) : maDotDashArray(rDotDashArray), mfFullDotDashLen(fFullDotDashLen) @@ -48,13 +48,13 @@ namespace drawinglayer } // data read access - const ::std::vector< double >& getDotDashArray() const { return maDotDashArray; } + const std::vector< double >& getDotDashArray() const { return maDotDashArray; } double getFullDotDashLen() const { if(0.0 == mfFullDotDashLen && maDotDashArray.size()) { // calculate length on demand - const double fAccumulated(::std::accumulate(maDotDashArray.begin(), maDotDashArray.end(), 0.0)); + const double fAccumulated(std::accumulate(maDotDashArray.begin(), maDotDashArray.end(), 0.0)); const_cast< ImpStrokeAttribute* >(this)->mfFullDotDashLen = fAccumulated; } @@ -75,7 +75,7 @@ namespace drawinglayer } StrokeAttribute::StrokeAttribute( - const ::std::vector< double >& rDotDashArray, + const std::vector< double >& rDotDashArray, double fFullDotDashLen) : mpStrokeAttribute(ImpStrokeAttribute( rDotDashArray, fFullDotDashLen)) @@ -127,7 +127,7 @@ namespace drawinglayer return rCandidate.mpStrokeAttribute == mpStrokeAttribute; } - const ::std::vector< double >& StrokeAttribute::getDotDashArray() const + const std::vector< double >& StrokeAttribute::getDotDashArray() const { return mpStrokeAttribute->getDotDashArray(); } diff --git a/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx b/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx index 4f658322aab0..9bdd689f0e78 100644 --- a/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx @@ -55,7 +55,7 @@ namespace drawinglayer if(rAttribute.getTiling()) { // get object range and create tiling matrices - ::std::vector< basegfx::B2DHomMatrix > aMatrices; + std::vector< basegfx::B2DHomMatrix > aMatrices; texture::GeoTexSvxTiled aTiling( rAttribute.getGraphicRange(), rAttribute.getOffsetX(), diff --git a/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx b/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx index 464a4e12b722..210ed61a251a 100644 --- a/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx @@ -42,7 +42,7 @@ namespace drawinglayer // create hatch const basegfx::BColor aHatchColor(getFillHatch().getColor()); const double fAngle(getFillHatch().getAngle()); - ::std::vector< basegfx::B2DHomMatrix > aMatrices; + std::vector< basegfx::B2DHomMatrix > aMatrices; double fDistance(getFillHatch().getDistance()); const bool bAdaptDistance(0 != getFillHatch().getMinimalDiscreteDistance()); diff --git a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx index 6c3cfe91e4ea..f1d728bd5592 100644 --- a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx @@ -665,7 +665,7 @@ namespace if(bDashDotUsed) { - ::std::vector< double > fDotDashArray; + std::vector< double > fDotDashArray; const double fDashLen(rLineInfo.GetDashLen()); const double fDotLen(rLineInfo.GetDotLen()); const double fDistance(rLineInfo.GetDistance()); @@ -682,7 +682,7 @@ namespace fDotDashArray.push_back(fDistance); } - const double fAccumulated(::std::accumulate(fDotDashArray.begin(), fDotDashArray.end(), 0.0)); + const double fAccumulated(std::accumulate(fDotDashArray.begin(), fDotDashArray.end(), 0.0)); const drawinglayer::attribute::StrokeAttribute aStrokeAttribute( fDotDashArray, fAccumulated); @@ -1251,7 +1251,7 @@ namespace const OUString& rText, sal_uInt16 nTextStart, sal_uInt16 nTextLength, - const ::std::vector< double >& rDXArray, + const std::vector< double >& rDXArray, TargetHolder& rTarget, PropertyHolder& rProperty) { @@ -2030,7 +2030,7 @@ namespace drawinglayer::primitive2d::TextLayouterDevice aTextLayouterDevice; aTextLayouterDevice.setFont(rPropertyHolders.Current().getFont()); - ::std::vector< double > aTextArray( + std::vector< double > aTextArray( aTextLayouterDevice.getTextArray( pA->GetText(), nTextIndex, diff --git a/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx b/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx index cf07d115fa07..6d6ef225d022 100644 --- a/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx @@ -172,7 +172,7 @@ namespace drawinglayer if(!aMaskRange.isEmpty() && aMaskRange.getWidth() > 0.0 && aMaskRange.getHeight() > 0.0) { // create tiling matrices - ::std::vector< basegfx::B2DHomMatrix > aMatrices; + std::vector< basegfx::B2DHomMatrix > aMatrices; texture::GeoTexSvxTiled aTiling(getReferenceRange()); aTiling.appendTransformations(aMatrices); diff --git a/drawinglayer/source/primitive2d/polygonprimitive2d.cxx b/drawinglayer/source/primitive2d/polygonprimitive2d.cxx index 85caf51dc292..0d41a8d88a7c 100644 --- a/drawinglayer/source/primitive2d/polygonprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/polygonprimitive2d.cxx @@ -100,7 +100,7 @@ namespace drawinglayer if(fLogicDashLength > 0.0 && !getRGBColorA().equal(getRGBColorB())) { // apply dashing; get line and gap snippets - ::std::vector< double > aDash; + std::vector< double > aDash; basegfx::B2DPolyPolygon aDashedPolyPolyA; basegfx::B2DPolyPolygon aDashedPolyPolyB; diff --git a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx index 9721e4e06c85..0f70c0f20326 100644 --- a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx @@ -953,7 +953,7 @@ namespace drawinglayer if(mfOffsetA > mfOffsetB) { OSL_ENSURE(false, "Wrong offset order (!)"); - ::std::swap(mfOffsetA, mfOffsetB); + std::swap(mfOffsetA, mfOffsetB); } } @@ -1054,18 +1054,18 @@ namespace drawinglayer } // scale A and B have to be positive - mfScaleA = ::std::max(mfScaleA, 0.0); - mfScaleB = ::std::max(mfScaleB, 0.0); + mfScaleA = std::max(mfScaleA, 0.0); + mfScaleB = std::max(mfScaleB, 0.0); // scale B has to be bigger than scale A; swap if different if(mfScaleA > mfScaleB) { OSL_ENSURE(false, "Wrong offset order (!)"); - ::std::swap(mfScaleA, mfScaleB); + std::swap(mfScaleA, mfScaleB); if(mpTranslate) { - ::std::swap(mpTranslate->maTranslateA, mpTranslate->maTranslateB); + std::swap(mpTranslate->maTranslateA, mpTranslate->maTranslateB); } } } @@ -1081,14 +1081,14 @@ namespace drawinglayer mpTranslate(nullptr) { // scale A and B have to be positive - mfScaleA = ::std::max(mfScaleA, 0.0); - mfScaleB = ::std::max(mfScaleB, 0.0); + mfScaleA = std::max(mfScaleA, 0.0); + mfScaleB = std::max(mfScaleB, 0.0); // scale B has to be bigger than scale A; swap if different if(mfScaleA > mfScaleB) { OSL_ENSURE(false, "Wrong offset order (!)"); - ::std::swap(mfScaleA, mfScaleB); + std::swap(mfScaleA, mfScaleB); } } diff --git a/drawinglayer/source/primitive2d/textbreakuphelper.cxx b/drawinglayer/source/primitive2d/textbreakuphelper.cxx index fa6b213cc0c1..3383b66f87cd 100644 --- a/drawinglayer/source/primitive2d/textbreakuphelper.cxx +++ b/drawinglayer/source/primitive2d/textbreakuphelper.cxx @@ -62,13 +62,13 @@ namespace drawinglayer { // prepare values for new portion basegfx::B2DHomMatrix aNewTransform; - ::std::vector< double > aNewDXArray; + std::vector< double > aNewDXArray; const bool bNewStartIsNotOldStart(nIndex > mrSource.getTextPosition()); if(!mbNoDXArray) { // prepare new DXArray for the single word - aNewDXArray = ::std::vector< double >( + aNewDXArray = std::vector< double >( mrSource.getDXArray().begin() + (nIndex - mrSource.getTextPosition()), mrSource.getDXArray().begin() + ((nIndex + nLength) - mrSource.getTextPosition())); } diff --git a/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx b/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx index 144759735e14..c97e37c7aae1 100644 --- a/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx @@ -40,7 +40,7 @@ namespace drawinglayer const OUString& rText, sal_Int32 nTextPosition, sal_Int32 nTextLength, - const ::std::vector< double >& rDXArray, + const std::vector< double >& rDXArray, const attribute::FontAttribute& rFontAttribute) const { // create the SimpleTextPrimitive needed in any case @@ -311,7 +311,7 @@ namespace drawinglayer const OUString& rText, sal_Int32 nTextPosition, sal_Int32 nTextLength, - const ::std::vector< double >& rDXArray, + const std::vector< double >& rDXArray, const attribute::FontAttribute& rFontAttribute, const css::lang::Locale& rLocale, const basegfx::BColor& rFontColor, diff --git a/drawinglayer/source/primitive2d/textlayoutdevice.cxx b/drawinglayer/source/primitive2d/textlayoutdevice.cxx index 4e28bf616c97..e58aacfa0113 100644 --- a/drawinglayer/source/primitive2d/textlayoutdevice.cxx +++ b/drawinglayer/source/primitive2d/textlayoutdevice.cxx @@ -234,7 +234,7 @@ namespace drawinglayer const OUString& rText, sal_uInt32 nIndex, sal_uInt32 nLength, - const ::std::vector< double >& rDXArray) const + const std::vector< double >& rDXArray) const { const sal_uInt32 nDXArrayCount(rDXArray.size()); sal_uInt32 nTextLength(nLength); @@ -333,12 +333,12 @@ namespace drawinglayer rRectangle, rText, nStyle, rGDIMetaFile); } - ::std::vector< double > TextLayouterDevice::getTextArray( + std::vector< double > TextLayouterDevice::getTextArray( const OUString& rText, sal_uInt32 nIndex, sal_uInt32 nLength) const { - ::std::vector< double > aRetval; + std::vector< double > aRetval; sal_uInt32 nTextLength(nLength); const sal_uInt32 nStringLength(rText.getLength()); @@ -350,7 +350,7 @@ namespace drawinglayer if(nTextLength) { aRetval.reserve(nTextLength); - ::std::vector<long> aArray(nTextLength); + std::vector<long> aArray(nTextLength); mrDevice.GetTextArray(rText, &aArray[0], nIndex, nLength); aRetval.assign(aArray.begin(), aArray.end()); } diff --git a/drawinglayer/source/primitive2d/textlineprimitive2d.cxx b/drawinglayer/source/primitive2d/textlineprimitive2d.cxx index dee8af23ac88..a9ad1ec2dd89 100644 --- a/drawinglayer/source/primitive2d/textlineprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/textlineprimitive2d.cxx @@ -171,7 +171,7 @@ namespace drawinglayer if(pDotDashArray) { - ::std::vector< double > aDoubleArray; + std::vector< double > aDoubleArray; for(const int* p = pDotDashArray; *p; ++p) { diff --git a/drawinglayer/source/primitive2d/textprimitive2d.cxx b/drawinglayer/source/primitive2d/textprimitive2d.cxx index bd9fc0ba30ad..ba3ea7a0a60e 100644 --- a/drawinglayer/source/primitive2d/textprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/textprimitive2d.cxx @@ -124,7 +124,7 @@ namespace drawinglayer // outlines already aligned to given, but wrong DXArray if(getDXArray().size() && !basegfx::fTools::equal(aScale.getX(), 1.0)) { - ::std::vector< double > aScaledDXArray = getDXArray(); + std::vector< double > aScaledDXArray = getDXArray(); const double fDXArrayScale(1.0 / aScale.getX()); for(double & a : aScaledDXArray) @@ -219,7 +219,7 @@ namespace drawinglayer const OUString& rText, sal_Int32 nTextPosition, sal_Int32 nTextLength, - const ::std::vector< double >& rDXArray, + const std::vector< double >& rDXArray, const attribute::FontAttribute& rFontAttribute, const css::lang::Locale& rLocale, const basegfx::BColor& rFontColor, diff --git a/drawinglayer/source/primitive3d/hatchtextureprimitive3d.cxx b/drawinglayer/source/primitive3d/hatchtextureprimitive3d.cxx index 37f4b4041cab..2d0304deb5df 100644 --- a/drawinglayer/source/primitive3d/hatchtextureprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/hatchtextureprimitive3d.cxx @@ -135,7 +135,7 @@ namespace drawinglayer const basegfx::B2DRange aOutlineRange(basegfx::tools::getRange(aTexPolyPolygon)); const basegfx::BColor aHatchColor(getHatch().getColor()); const double fAngle(getHatch().getAngle()); - ::std::vector< basegfx::B2DHomMatrix > aMatrices; + std::vector< basegfx::B2DHomMatrix > aMatrices; // get hatch transformations switch(getHatch().getStyle()) diff --git a/drawinglayer/source/primitive3d/sdrcubeprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrcubeprimitive3d.cxx index 4de490ac1e89..9c52e5e57bbe 100644 --- a/drawinglayer/source/primitive3d/sdrcubeprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/sdrcubeprimitive3d.cxx @@ -126,7 +126,7 @@ namespace drawinglayer } // build vector of PolyPolygons - ::std::vector< basegfx::B3DPolyPolygon > a3DPolyPolygonVector; + std::vector< basegfx::B3DPolyPolygon > a3DPolyPolygonVector; for(sal_uInt32 a(0L); a < aFill.count(); a++) { diff --git a/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx b/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx index bf593985b94b..a53caf43e315 100644 --- a/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx +++ b/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx @@ -45,7 +45,7 @@ namespace drawinglayer { namespace primitive3d { - basegfx::B3DRange getRangeFrom3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill) + basegfx::B3DRange getRangeFrom3DGeometry(std::vector< basegfx::B3DPolyPolygon >& rFill) { basegfx::B3DRange aRetval; @@ -57,7 +57,7 @@ namespace drawinglayer return aRetval; } - void applyNormalsKindSphereTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill, const basegfx::B3DRange& rRange) + void applyNormalsKindSphereTo3DGeometry(std::vector< basegfx::B3DPolyPolygon >& rFill, const basegfx::B3DRange& rRange) { // create sphere normals const basegfx::B3DPoint aCenter(rRange.getCenter()); @@ -68,7 +68,7 @@ namespace drawinglayer } } - void applyNormalsKindFlatTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill) + void applyNormalsKindFlatTo3DGeometry(std::vector< basegfx::B3DPolyPolygon >& rFill) { for(basegfx::B3DPolyPolygon & a : rFill) { @@ -76,7 +76,7 @@ namespace drawinglayer } } - void applyNormalsInvertTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill) + void applyNormalsInvertTo3DGeometry(std::vector< basegfx::B3DPolyPolygon >& rFill) { // invert normals for(basegfx::B3DPolyPolygon & a : rFill) @@ -88,7 +88,7 @@ namespace drawinglayer void applyTextureTo3DGeometry( css::drawing::TextureProjectionMode eModeX, css::drawing::TextureProjectionMode eModeY, - ::std::vector< basegfx::B3DPolyPolygon >& rFill, + std::vector< basegfx::B3DPolyPolygon >& rFill, const basegfx::B3DRange& rRange, const basegfx::B2DVector& rTextureSize) { @@ -165,7 +165,7 @@ namespace drawinglayer } Primitive3DContainer create3DPolyPolygonFillPrimitives( - const ::std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector, + const std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector, const basegfx::B3DHomMatrix& rObjectTransform, const basegfx::B2DVector& rTextureSize, const attribute::Sdr3DObjectAttribute& aSdr3DObjectAttribute, @@ -298,7 +298,7 @@ namespace drawinglayer } Primitive3DContainer createHiddenGeometryPrimitives3D( - const ::std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector, + const std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector, const basegfx::B3DHomMatrix& rObjectTransform, const basegfx::B2DVector& rTextureSize, const attribute::Sdr3DObjectAttribute& aSdr3DObjectAttribute) diff --git a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx index dba0f54bcbd0..b150120ee9d1 100644 --- a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx +++ b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx @@ -111,14 +111,14 @@ namespace bool bCreateTextureCoordinates) { OSL_ENSURE(rPolA.count() == rPolB.count(), "impAddInBetweenFill: unequally sized polygons (!)"); - const sal_uInt32 nPolygonCount(::std::min(rPolA.count(), rPolB.count())); + const sal_uInt32 nPolygonCount(std::min(rPolA.count(), rPolB.count())); for(sal_uInt32 a(0L); a < nPolygonCount; a++) { const basegfx::B3DPolygon aSubA(rPolA.getB3DPolygon(a)); const basegfx::B3DPolygon aSubB(rPolB.getB3DPolygon(a)); OSL_ENSURE(aSubA.count() == aSubB.count(), "impAddInBetweenFill: unequally sized polygons (!)"); - const sal_uInt32 nPointCount(::std::min(aSubA.count(), aSubB.count())); + const sal_uInt32 nPointCount(std::min(aSubA.count(), aSubB.count())); if(nPointCount) { @@ -208,14 +208,14 @@ namespace bool bSmoothHorizontalNormals) { OSL_ENSURE(rPolA.count() == rPolB.count(), "sdrExtrudePrimitive3D: unequally sized polygons (!)"); - const sal_uInt32 nPolygonCount(::std::min(rPolA.count(), rPolB.count())); + const sal_uInt32 nPolygonCount(std::min(rPolA.count(), rPolB.count())); for(sal_uInt32 a(0L); a < nPolygonCount; a++) { basegfx::B3DPolygon aSubA(rPolA.getB3DPolygon(a)); basegfx::B3DPolygon aSubB(rPolB.getB3DPolygon(a)); OSL_ENSURE(aSubA.count() == aSubB.count(), "sdrExtrudePrimitive3D: unequally sized polygons (!)"); - const sal_uInt32 nPointCount(::std::min(aSubA.count(), aSubB.count())); + const sal_uInt32 nPointCount(std::min(aSubA.count(), aSubB.count())); if(nPointCount) { @@ -292,14 +292,14 @@ namespace { const double fWeightB(1.0 - fWeightA); OSL_ENSURE(rPolA.count() == rPolB.count(), "sdrExtrudePrimitive3D: unequally sized polygons (!)"); - const sal_uInt32 nPolygonCount(::std::min(rPolA.count(), rPolB.count())); + const sal_uInt32 nPolygonCount(std::min(rPolA.count(), rPolB.count())); for(sal_uInt32 a(0L); a < nPolygonCount; a++) { basegfx::B3DPolygon aSubA(rPolA.getB3DPolygon(a)); const basegfx::B3DPolygon aSubB(rPolB.getB3DPolygon(a)); OSL_ENSURE(aSubA.count() == aSubB.count(), "sdrExtrudePrimitive3D: unequally sized polygons (!)"); - const sal_uInt32 nPointCount(::std::min(aSubA.count(), aSubB.count())); + const sal_uInt32 nPointCount(std::min(aSubA.count(), aSubB.count())); for(sal_uInt32 b(0L); b < nPointCount; b++) { @@ -572,7 +572,7 @@ namespace drawinglayer } void extractPlanesFromSlice( - ::std::vector< basegfx::B3DPolyPolygon >& rFill, + std::vector< basegfx::B3DPolyPolygon >& rFill, const Slice3DVector& rSliceVector, bool bCreateNormals, bool bSmoothHorizontalNormals, @@ -595,7 +595,7 @@ namespace drawinglayer // texture parameters double fInvTexHeight(1.0); - ::std::vector<double> aTexHeightArray; + std::vector<double> aTexHeightArray; basegfx::B3DRange aTexRangeFront; basegfx::B3DRange aTexRangeBack; @@ -624,7 +624,7 @@ namespace drawinglayer aCenter = aNextCenter; } - const double fTexHeight(::std::accumulate(aTexHeightArray.begin(), aTexHeightArray.end(), 0.0)); + const double fTexHeight(std::accumulate(aTexHeightArray.begin(), aTexHeightArray.end(), 0.0)); if(!basegfx::fTools::equalZero(fTexHeight)) { diff --git a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx index 9cfbba2473a6..750d4d8977e3 100644 --- a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx @@ -76,7 +76,7 @@ namespace drawinglayer } // create geometry - ::std::vector< basegfx::B3DPolyPolygon > aFill; + std::vector< basegfx::B3DPolyPolygon > aFill; extractPlanesFromSlice(aFill, rSliceVector, bCreateNormals, true/*smoothHorizontalNormals*/, getSmoothNormals(), getSmoothLids(), false, 0.5, 0.6, bCreateTextureCoordinatesX || bCreateTextureCoordinatesY, aTexTransform); diff --git a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx index 64041d8439df..0bffc5801b01 100644 --- a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx @@ -71,7 +71,7 @@ namespace drawinglayer } // create geometry - ::std::vector< basegfx::B3DPolyPolygon > aFill; + std::vector< basegfx::B3DPolyPolygon > aFill; extractPlanesFromSlice(aFill, rSliceVector, bCreateNormals, true/*smoothHorizontalNormals*/, getSmoothNormals(), getSmoothLids(), bClosedRotation, 0.85, 0.6, bCreateTextureCoordinatesX || bCreateTextureCoordinatesY, aTexTransform); diff --git a/drawinglayer/source/primitive3d/sdrpolypolygonprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrpolypolygonprimitive3d.cxx index 6cd4b576460f..76c2ac5d24eb 100644 --- a/drawinglayer/source/primitive3d/sdrpolypolygonprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/sdrpolypolygonprimitive3d.cxx @@ -39,7 +39,7 @@ namespace drawinglayer if(getPolyPolygon3D().count()) { - ::std::vector< basegfx::B3DPolyPolygon > aFill; + std::vector< basegfx::B3DPolyPolygon > aFill; aFill.push_back(getPolyPolygon3D()); // get full range diff --git a/drawinglayer/source/primitive3d/sdrsphereprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrsphereprimitive3d.cxx index 6cb80766a359..1374778dc2ce 100644 --- a/drawinglayer/source/primitive3d/sdrsphereprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/sdrsphereprimitive3d.cxx @@ -115,7 +115,7 @@ namespace drawinglayer } // build vector of PolyPolygons - ::std::vector< basegfx::B3DPolyPolygon > a3DPolyPolygonVector; + std::vector< basegfx::B3DPolyPolygon > a3DPolyPolygonVector; for(sal_uInt32 a(0L); a < aFill.count(); a++) { diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx index ba1181009f0e..7d58734363ae 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx @@ -38,7 +38,7 @@ namespace { - typedef ::std::vector< VclPtr<VirtualDevice> > aBuffers; + typedef std::vector< VclPtr<VirtualDevice> > aBuffers; class VDevBuffer : public Timer, protected cppu::BaseMutex { @@ -209,7 +209,7 @@ namespace void VDevBuffer::free(VirtualDevice& rDevice) { ::osl::MutexGuard aGuard(m_aMutex); - const aBuffers::iterator aUsedFound(::std::find(maUsedBuffers.begin(), maUsedBuffers.end(), &rDevice)); + const aBuffers::iterator aUsedFound(std::find(maUsedBuffers.begin(), maUsedBuffers.end(), &rDevice)); OSL_ENSURE(aUsedFound != maUsedBuffers.end(), "OOps, non-registered buffer freed (!)"); maUsedBuffers.erase(aUsedFound); diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index 885367d3a78f..4537422316a5 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -896,7 +896,7 @@ namespace drawinglayer // PDF export. Emulate data handling from UnoControlPDFExportContact // I have now moved describePDFControl to toolkit, thus i can implement the PDF // form control support now as follows - ::std::unique_ptr< vcl::PDFWriter::AnyWidget > pPDFControl( + std::unique_ptr< vcl::PDFWriter::AnyWidget > pPDFControl( ::toolkitform::describePDFControl( rXControl, *mpPDFExtOutDevData ) ); if(pPDFControl.get()) diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index 58a1801a0d1d..f3c6c88ad61c 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -239,7 +239,7 @@ namespace drawinglayer } // create transformed integer DXArray in view coordinate system - ::std::vector< long > aTransformedDXArray; + std::vector< long > aTransformedDXArray; if(rTextCandidate.getDXArray().size()) { @@ -247,7 +247,7 @@ namespace drawinglayer const basegfx::B2DVector aPixelVector(maCurrentTransformation * basegfx::B2DVector(1.0, 0.0)); const double fPixelVectorFactor(aPixelVector.getLength()); - for(::std::vector< double >::const_iterator aStart(rTextCandidate.getDXArray().begin()); + for(std::vector< double >::const_iterator aStart(rTextCandidate.getDXArray().begin()); aStart != rTextCandidate.getDXArray().end(); ++aStart) { aTransformedDXArray.push_back(basegfx::fround((*aStart) * fPixelVectorFactor)); diff --git a/drawinglayer/source/processor3d/defaultprocessor3d.cxx b/drawinglayer/source/processor3d/defaultprocessor3d.cxx index 50830bae4275..ca51d04587ae 100644 --- a/drawinglayer/source/processor3d/defaultprocessor3d.cxx +++ b/drawinglayer/source/processor3d/defaultprocessor3d.cxx @@ -229,7 +229,7 @@ namespace drawinglayer const basegfx::B3DPoint aZero(aInvObjectToView * basegfx::B3DPoint(0.0, 0.0, 0.0)); const basegfx::B3DPoint aOne(aInvObjectToView * basegfx::B3DPoint(1.0, 1.0, 1.0)); const basegfx::B3DVector aLogicPixel(aOne - aZero); - double fLogicPixelSizeWorld(::std::max(::std::max(fabs(aLogicPixel.getX()), fabs(aLogicPixel.getY())), fabs(aLogicPixel.getZ()))); + double fLogicPixelSizeWorld(std::max(std::max(fabs(aLogicPixel.getX()), fabs(aLogicPixel.getY())), fabs(aLogicPixel.getZ()))); // calculate logic pixel size in texture coordinates const double fLogicTexSizeX(fLogicPixelSizeWorld / rPrimitive.getTextureSize().getX()); diff --git a/drawinglayer/source/processor3d/zbufferprocessor3d.cxx b/drawinglayer/source/processor3d/zbufferprocessor3d.cxx index 9d881d1c25e6..85cbe4fdef84 100644 --- a/drawinglayer/source/processor3d/zbufferprocessor3d.cxx +++ b/drawinglayer/source/processor3d/zbufferprocessor3d.cxx @@ -279,8 +279,8 @@ void ZBufferRasterConverter3D::processLineSpan(const basegfx::RasterConversionLi { if(nLine >= 0 && nLine < (sal_Int32)mrBuffer.getHeight()) { - sal_uInt32 nXA(::std::min(mrBuffer.getWidth(), (sal_uInt32)::std::max((sal_Int32)0, basegfx::fround(rA.getX().getVal())))); - const sal_uInt32 nXB(::std::min(mrBuffer.getWidth(), (sal_uInt32)::std::max((sal_Int32)0, basegfx::fround(rB.getX().getVal())))); + sal_uInt32 nXA(std::min(mrBuffer.getWidth(), (sal_uInt32)std::max((sal_Int32)0, basegfx::fround(rA.getX().getVal())))); + const sal_uInt32 nXB(std::min(mrBuffer.getWidth(), (sal_uInt32)std::max((sal_Int32)0, basegfx::fround(rB.getX().getVal())))); if(nXA < nXB) { @@ -299,14 +299,14 @@ void ZBufferRasterConverter3D::processLineSpan(const basegfx::RasterConversionLi while(nXA < nXB) { // early-test Z values if we need to do anything at all - const double fNewZ(::std::max(0.0, ::std::min((double)0xffff, maIntZ.getVal()))); + const double fNewZ(std::max(0.0, std::min((double)0xffff, maIntZ.getVal()))); const sal_uInt16 nNewZ(static_cast< sal_uInt16 >(fNewZ)); sal_uInt16& rOldZ(mrBuffer.getZ(nScanlineIndex)); if(nNewZ > rOldZ) { // detect color and opacity for this pixel - const sal_uInt16 nOpacity(::std::max((sal_Int16)0, static_cast< sal_Int16 >(decideColorAndOpacity(aNewColor) * 255.0))); + const sal_uInt16 nOpacity(std::max((sal_Int16)0, static_cast< sal_Int16 >(decideColorAndOpacity(aNewColor) * 255.0))); if(nOpacity > 0) { diff --git a/drawinglayer/source/texture/texture.cxx b/drawinglayer/source/texture/texture.cxx index 7d53a46e4d29..75565008b103 100644 --- a/drawinglayer/source/texture/texture.cxx +++ b/drawinglayer/source/texture/texture.cxx @@ -615,7 +615,7 @@ namespace drawinglayer && mnSteps == pCompare->mnSteps); } - void GeoTexSvxHatch::appendTransformations(::std::vector< basegfx::B2DHomMatrix >& rMatrices) + void GeoTexSvxHatch::appendTransformations(std::vector< basegfx::B2DHomMatrix >& rMatrices) { if(mbDefinitionRangeEqualsOutputRange) { @@ -641,7 +641,7 @@ namespace drawinglayer // calculate vertical start value and a security maximum integer value to avoid death loops double fStart(basegfx::snapToNearestMultiple(aBackUnitRange.getMinY(), mfDistance)); const sal_uInt32 nNeededIntegerSteps(basegfx::fround((aBackUnitRange.getHeight() / mfDistance) + 0.5)); - sal_uInt32 nMaxIntegerSteps(::std::min(nNeededIntegerSteps, sal_uInt32(10000))); + sal_uInt32 nMaxIntegerSteps(std::min(nNeededIntegerSteps, sal_uInt32(10000))); while(fStart < aBackUnitRange.getMaxY() && nMaxIntegerSteps) { @@ -725,12 +725,12 @@ namespace drawinglayer return iterateTiles(nullptr); } - void GeoTexSvxTiled::appendTransformations(::std::vector< basegfx::B2DHomMatrix >& rMatrices) const + void GeoTexSvxTiled::appendTransformations(std::vector< basegfx::B2DHomMatrix >& rMatrices) const { iterateTiles(&rMatrices); } - sal_Int32 GeoTexSvxTiled::iterateTiles(::std::vector< basegfx::B2DHomMatrix >* pMatrices) const + sal_Int32 GeoTexSvxTiled::iterateTiles(std::vector< basegfx::B2DHomMatrix >* pMatrices) const { const double fWidth(maRange.getWidth()); sal_Int32 nTiles = 0; diff --git a/dtrans/source/generic/clipboardmanager.hxx b/dtrans/source/generic/clipboardmanager.hxx index 9cbccb9dcc3d..5d4889e9d53e 100644 --- a/dtrans/source/generic/clipboardmanager.hxx +++ b/dtrans/source/generic/clipboardmanager.hxx @@ -30,7 +30,7 @@ #define CLIPBOARDMANAGER_IMPLEMENTATION_NAME "com.sun.star.comp.datatransfer.ClipboardManager" -typedef ::std::map< OUString, css::uno::Reference< css::datatransfer::clipboard::XClipboard > > ClipboardMap; +typedef std::map< OUString, css::uno::Reference< css::datatransfer::clipboard::XClipboard > > ClipboardMap; namespace dtrans { diff --git a/dtrans/source/win32/clipb/WinClipboard.hxx b/dtrans/source/win32/clipb/WinClipboard.hxx index 4e4ddc9a7c3d..09b2358648ff 100644 --- a/dtrans/source/win32/clipb/WinClipboard.hxx +++ b/dtrans/source/win32/clipb/WinClipboard.hxx @@ -112,7 +112,7 @@ private: void SAL_CALL notifyAllClipboardListener( ); private: - ::std::unique_ptr< CWinClipbImpl > m_pImpl; + std::unique_ptr< CWinClipbImpl > m_pImpl; css::uno::Reference< css::uno::XComponentContext > m_xContext; friend class CWinClipbImpl; diff --git a/editeng/source/accessibility/AccessibleParaManager.cxx b/editeng/source/accessibility/AccessibleParaManager.cxx index b3dd3d8e0f33..4d77ba95698d 100644 --- a/editeng/source/accessibility/AccessibleParaManager.cxx +++ b/editeng/source/accessibility/AccessibleParaManager.cxx @@ -182,7 +182,7 @@ namespace accessibility maEEOffset = rOffset; MemFunAdapter< const Point& > aAdapter( &::accessibility::AccessibleEditableTextPara::SetEEOffset, rOffset ); - ::std::for_each( begin(), end(), aAdapter ); + std::for_each( begin(), end(), aAdapter ); } void AccessibleParaManager::SetActive( bool bActive ) @@ -246,7 +246,7 @@ namespace accessibility void AccessibleParaManager::SetState( const sal_Int16 nStateId ) { - ::std::for_each( begin(), end(), + std::for_each( begin(), end(), MemFunAdapter< const sal_Int16 >( &AccessibleEditableTextPara::SetState, nStateId ) ); } @@ -260,13 +260,13 @@ namespace accessibility void AccessibleParaManager::UnSetState( const sal_Int16 nStateId ) { - ::std::for_each( begin(), end(), + std::for_each( begin(), end(), MemFunAdapter< const sal_Int16 >( &AccessibleEditableTextPara::UnSetState, nStateId ) ); } // not generic yet, no arguments... - class AccessibleParaManager_DisposeChildren : public ::std::unary_function< ::accessibility::AccessibleEditableTextPara&, void > + class AccessibleParaManager_DisposeChildren : public std::unary_function< ::accessibility::AccessibleEditableTextPara&, void > { public: AccessibleParaManager_DisposeChildren() {} @@ -280,12 +280,12 @@ namespace accessibility { AccessibleParaManager_DisposeChildren aFunctor; - ::std::for_each( begin(), end(), + std::for_each( begin(), end(), WeakChildAdapter< AccessibleParaManager_DisposeChildren > (aFunctor) ); } // not generic yet, too many method arguments... - class StateChangeEvent : public ::std::unary_function< ::accessibility::AccessibleEditableTextPara&, void > + class StateChangeEvent : public std::unary_function< ::accessibility::AccessibleEditableTextPara&, void > { public: typedef void return_type; @@ -326,16 +326,16 @@ namespace accessibility VectorOfChildren::const_iterator front = maChildren.begin(); VectorOfChildren::const_iterator back = front; - ::std::advance( front, nStartPara ); - ::std::advance( back, nEndPara ); + std::advance( front, nStartPara ); + std::advance( back, nEndPara ); StateChangeEvent aFunctor( nEventId, rNewValue, rOldValue ); - ::std::for_each( front, back, AccessibleParaManager::WeakChildAdapter< StateChangeEvent >( aFunctor ) ); + std::for_each( front, back, AccessibleParaManager::WeakChildAdapter< StateChangeEvent >( aFunctor ) ); } } - class ReleaseChild : public ::std::unary_function< const AccessibleParaManager::WeakChild&, AccessibleParaManager::WeakChild > + class ReleaseChild : public std::unary_function< const AccessibleParaManager::WeakChild&, AccessibleParaManager::WeakChild > { public: AccessibleParaManager::WeakChild operator()( const AccessibleParaManager::WeakChild& rPara ) @@ -361,10 +361,10 @@ namespace accessibility VectorOfChildren::iterator front = maChildren.begin(); VectorOfChildren::iterator back = front; - ::std::advance( front, nStartPara ); - ::std::advance( back, nEndPara ); + std::advance( front, nStartPara ); + std::advance( back, nEndPara ); - ::std::transform( front, back, front, ReleaseChild() ); + std::transform( front, back, front, ReleaseChild() ); } } diff --git a/editeng/source/accessibility/AccessibleStaticTextBase.cxx b/editeng/source/accessibility/AccessibleStaticTextBase.cxx index 6406b2934231..6700b1402a43 100644 --- a/editeng/source/accessibility/AccessibleStaticTextBase.cxx +++ b/editeng/source/accessibility/AccessibleStaticTextBase.cxx @@ -61,9 +61,9 @@ using namespace ::com::sun::star::accessibility; namespace accessibility { - typedef ::std::vector< beans::PropertyValue > PropertyValueVector; + typedef std::vector< beans::PropertyValue > PropertyValueVector; - class PropertyValueEqualFunctor : public ::std::binary_function< beans::PropertyValue, beans::PropertyValue, bool > + class PropertyValueEqualFunctor : public std::binary_function< beans::PropertyValue, beans::PropertyValue, bool > { public: PropertyValueEqualFunctor() @@ -111,7 +111,7 @@ namespace accessibility // receive pointer to our frontend class and view window AccessibleStaticTextBase_Impl(); - void SetEditSource( ::std::unique_ptr< SvxEditSource > && pEditSource ); + void SetEditSource( std::unique_ptr< SvxEditSource > && pEditSource ); void SetEventSource( const uno::Reference< XAccessible >& rInterface ) { @@ -190,7 +190,7 @@ namespace accessibility // now the maTextParagraph has an empty parent reference set } - void AccessibleStaticTextBase_Impl::SetEditSource( ::std::unique_ptr< SvxEditSource > && pEditSource ) + void AccessibleStaticTextBase_Impl::SetEditSource( std::unique_ptr< SvxEditSource > && pEditSource ) { maEditSource.SetEditSource( std::move(pEditSource) ); @@ -436,7 +436,7 @@ namespace accessibility // AccessibleStaticTextBase implementation - AccessibleStaticTextBase::AccessibleStaticTextBase( ::std::unique_ptr< SvxEditSource > && pEditSource ) : + AccessibleStaticTextBase::AccessibleStaticTextBase( std::unique_ptr< SvxEditSource > && pEditSource ) : mpImpl( new AccessibleStaticTextBase_Impl() ) { SolarMutexGuard aGuard; @@ -448,7 +448,7 @@ namespace accessibility { } - void AccessibleStaticTextBase::SetEditSource( ::std::unique_ptr< SvxEditSource > && pEditSource ) + void AccessibleStaticTextBase::SetEditSource( std::unique_ptr< SvxEditSource > && pEditSource ) { // precondition: solar mutex locked DBG_TESTSOLARMUTEX(); @@ -663,7 +663,7 @@ namespace accessibility SolarMutexGuard aGuard; if( nStartIndex > nEndIndex ) - ::std::swap(nStartIndex, nEndIndex); + std::swap(nStartIndex, nEndIndex); //if startindex equals endindex we will get nothing. So return an empty string directly. if ( nStartIndex == nEndIndex ) { @@ -884,7 +884,7 @@ namespace accessibility SolarMutexGuard aGuard; if( nStartIndex > nEndIndex ) - ::std::swap(nStartIndex, nEndIndex); + std::swap(nStartIndex, nEndIndex); EPosition aStartIndex( mpImpl->Range2Internal(nStartIndex) ); EPosition aEndIndex( mpImpl->Range2Internal(nEndIndex) ); @@ -914,7 +914,7 @@ namespace accessibility { const beans::PropertyValue* pItr = aSeq.getConstArray(); const beans::PropertyValue* pEnd = pItr + aSeq.getLength(); - const beans::PropertyValue* pFind = ::std::find_if( pItr, pEnd, ::std::bind2nd( PropertyValueEqualFunctor(), std::cref( *aItr ) ) ); + const beans::PropertyValue* pFind = std::find_if( pItr, pEnd, std::bind2nd( PropertyValueEqualFunctor(), std::cref( *aItr ) ) ); if ( pFind != pEnd ) { aIntersectionVec.push_back( *pFind ); @@ -952,7 +952,7 @@ namespace accessibility { const beans::PropertyValue* pItr = aIntersectionSeq.getConstArray(); const beans::PropertyValue* pEnd = pItr + aIntersectionSeq.getLength(); - bool bNone = ::std::none_of( pItr, pEnd, ::std::bind2nd( PropertyValueEqualFunctor(), std::cref( pDefAttr[i] ) ) ); + bool bNone = std::none_of( pItr, pEnd, std::bind2nd( PropertyValueEqualFunctor(), std::cref( pDefAttr[i] ) ) ); if ( bNone && pDefAttr[i].Handle != 0) { aDiffVec.push_back( pDefAttr[i] ); diff --git a/editeng/source/accessibility/AccessibleStringWrap.cxx b/editeng/source/accessibility/AccessibleStringWrap.cxx index d3e6f49dfef7..f5589f703854 100644 --- a/editeng/source/accessibility/AccessibleStringWrap.cxx +++ b/editeng/source/accessibility/AccessibleStringWrap.cxx @@ -59,7 +59,7 @@ void AccessibleStringWrap::GetCharacterBounds( sal_Int32 nIndex, Rectangle& rRec rRect.Left() = 0; rRect.Top() = 0; rRect.SetSize( Size(mrDev.GetTextHeight(), labs(aXArray[0] - aXArray[1])) ); - rRect.Move( ::std::min(aXArray[0], aXArray[1]), 0 ); + rRect.Move( std::min(aXArray[0], aXArray[1]), 0 ); } if( mrFont.IsVertical() ) diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index 536646882341..291a0676891c 100644 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -371,7 +371,7 @@ struct ExtraPortionInfo bool bCompressed; std::unique_ptr<long[]> pOrgDXArray; - ::std::vector< sal_Int32 > lineBreaksList; + std::vector< sal_Int32 > lineBreaksList; ExtraPortionInfo(); diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 9247b1a7651f..9a6b009bbdd4 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -2354,7 +2354,7 @@ void ImpEditEngine::CreateTextPortions( ParaPortion* pParaPortion, sal_Int32& rS ContentNode* pNode = pParaPortion->GetNode(); DBG_ASSERT( pNode->Len(), "CreateTextPortions should not be used for empty paragraphs!" ); - ::std::set< sal_Int32 > aPositions; + std::set< sal_Int32 > aPositions; aPositions.insert( 0 ); sal_uInt16 nAttr = 0; @@ -2427,10 +2427,10 @@ void ImpEditEngine::CreateTextPortions( ParaPortion* pParaPortion, sal_Int32& rS // A portion may also have been formed by a line break: aPositions.insert( nPortionStart ); - ::std::set< sal_Int32 >::iterator nInvPos = aPositions.find( nPortionStart ); + std::set< sal_Int32 >::iterator nInvPos = aPositions.find( nPortionStart ); DBG_ASSERT( (nInvPos != aPositions.end()), "InvPos ?!" ); - ::std::set< sal_Int32 >::iterator i = nInvPos; + std::set< sal_Int32 >::iterator i = nInvPos; ++i; while ( i != aPositions.end() ) { @@ -3032,7 +3032,7 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRect, Point aSt // Over the Portions of the line ... bool bParsingFields = false; - ::std::vector< sal_Int32 >::iterator itSubLines; + std::vector< sal_Int32 >::iterator itSubLines; for ( sal_Int32 nPortion = pLine->GetStartPortion(); nPortion <= pLine->GetEndPortion(); nPortion++ ) { @@ -3230,7 +3230,7 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRect, Point aSt aStartPos.X() -= pLine->GetHeight(); } } - ::std::vector< sal_Int32 >::iterator curIt = itSubLines; + std::vector< sal_Int32 >::iterator curIt = itSubLines; ++itSubLines; if( itSubLines != pExtraInfo->lineBreaksList.end() ) { diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 56d8566a2ec4..7d5227845100 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -794,7 +794,7 @@ void ImpEditEngine::WriteItemAsRTF( const SfxPoolItem& rItem, SvStream& rOutput, break; case EE_CHAR_COLOR: { - SvxColorList::const_iterator const iter = ::std::find( + SvxColorList::const_iterator const iter = std::find( rColorList.begin(), rColorList.end(), static_cast<SvxColorItem const&>(rItem).GetValue()); assert(iter != rColorList.end()); diff --git a/editeng/source/items/borderline.cxx b/editeng/source/items/borderline.cxx index f6ffce807a0a..41aaf8f0bbbd 100644 --- a/editeng/source/items/borderline.cxx +++ b/editeng/source/items/borderline.cxx @@ -500,7 +500,7 @@ void SvxBorderLine::GuessLinesWidths( SvxBorderStyle nStyle, sal_uInt16 nOut, sa case FINE_DASHED: case DASH_DOT: case DASH_DOT_DOT: - ::std::swap( nOut, nIn); + std::swap( nOut, nIn); break; default: ; // nothing diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index fef8739e5f20..fdd66c356ad8 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1901,7 +1901,7 @@ OUString SvxAutoCorrect::GetAutoCorrFileName( const LanguageTag& rLanguageTag, if (bUnlocalized) { // we don't want variant, so we'll take "fr" instead of "fr-CA" for example - ::std::vector< OUString > vecFallBackStrings = rLanguageTag.getFallbackStrings(false); + std::vector< OUString > vecFallBackStrings = rLanguageTag.getFallbackStrings(false); if (!vecFallBackStrings.empty()) sExt = vecFallBackStrings[0]; } diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index 04db26f58e38..41564f4108de 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -57,7 +57,7 @@ #include <unicode/ubidi.h> #include <cassert> #include <memory> -using ::std::advance; +using std::advance; // Outliner diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index 0aef5b3e32cf..ed9d7809a369 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -298,7 +298,7 @@ void SvxRTFParser::ReadStyleTable() sal_uInt16 nStyleNo = 0; bool bHasStyleNo = false; int _nOpenBrakets = 1; // the first was already detected earlier!! - ::std::unique_ptr<SvxRTFStyleType> pStyle( + std::unique_ptr<SvxRTFStyleType> pStyle( new SvxRTFStyleType( *pAttrPool, &aWhichMap[0] )); pStyle->aAttrSet.Put( GetRTFDefaults() ); @@ -911,7 +911,7 @@ void SvxRTFParser::AttrGroupEnd() // process the current, delete from Stack // - all character attributes sre keep the area // - all paragraph attributes to get the area // up to the previous paragraph - ::std::unique_ptr<SvxRTFItemStackType> pNew( + std::unique_ptr<SvxRTFItemStackType> pNew( new SvxRTFItemStackType(*pOld, *pInsPos, true)); pNew->aAttrSet.SetParent( pOld->aAttrSet.GetParent() ); diff --git a/editeng/source/uno/unoedhlp.cxx b/editeng/source/uno/unoedhlp.cxx index 646d009d0b20..7d72e8c27f06 100644 --- a/editeng/source/uno/unoedhlp.cxx +++ b/editeng/source/uno/unoedhlp.cxx @@ -41,46 +41,46 @@ SvxEditSourceHint::SvxEditSourceHint( SfxHintId _nId, sal_uLong nValue, sal_Int3 } -::std::unique_ptr<SfxHint> SvxEditSourceHelper::EENotification2Hint( EENotify* aNotify ) +std::unique_ptr<SfxHint> SvxEditSourceHelper::EENotification2Hint( EENotify* aNotify ) { if( aNotify ) { switch( aNotify->eNotificationType ) { case EE_NOTIFY_TEXTMODIFIED: - return ::std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextModified, aNotify->nParagraph ) ); + return std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextModified, aNotify->nParagraph ) ); case EE_NOTIFY_PARAGRAPHINSERTED: - return ::std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextParaInserted, aNotify->nParagraph ) ); + return std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextParaInserted, aNotify->nParagraph ) ); case EE_NOTIFY_PARAGRAPHREMOVED: - return ::std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextParaRemoved, aNotify->nParagraph ) ); + return std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextParaRemoved, aNotify->nParagraph ) ); case EE_NOTIFY_PARAGRAPHSMOVED: - return ::std::unique_ptr<SfxHint>( new SvxEditSourceHint( SfxHintId::EditSourceParasMoved, aNotify->nParagraph, aNotify->nParam1, aNotify->nParam2 ) ); + return std::unique_ptr<SfxHint>( new SvxEditSourceHint( SfxHintId::EditSourceParasMoved, aNotify->nParagraph, aNotify->nParam1, aNotify->nParam2 ) ); case EE_NOTIFY_TextHeightChanged: - return ::std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextHeightChanged, aNotify->nParagraph ) ); + return std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextHeightChanged, aNotify->nParagraph ) ); case EE_NOTIFY_TEXTVIEWSCROLLED: - return ::std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextViewScrolled ) ); + return std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextViewScrolled ) ); case EE_NOTIFY_TEXTVIEWSELECTIONCHANGED: - return ::std::unique_ptr<SfxHint>( new SvxEditSourceHint( SfxHintId::EditSourceSelectionChanged ) ); + return std::unique_ptr<SfxHint>( new SvxEditSourceHint( SfxHintId::EditSourceSelectionChanged ) ); case EE_NOTIFY_BLOCKNOTIFICATION_START: - return ::std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextBlockNotificationStart, 0 ) ); + return std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextBlockNotificationStart, 0 ) ); case EE_NOTIFY_BLOCKNOTIFICATION_END: - return ::std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextBlockNotificationEnd, 0 ) ); + return std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextBlockNotificationEnd, 0 ) ); case EE_NOTIFY_INPUT_START: - return ::std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextInputStart, 0 ) ); + return std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextInputStart, 0 ) ); case EE_NOTIFY_INPUT_END: - return ::std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextInputEnd, 0 ) ); + return std::unique_ptr<SfxHint>( new TextHint( SfxHintId::TextInputEnd, 0 ) ); case EE_NOTIFY_TEXTVIEWSELECTIONCHANGED_ENDD_PARA: - return ::std::unique_ptr<SfxHint>( new SvxEditSourceHintEndPara ); + return std::unique_ptr<SfxHint>( new SvxEditSourceHintEndPara ); default: OSL_FAIL( "SvxEditSourceHelper::EENotification2Hint unknown notification" ); break; diff --git a/editeng/source/uno/unoedprx.cxx b/editeng/source/uno/unoedprx.cxx index b5e94f5550ee..363ed425f6c9 100644 --- a/editeng/source/uno/unoedprx.cxx +++ b/editeng/source/uno/unoedprx.cxx @@ -207,7 +207,7 @@ void SvxAccessibleTextIndex::SetEEIndex( sal_uInt16 nEEIndex, const SvxTextForwa break; } - mnIndex += ::std::max(aFieldInfo.aCurrentText.getLength()-1, (sal_Int32)0); + mnIndex += std::max(aFieldInfo.aCurrentText.getLength()-1, (sal_Int32)0); } } @@ -260,13 +260,13 @@ void SvxAccessibleTextIndex::SetIndex( sal_Int32 nIndex, const SvxTextForwarder& if( aFieldInfo.aPosition.nIndex > mnEEIndex ) break; - mnEEIndex -= ::std::max(aFieldInfo.aCurrentText.getLength()-1, (sal_Int32)0); + mnEEIndex -= std::max(aFieldInfo.aCurrentText.getLength()-1, (sal_Int32)0); // we're within a field if( aFieldInfo.aPosition.nIndex >= mnEEIndex ) { AreInField(); - SetFieldOffset( ::std::max(aFieldInfo.aCurrentText.getLength()-1, (sal_Int32)0) - (aFieldInfo.aPosition.nIndex - mnEEIndex), + SetFieldOffset( std::max(aFieldInfo.aCurrentText.getLength()-1, (sal_Int32)0) - (aFieldInfo.aPosition.nIndex - mnEEIndex), aFieldInfo.aCurrentText.getLength() ); mnEEIndex = aFieldInfo.aPosition.nIndex ; break; @@ -304,7 +304,7 @@ SvxEditSource* SvxEditSourceAdapter::Clone() const { if( mbEditSourceValid && mpAdaptee.get() ) { - ::std::unique_ptr< SvxEditSource > pClonedAdaptee( mpAdaptee->Clone() ); + std::unique_ptr< SvxEditSource > pClonedAdaptee( mpAdaptee->Clone() ); if( pClonedAdaptee.get() ) { @@ -388,7 +388,7 @@ SfxBroadcaster& SvxEditSourceAdapter::GetBroadcaster() const return maDummyBroadcaster; } -void SvxEditSourceAdapter::SetEditSource( ::std::unique_ptr< SvxEditSource > && pAdaptee ) +void SvxEditSourceAdapter::SetEditSource( std::unique_ptr< SvxEditSource > && pAdaptee ) { if( pAdaptee.get() ) { @@ -442,7 +442,7 @@ OUString SvxAccessibleTextAdapter::GetText( const ESelection& rSel ) const if( rSel.nStartPara > rSel.nEndPara || (rSel.nStartPara == rSel.nEndPara && rSel.nStartPos > rSel.nEndPos) ) { - ::std::swap( aStartIndex, aEndIndex ); + std::swap( aStartIndex, aEndIndex ); } OUString sStr = mpTextForwarder->GetText( MakeEESelection(aStartIndex, aEndIndex) ); @@ -1093,7 +1093,7 @@ bool SvxAccessibleTextAdapter::IsEditable( const ESelection& rSel ) if( rSel.nStartPara > rSel.nEndPara || (rSel.nStartPara == rSel.nEndPara && rSel.nStartPos > rSel.nEndPos) ) { - ::std::swap( aStartIndex, aEndIndex ); + std::swap( aStartIndex, aEndIndex ); } return aStartIndex.IsEditableRange( aEndIndex ); diff --git a/editeng/source/uno/unofored.cxx b/editeng/source/uno/unofored.cxx index 8f7683e995a6..f2063e4d515a 100644 --- a/editeng/source/uno/unofored.cxx +++ b/editeng/source/uno/unofored.cxx @@ -290,7 +290,7 @@ Rectangle SvxEditEngineForwarder::GetCharBounds( sal_Int32 nPara, sal_Int32 nInd // EditEngine's 'internal' methods like GetCharacterBounds() // don't rotate for vertical text. Size aSize( rEditEngine.CalcTextWidth(), rEditEngine.GetTextHeight() ); - ::std::swap( aSize.Width(), aSize.Height() ); + std::swap( aSize.Width(), aSize.Height() ); bool bIsVertical( rEditEngine.IsVertical() ); // #108900# Handle virtual position one-past-the end of the string @@ -372,7 +372,7 @@ OutputDevice* SvxEditEngineForwarder::GetRefDevice() const bool SvxEditEngineForwarder::GetIndexAtPoint( const Point& rPos, sal_Int32& nPara, sal_Int32& nIndex ) const { Size aSize( rEditEngine.CalcTextWidth(), rEditEngine.GetTextHeight() ); - ::std::swap( aSize.Width(), aSize.Height() ); + std::swap( aSize.Width(), aSize.Height() ); Point aEEPos( SvxEditSourceHelper::UserSpaceToEE( rPos, aSize, rEditEngine.IsVertical() )); diff --git a/editeng/source/uno/unoforou.cxx b/editeng/source/uno/unoforou.cxx index 1fa359a8c7b4..6e75f2ae44f8 100644 --- a/editeng/source/uno/unoforou.cxx +++ b/editeng/source/uno/unoforou.cxx @@ -292,7 +292,7 @@ Rectangle SvxOutlinerForwarder::GetCharBounds( sal_Int32 nPara, sal_Int32 nIndex // EditEngine's 'internal' methods like GetCharacterBounds() // don't rotate for vertical text. Size aSize( rOutliner.CalcTextSize() ); - ::std::swap( aSize.Width(), aSize.Height() ); + std::swap( aSize.Width(), aSize.Height() ); bool bIsVertical( rOutliner.IsVertical() ); // #108900# Handle virtual position one-past-the end of the string @@ -369,7 +369,7 @@ OutputDevice* SvxOutlinerForwarder::GetRefDevice() const bool SvxOutlinerForwarder::GetIndexAtPoint( const Point& rPos, sal_Int32& nPara, sal_Int32& nIndex ) const { Size aSize( rOutliner.CalcTextSize() ); - ::std::swap( aSize.Width(), aSize.Height() ); + std::swap( aSize.Width(), aSize.Height() ); Point aEEPos( SvxEditSourceHelper::UserSpaceToEE( rPos, aSize, rOutliner.IsVertical() )); diff --git a/embeddedobj/source/msole/olecomponent.cxx b/embeddedobj/source/msole/olecomponent.cxx index c18775b95d80..2cea0ca4b600 100644 --- a/embeddedobj/source/msole/olecomponent.cxx +++ b/embeddedobj/source/msole/olecomponent.cxx @@ -166,7 +166,7 @@ public: // ============ class ComSmart ===================== -typedef ::std::vector< FORMATETC* > FormatEtcList; +typedef std::vector< FORMATETC* > FormatEtcList; FORMATETC const pFormatTemplates[FORMATS_NUM] = { { CF_ENHMETAFILE, nullptr, 0, -1, TYMED_ENHMF }, diff --git a/embedserv/source/embed/ed_ioleobject.cxx b/embedserv/source/embed/ed_ioleobject.cxx index 35557d25ff2b..54afccc3adb4 100644 --- a/embedserv/source/embed/ed_ioleobject.cxx +++ b/embedserv/source/embed/ed_ioleobject.cxx @@ -298,7 +298,7 @@ STDMETHODIMP EmbedDocument_Impl::Advise( IAdviseSink *pAdvSink, DWORD *pdwConnec return E_OUTOFMEMORY; pAdvSink->AddRef(); - m_aAdviseHashMap.insert( ::std::pair< DWORD, IAdviseSink* >( m_nAdviseNum, pAdvSink ) ); + m_aAdviseHashMap.insert( std::pair< DWORD, IAdviseSink* >( m_nAdviseNum, pAdvSink ) ); *pdwConnection = m_nAdviseNum++; return S_OK; diff --git a/extensions/source/abpilot/typeselectionpage.cxx b/extensions/source/abpilot/typeselectionpage.cxx index 524bdaa6c7dd..eb4e00b83fca 100644 --- a/extensions/source/abpilot/typeselectionpage.cxx +++ b/extensions/source/abpilot/typeselectionpage.cxx @@ -120,7 +120,7 @@ namespace abp m_aAllTypes.push_back( ButtonItem( m_pOther, AST_OTHER, true ) ); Link<Button*,void> aTypeSelectionHandler = LINK(this, TypeSelectionPage, OnTypeSelected ); - for ( ::std::vector< ButtonItem >::const_iterator loop = m_aAllTypes.begin(); + for ( std::vector< ButtonItem >::const_iterator loop = m_aAllTypes.begin(); loop != m_aAllTypes.end(); ++loop ) { ButtonItem aItem = *loop; @@ -142,7 +142,7 @@ namespace abp void TypeSelectionPage::dispose() { - for ( ::std::vector< ButtonItem >::iterator loop = m_aAllTypes.begin(); + for ( std::vector< ButtonItem >::iterator loop = m_aAllTypes.begin(); loop != m_aAllTypes.end(); ++loop ) { loop->m_bVisible = false; @@ -163,7 +163,7 @@ namespace abp { AddressBookSourcePage::ActivatePage(); - for ( ::std::vector< ButtonItem >::const_iterator loop = m_aAllTypes.begin(); + for ( std::vector< ButtonItem >::const_iterator loop = m_aAllTypes.begin(); loop != m_aAllTypes.end(); ++loop ) { const ButtonItem& rItem = (*loop); @@ -187,7 +187,7 @@ namespace abp void TypeSelectionPage::selectType( AddressSourceType _eType ) { - for ( ::std::vector< ButtonItem >::const_iterator loop = m_aAllTypes.begin(); + for ( std::vector< ButtonItem >::const_iterator loop = m_aAllTypes.begin(); loop != m_aAllTypes.end(); ++loop ) { ButtonItem aItem = (*loop); @@ -198,7 +198,7 @@ namespace abp AddressSourceType TypeSelectionPage::getSelectedType() const { - for ( ::std::vector< ButtonItem >::const_iterator loop = m_aAllTypes.begin(); + for ( std::vector< ButtonItem >::const_iterator loop = m_aAllTypes.begin(); loop != m_aAllTypes.end(); ++loop ) { ButtonItem aItem = (*loop); diff --git a/extensions/source/abpilot/typeselectionpage.hxx b/extensions/source/abpilot/typeselectionpage.hxx index d757cfcd15ad..8b9b9b609468 100644 --- a/extensions/source/abpilot/typeselectionpage.hxx +++ b/extensions/source/abpilot/typeselectionpage.hxx @@ -55,7 +55,7 @@ namespace abp {} }; - ::std::vector< ButtonItem > m_aAllTypes; + std::vector< ButtonItem > m_aAllTypes; public: explicit TypeSelectionPage( OAddressBookSourcePilot* _pParent ); diff --git a/extensions/source/bibliography/formcontrolcontainer.cxx b/extensions/source/bibliography/formcontrolcontainer.cxx index 4da38e35780b..4097bef737a0 100644 --- a/extensions/source/bibliography/formcontrolcontainer.cxx +++ b/extensions/source/bibliography/formcontrolcontainer.cxx @@ -72,7 +72,7 @@ namespace bib m_xForm = _rxForm; } - struct ControlModeSwitch : public ::std::unary_function< Reference< XControl >, void > + struct ControlModeSwitch : public std::unary_function< Reference< XControl >, void > { bool bDesign; explicit ControlModeSwitch( bool _bDesign ) : bDesign( _bDesign ) { } @@ -93,7 +93,7 @@ namespace bib if ( xControlCont.is() ) aControls = xControlCont->getControls(); - ::std::for_each( + std::for_each( aControls.getConstArray(), aControls.getConstArray() + aControls.getLength(), ControlModeSwitch( _bDesign ) diff --git a/extensions/source/logging/filehandler.cxx b/extensions/source/logging/filehandler.cxx index 0096cad1f06c..a59a43cb9800 100644 --- a/extensions/source/logging/filehandler.cxx +++ b/extensions/source/logging/filehandler.cxx @@ -77,7 +77,7 @@ namespace logging Reference<XComponentContext> m_xContext; LogHandlerHelper m_aHandlerHelper; OUString m_sFileURL; - ::std::unique_ptr< ::osl::File > m_pFile; + std::unique_ptr< ::osl::File > m_pFile; FileValidity m_eFileValidity; public: diff --git a/extensions/source/propctrlr/browserlistbox.cxx b/extensions/source/propctrlr/browserlistbox.cxx index b5e0cffeddd6..27bcc3463aab 100644 --- a/extensions/source/propctrlr/browserlistbox.cxx +++ b/extensions/source/propctrlr/browserlistbox.cxx @@ -573,7 +573,7 @@ namespace pcr void OBrowserListBox::UpdatePosNSize() { - for ( ::std::set< sal_uInt16 >::const_iterator aLoop = m_aOutOfDateLines.begin(); + for ( std::set< sal_uInt16 >::const_iterator aLoop = m_aOutOfDateLines.begin(); aLoop != m_aOutOfDateLines.end(); ++aLoop ) @@ -1192,8 +1192,8 @@ namespace pcr if ( nScrollOffset ) { long nNewThumbPos = m_aVScroll->GetThumbPos() + nScrollOffset; - nNewThumbPos = ::std::max( nNewThumbPos, m_aVScroll->GetRangeMin() ); - nNewThumbPos = ::std::min( nNewThumbPos, m_aVScroll->GetRangeMax() ); + nNewThumbPos = std::max( nNewThumbPos, m_aVScroll->GetRangeMin() ); + nNewThumbPos = std::min( nNewThumbPos, m_aVScroll->GetRangeMax() ); m_aVScroll->DoScroll( nNewThumbPos ); nNewThumbPos = m_aVScroll->GetThumbPos(); diff --git a/extensions/source/propctrlr/browserlistbox.hxx b/extensions/source/propctrlr/browserlistbox.hxx index be7425b2c54b..ff20fd99125c 100644 --- a/extensions/source/propctrlr/browserlistbox.hxx +++ b/extensions/source/propctrlr/browserlistbox.hxx @@ -66,7 +66,7 @@ namespace pcr { } }; - typedef ::std::vector< ListBoxLine > ListBoxLines; + typedef std::vector< ListBoxLine > ListBoxLines; class OBrowserListBox :public Control @@ -86,7 +86,7 @@ namespace pcr m_xActiveControl; sal_uInt16 m_nTheNameSize; long m_nRowHeight; - ::std::set< sal_uInt16 > m_aOutOfDateLines; + std::set< sal_uInt16 > m_aOutOfDateLines; bool m_bIsActive : 1; bool m_bUpdate : 1; ::rtl::Reference< PropertyControlContext_Impl > diff --git a/extensions/source/propctrlr/buttonnavigationhandler.cxx b/extensions/source/propctrlr/buttonnavigationhandler.cxx index 077660cc9228..f7d441684205 100644 --- a/extensions/source/propctrlr/buttonnavigationhandler.cxx +++ b/extensions/source/propctrlr/buttonnavigationhandler.cxx @@ -175,7 +175,7 @@ namespace pcr Sequence< Property > SAL_CALL ButtonNavigationHandler::doDescribeSupportedProperties() const { - ::std::vector< Property > aProperties; + std::vector< Property > aProperties; if ( isNavigationCapableButton( m_xComponent ) ) { diff --git a/extensions/source/propctrlr/cellbindinghandler.cxx b/extensions/source/propctrlr/cellbindinghandler.cxx index 3ac05914569c..930f717301c7 100644 --- a/extensions/source/propctrlr/cellbindinghandler.cxx +++ b/extensions/source/propctrlr/cellbindinghandler.cxx @@ -107,7 +107,7 @@ namespace pcr if ( !_rxInspectorUI.is() ) throw NullPointerException(); - ::std::vector< PropertyId > aDependentProperties; + std::vector< PropertyId > aDependentProperties; switch ( nActuatingPropId ) { @@ -189,7 +189,7 @@ namespace pcr OSL_FAIL( "CellBindingPropertyHandler::actuatingPropertyChanged: did not register for this property!" ); } - for ( ::std::vector< PropertyId >::const_iterator loopAffected = aDependentProperties.begin(); + for ( std::vector< PropertyId >::const_iterator loopAffected = aDependentProperties.begin(); loopAffected != aDependentProperties.end(); ++loopAffected ) @@ -444,7 +444,7 @@ namespace pcr Sequence< Property > SAL_CALL CellBindingPropertyHandler::doDescribeSupportedProperties() const { - ::std::vector< Property > aProperties; + std::vector< Property > aProperties; bool bAllowCellLinking = m_pHelper.get() && m_pHelper->isCellBindingAllowed(); bool bAllowCellIntLinking = m_pHelper.get() && m_pHelper->isCellIntegerBindingAllowed(); diff --git a/extensions/source/propctrlr/cellbindinghandler.hxx b/extensions/source/propctrlr/cellbindinghandler.hxx index 93b3b84d5c00..33c5c81f19de 100644 --- a/extensions/source/propctrlr/cellbindinghandler.hxx +++ b/extensions/source/propctrlr/cellbindinghandler.hxx @@ -40,7 +40,7 @@ namespace pcr class CellBindingPropertyHandler : public CellBindingPropertyHandler_Base { private: - ::std::unique_ptr< CellBindingHelper > m_pHelper; + std::unique_ptr< CellBindingHelper > m_pHelper; ::rtl::Reference< IPropertyEnumRepresentation > m_pCellExchangeConverter; public: diff --git a/extensions/source/propctrlr/cellbindinghelper.cxx b/extensions/source/propctrlr/cellbindinghelper.cxx index 3c4cf5297755..0a79972c71a5 100644 --- a/extensions/source/propctrlr/cellbindinghelper.cxx +++ b/extensions/source/propctrlr/cellbindinghelper.cxx @@ -60,7 +60,7 @@ namespace pcr namespace { - struct StringCompare : public ::std::unary_function< OUString, bool > + struct StringCompare : public std::unary_function< OUString, bool > { private: OUString m_sReference; @@ -382,7 +382,7 @@ namespace pcr if ( xDocumentFactory.is() ) aAvailableServices = xDocumentFactory->getAvailableServiceNames( ); - const OUString* pFound = ::std::find_if( + const OUString* pFound = std::find_if( aAvailableServices.getConstArray(), aAvailableServices.getConstArray() + aAvailableServices.getLength(), StringCompare( _rService ) diff --git a/extensions/source/propctrlr/composeduiupdate.cxx b/extensions/source/propctrlr/composeduiupdate.cxx index 372193d752d7..c438f3207400 100644 --- a/extensions/source/propctrlr/composeduiupdate.cxx +++ b/extensions/source/propctrlr/composeduiupdate.cxx @@ -47,7 +47,7 @@ namespace pcr namespace { - struct HandlerLess : public ::std::binary_function < Reference< XPropertyHandler > + struct HandlerLess : public std::binary_function < Reference< XPropertyHandler > , Reference< XPropertyHandler > , bool > @@ -59,8 +59,8 @@ namespace pcr }; - typedef ::std::set< OUString > StringBag; - typedef ::std::map< sal_Int16, StringBag > MapIntToStringBag; + typedef std::set< OUString > StringBag; + typedef std::map< sal_Int16, StringBag > MapIntToStringBag; } @@ -352,7 +352,7 @@ namespace pcr // HandlerMap - typedef ::std::map < Reference< XPropertyHandler > + typedef std::map < Reference< XPropertyHandler > , ::rtl::Reference< CachedInspectorUI > , HandlerLess > ImplMapHandlerToUI; @@ -393,7 +393,7 @@ namespace pcr { // an STL-compatible structure which collects strings from a CachedInspectorUI instances - struct StringBagCollector : public ::std::unary_function< ImplMapHandlerToUI::value_type, void > + struct StringBagCollector : public std::unary_function< ImplMapHandlerToUI::value_type, void > { private: StringBag& m_rBag; @@ -410,13 +410,13 @@ namespace pcr static void collectAll( StringBag& _rAll, const ImplMapHandlerToUI& _rMap, CachedInspectorUI::FGetStringBag _pGetter ) { - ::std::for_each( _rMap.begin(), _rMap.end(), StringBagCollector( _rAll, _pGetter ) ); + std::for_each( _rMap.begin(), _rMap.end(), StringBagCollector( _rAll, _pGetter ) ); } }; // an STL-compatible structure which cleans a certain string bag in a CachedInspectorUI instances - struct StringBagClearer : public ::std::unary_function< ImplMapHandlerToUI::value_type, void > + struct StringBagClearer : public std::unary_function< ImplMapHandlerToUI::value_type, void > { private: CachedInspectorUI::FGetStringBag m_pGetter; @@ -431,7 +431,7 @@ namespace pcr static void clearAll( const ImplMapHandlerToUI& _rMap, CachedInspectorUI::FGetStringBag _pGetter ) { - ::std::for_each( _rMap.begin(), _rMap.end(), StringBagClearer( _pGetter ) ); + std::for_each( _rMap.begin(), _rMap.end(), StringBagClearer( _pGetter ) ); } }; @@ -441,7 +441,7 @@ namespace pcr // an STL-compatible struct which calls a certain member method (taking a string) at a // given ->XObjectInspectorUI instance - struct PropertyUIOperator : public ::std::unary_function< OUString, void > + struct PropertyUIOperator : public std::unary_function< OUString, void > { private: Reference< XObjectInspectorUI > m_xUpdater; @@ -461,7 +461,7 @@ namespace pcr static void forEach( const StringBag& _rProperties, const Reference< XObjectInspectorUI >& _rxDelegatorUI, FPropertyUISetter _pSetter ) { - ::std::for_each( _rProperties.begin(), _rProperties.end(), PropertyUIOperator( _rxDelegatorUI, _pSetter ) ); + std::for_each( _rProperties.begin(), _rProperties.end(), PropertyUIOperator( _rxDelegatorUI, _pSetter ) ); } }; @@ -541,7 +541,7 @@ namespace pcr // an STL-compatible structure which applies a ->IStringKeyBooleanUIUpdate::updateUIForKey // operation with a fixed boolean value, for a given string value - struct BooleanUIAspectUpdate : public ::std::unary_function< OUString, void > + struct BooleanUIAspectUpdate : public std::unary_function< OUString, void > { private: const IStringKeyBooleanUIUpdate& m_rUpdater; @@ -561,7 +561,7 @@ namespace pcr static void forEach( const StringBag& _rProperties, const IStringKeyBooleanUIUpdate& _rUpdater, bool _bFlag ) { - ::std::for_each( _rProperties.begin(), _rProperties.end(), BooleanUIAspectUpdate( _rUpdater, _bFlag ) ); + std::for_each( _rProperties.begin(), _rProperties.end(), BooleanUIAspectUpdate( _rUpdater, _bFlag ) ); } }; @@ -569,7 +569,7 @@ namespace pcr // BooleanUIAspectUpdate // an STL-compatible structure subtracting a given string from a fixed ->StringBag - struct StringBagComplement : public ::std::unary_function< OUString, void > + struct StringBagComplement : public std::unary_function< OUString, void > { private: StringBag& m_rMinuend; @@ -584,7 +584,7 @@ namespace pcr static void subtract( StringBag& _rMinuend, const StringBag& _rSubtrahend ) { - ::std::for_each( _rSubtrahend.begin(), _rSubtrahend.end(), StringBagComplement( _rMinuend ) ); + std::for_each( _rSubtrahend.begin(), _rSubtrahend.end(), StringBagComplement( _rMinuend ) ); } }; diff --git a/extensions/source/propctrlr/composeduiupdate.hxx b/extensions/source/propctrlr/composeduiupdate.hxx index f6170861424b..d4fdcedbdb71 100644 --- a/extensions/source/propctrlr/composeduiupdate.hxx +++ b/extensions/source/propctrlr/composeduiupdate.hxx @@ -62,7 +62,7 @@ namespace pcr class ComposedPropertyUIUpdate { private: - ::std::unique_ptr< MapHandlerToUI > m_pCollectedUIs; + std::unique_ptr< MapHandlerToUI > m_pCollectedUIs; css::uno::Reference< css::inspection::XObjectInspectorUI > m_xDelegatorUI; oslInterlockedCount m_nSuspendCounter; diff --git a/extensions/source/propctrlr/defaultforminspection.hxx b/extensions/source/propctrlr/defaultforminspection.hxx index 23dee8a92409..e1ded25292fe 100644 --- a/extensions/source/propctrlr/defaultforminspection.hxx +++ b/extensions/source/propctrlr/defaultforminspection.hxx @@ -37,7 +37,7 @@ namespace pcr bool m_bConstructed; /// access to property meta data - ::std::unique_ptr< OPropertyInfoService > m_pInfoService; + std::unique_ptr< OPropertyInfoService > m_pInfoService; protected: virtual ~DefaultFormComponentInspectorModel() override; diff --git a/extensions/source/propctrlr/editpropertyhandler.cxx b/extensions/source/propctrlr/editpropertyhandler.cxx index 456de960a112..073016ebda91 100644 --- a/extensions/source/propctrlr/editpropertyhandler.cxx +++ b/extensions/source/propctrlr/editpropertyhandler.cxx @@ -212,7 +212,7 @@ namespace pcr Sequence< Property > SAL_CALL EditPropertyHandler::doDescribeSupportedProperties() const { - ::std::vector< Property > aProperties; + std::vector< Property > aProperties; if ( implHaveBothScrollBarProperties() ) addInt32PropertyDescription( aProperties, PROPERTY_SHOW_SCROLLBARS ); @@ -229,7 +229,7 @@ namespace pcr Sequence< OUString > SAL_CALL EditPropertyHandler::getSupersededProperties( ) { ::osl::MutexGuard aGuard( m_aMutex ); - ::std::vector< OUString > aSuperseded; + std::vector< OUString > aSuperseded; if ( implHaveBothScrollBarProperties() ) { aSuperseded.push_back( static_cast<const OUString&>(PROPERTY_HSCROLL) ); @@ -249,7 +249,7 @@ namespace pcr Sequence< OUString > SAL_CALL EditPropertyHandler::getActuatingProperties( ) { ::osl::MutexGuard aGuard( m_aMutex ); - ::std::vector< OUString > aInterestingActuatingProps; + std::vector< OUString > aInterestingActuatingProps; if ( implHaveTextTypeProperty() ) aInterestingActuatingProps.push_back( static_cast<const OUString&>(PROPERTY_TEXTTYPE) ); aInterestingActuatingProps.push_back( static_cast<const OUString&>(PROPERTY_MULTILINE) ); diff --git a/extensions/source/propctrlr/eformshelper.cxx b/extensions/source/propctrlr/eformshelper.cxx index 075b3f1ebcfc..160112fb7dd1 100644 --- a/extensions/source/propctrlr/eformshelper.cxx +++ b/extensions/source/propctrlr/eformshelper.cxx @@ -242,7 +242,7 @@ namespace pcr { if ( !_bDoListen ) { - ::std::unique_ptr< ::comphelper::OInterfaceIteratorHelper2 > pListenerIterator = m_aPropertyListeners.createIterator(); + std::unique_ptr< ::comphelper::OInterfaceIteratorHelper2 > pListenerIterator = m_aPropertyListeners.createIterator(); while ( pListenerIterator->hasMoreElements() ) { PropertyEventTranslation* pTranslator = dynamic_cast< PropertyEventTranslation* >( pListenerIterator->next() ); @@ -276,7 +276,7 @@ namespace pcr } else { - ::std::unique_ptr< ::comphelper::OInterfaceIteratorHelper2 > pListenerIterator = m_aPropertyListeners.createIterator(); + std::unique_ptr< ::comphelper::OInterfaceIteratorHelper2 > pListenerIterator = m_aPropertyListeners.createIterator(); while ( pListenerIterator->hasMoreElements() ) { Reference< XPropertyChangeListener > xListener( pListenerIterator->next(), UNO_QUERY ); @@ -293,7 +293,7 @@ namespace pcr } - void EFormsHelper::getFormModelNames( ::std::vector< OUString >& /* [out] */ _rModelNames ) const + void EFormsHelper::getFormModelNames( std::vector< OUString >& /* [out] */ _rModelNames ) const { if ( m_xDocument.is() ) { @@ -307,7 +307,7 @@ namespace pcr { Sequence< OUString > aModelNames = xForms->getElementNames(); _rModelNames.resize( aModelNames.getLength() ); - ::std::copy( aModelNames.begin(), aModelNames.end(), _rModelNames.begin() ); + std::copy( aModelNames.begin(), aModelNames.end(), _rModelNames.begin() ); } } catch( const Exception& ) @@ -318,7 +318,7 @@ namespace pcr } - void EFormsHelper::getBindingNames( const OUString& _rModelName, ::std::vector< OUString >& /* [out] */ _rBindingNames ) const + void EFormsHelper::getBindingNames( const OUString& _rModelName, std::vector< OUString >& /* [out] */ _rBindingNames ) const { _rBindingNames.resize( 0 ); try @@ -332,7 +332,7 @@ namespace pcr { Sequence< OUString > aNames = xBindings->getElementNames(); _rBindingNames.resize( aNames.getLength() ); - ::std::copy( aNames.begin(), aNames.end(), _rBindingNames.begin() ); + std::copy( aNames.begin(), aNames.end(), _rBindingNames.begin() ); } } } @@ -482,7 +482,7 @@ namespace pcr m_xBindableControl->setValueBinding( xBinding ); impl_toggleBindingPropertyListening_throw( true, nullptr ); - ::std::set< OUString > aSet; + std::set< OUString > aSet; firePropertyChanges( xOldBinding, _rxBinding, aSet ); } catch( const Exception& ) @@ -510,7 +510,7 @@ namespace pcr // determine the model which the binding should belong to if ( sTargetModel.isEmpty() ) { - ::std::vector< OUString > aModelNames; + std::vector< OUString > aModelNames; getFormModelNames( aModelNames ); if ( !aModelNames.empty() ) sTargetModel = *aModelNames.begin(); @@ -570,7 +570,7 @@ namespace pcr namespace { - struct PropertyBagInserter : public ::std::unary_function< Property, void > + struct PropertyBagInserter : public std::unary_function< Property, void > { private: PropertyBag& m_rProperties; @@ -593,7 +593,7 @@ namespace pcr if ( xInfo.is() ) { Sequence< Property > aProperties = xInfo->getProperties(); - ::std::for_each( aProperties.getConstArray(), aProperties.getConstArray() + aProperties.getLength(), + std::for_each( aProperties.getConstArray(), aProperties.getConstArray() + aProperties.getLength(), PropertyBagInserter( _rBag ) ); } @@ -638,7 +638,7 @@ namespace pcr } - void EFormsHelper::getAllElementUINames( const ModelElementType _eType, ::std::vector< OUString >& /* [out] */ _rElementNames, bool _bPrepentEmptyEntry ) + void EFormsHelper::getAllElementUINames( const ModelElementType _eType, std::vector< OUString >& /* [out] */ _rElementNames, bool _bPrepentEmptyEntry ) { MapStringToPropertySet& rMapUINameToElement( ( _eType == Submission ) ? m_aSubmissionUINames : m_aBindingUINames ); rMapUINameToElement.clear(); @@ -650,12 +650,12 @@ namespace pcr try { // obtain the model names - ::std::vector< OUString > aModels; + std::vector< OUString > aModels; getFormModelNames( aModels ); _rElementNames.reserve( aModels.size() * 2 ); // heuristics // for every model, obtain the element - for ( ::std::vector< OUString >::const_iterator pModelName = aModels.begin(); + for ( std::vector< OUString >::const_iterator pModelName = aModels.begin(); pModelName != aModels.end(); ++pModelName ) @@ -700,7 +700,7 @@ namespace pcr } _rElementNames.resize( rMapUINameToElement.size() ); - ::std::transform( rMapUINameToElement.begin(), rMapUINameToElement.end(), _rElementNames.begin(), + std::transform( rMapUINameToElement.begin(), rMapUINameToElement.end(), _rElementNames.begin(), ::o3tl::select1st< MapStringToPropertySet::value_type >() ); } @@ -731,7 +731,7 @@ namespace pcr } - void EFormsHelper::firePropertyChanges( const Reference< XPropertySet >& _rxOldProps, const Reference< XPropertySet >& _rxNewProps, ::std::set< OUString >& _rFilter ) const + void EFormsHelper::firePropertyChanges( const Reference< XPropertySet >& _rxOldProps, const Reference< XPropertySet >& _rxNewProps, std::set< OUString >& _rFilter ) const { if ( m_aPropertyListeners.empty() ) return; diff --git a/extensions/source/propctrlr/eformshelper.hxx b/extensions/source/propctrlr/eformshelper.hxx index 96ebc3934269..5cf57aa3283c 100644 --- a/extensions/source/propctrlr/eformshelper.hxx +++ b/extensions/source/propctrlr/eformshelper.hxx @@ -41,7 +41,7 @@ namespace pcr { - typedef ::std::map< OUString, css::uno::Reference< css::beans::XPropertySet >, ::std::less< OUString > > + typedef std::map< OUString, css::uno::Reference< css::beans::XPropertySet >, std::less< OUString > > MapStringToPropertySet; @@ -117,12 +117,12 @@ namespace pcr /** retrieves the names of all XForms models in the document the control lives in */ - void getFormModelNames( ::std::vector< OUString >& /* [out] */ _rModelNames ) const; + void getFormModelNames( std::vector< OUString >& /* [out] */ _rModelNames ) const; /** retrieves the names of all bindings for a given model @see getFormModelNames */ - void getBindingNames( const OUString& _rModelName, ::std::vector< OUString >& /* [out] */ _rBindingNames ) const; + void getBindingNames( const OUString& _rModelName, std::vector< OUString >& /* [out] */ _rBindingNames ) const; /// retrieves the XForms model (within the control model's document) with the given name css::uno::Reference< css::xforms::XModel > @@ -215,7 +215,7 @@ namespace pcr */ void getAllElementUINames( const ModelElementType _eType, - ::std::vector< OUString >& /* [out] */ _rElementNames, + std::vector< OUString >& /* [out] */ _rElementNames, bool _bPrepentEmptyEntry ); @@ -223,7 +223,7 @@ namespace pcr void firePropertyChanges( const css::uno::Reference< css::beans::XPropertySet >& _rxOldProps, const css::uno::Reference< css::beans::XPropertySet >& _rxNewProps, - ::std::set< OUString >& _rFilter + std::set< OUString >& _rFilter ) const; /** fires a change in a single property, if the property value changed, and if we have a listener diff --git a/extensions/source/propctrlr/eformspropertyhandler.cxx b/extensions/source/propctrlr/eformspropertyhandler.cxx index b0d53fd7809f..a02a615a5bda 100644 --- a/extensions/source/propctrlr/eformspropertyhandler.cxx +++ b/extensions/source/propctrlr/eformspropertyhandler.cxx @@ -285,7 +285,7 @@ namespace pcr Sequence< Property > SAL_CALL EFormsPropertyHandler::doDescribeSupportedProperties() const { - ::std::vector< Property > aProperties; + std::vector< Property > aProperties; if ( m_pHelper.get() ) { @@ -386,7 +386,7 @@ namespace pcr if ( !m_pHelper.get() ) return Sequence< OUString >(); - ::std::vector< OUString > aInterestedInActuations( 2 ); + std::vector< OUString > aInterestedInActuations( 2 ); aInterestedInActuations[ 0 ] = PROPERTY_XML_DATA_MODEL; aInterestedInActuations[ 1 ] = PROPERTY_BINDING_NAME; return Sequence< OUString >( &(*aInterestedInActuations.begin()), aInterestedInActuations.size() ); @@ -415,7 +415,7 @@ namespace pcr LineDescriptor aDescriptor; sal_Int16 nControlType = PropertyControlType::TextField; - ::std::vector< OUString > aListEntries; + std::vector< OUString > aListEntries; PropertyId nPropId( impl_getPropertyId_throwUnknownProperty( _rPropertyName ) ); switch ( nPropId ) { diff --git a/extensions/source/propctrlr/eformspropertyhandler.hxx b/extensions/source/propctrlr/eformspropertyhandler.hxx index 7098811940bf..0d7a9488e34a 100644 --- a/extensions/source/propctrlr/eformspropertyhandler.hxx +++ b/extensions/source/propctrlr/eformspropertyhandler.hxx @@ -38,7 +38,7 @@ namespace pcr class EFormsPropertyHandler : public EFormsPropertyHandler_Base { private: - ::std::unique_ptr< EFormsHelper > m_pHelper; + std::unique_ptr< EFormsHelper > m_pHelper; /** current value of the Model property, if there is no binding, yet */ OUString m_sBindingLessModelName; diff --git a/extensions/source/propctrlr/enumrepresentation.hxx b/extensions/source/propctrlr/enumrepresentation.hxx index 550d0dbcad0b..aa8c1f5bd8ea 100644 --- a/extensions/source/propctrlr/enumrepresentation.hxx +++ b/extensions/source/propctrlr/enumrepresentation.hxx @@ -39,7 +39,7 @@ namespace pcr public: /** retrieves all descriptions of all possible values of the enumeration property */ - virtual ::std::vector< OUString > SAL_CALL getDescriptions( + virtual std::vector< OUString > SAL_CALL getDescriptions( ) const = 0; /** converts a given description into a property value diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx index afe2a4063dcf..025199837fbf 100644 --- a/extensions/source/propctrlr/eventhandler.cxx +++ b/extensions/source/propctrlr/eventhandler.cxx @@ -287,7 +287,7 @@ namespace pcr return _rFormComponentEventDescriptor.ListenerType; } - typedef ::std::set< Type, TypeLessByName > TypeBag; + typedef std::set< Type, TypeLessByName > TypeBag; void lcl_addListenerTypesFor_throw( const Reference< XInterface >& _rxComponent, const Reference< XIntrospection >& _rxIntrospection, TypeBag& _out_rTypes ) @@ -301,8 +301,8 @@ namespace pcr Sequence< Type > aListeners( xIntrospectionAccess->getSupportedListeners() ); - ::std::copy( aListeners.begin(), aListeners.end(), - ::std::insert_iterator< TypeBag >( _out_rTypes, _out_rTypes.begin() ) ); + std::copy( aListeners.begin(), aListeners.end(), + std::insert_iterator< TypeBag >( _out_rTypes, _out_rTypes.begin() ) ); } } @@ -313,7 +313,7 @@ namespace pcr { private: typedef std::unordered_map< OUString, ScriptEventDescriptor, OUStringHash > EventMap; - typedef ::std::map< EventId, EventMap::iterator > EventMapIndexAccess; + typedef std::map< EventId, EventMap::iterator > EventMapIndexAccess; EventMap m_aEventNameAccess; EventMapIndexAccess m_aEventIndexAccess; @@ -356,7 +356,7 @@ namespace pcr void EventHolder::addEvent( EventId _nId, const OUString& _rEventName, const ScriptEventDescriptor& _rScriptEvent ) { - ::std::pair< EventMap::iterator, bool > insertionResult = + std::pair< EventMap::iterator, bool > insertionResult = m_aEventNameAccess.insert( EventMap::value_type( _rEventName, _rScriptEvent ) ); OSL_ENSURE( insertionResult.second, "EventHolder::addEvent: there already was a MacroURL for this event!" ); m_aEventIndexAccess[ _nId ] = insertionResult.first; @@ -743,7 +743,7 @@ namespace pcr } // sort them by ID - this is the relative ordering in the UI - ::std::map< EventId, Property > aOrderedProperties; + std::map< EventId, Property > aOrderedProperties; for ( EventMap::const_iterator loop = m_aEvents.begin(); loop != m_aEvents.end(); ++loop @@ -823,7 +823,7 @@ namespace pcr // the initial selection in the dialog Sequence< OUString > aNames( pEventHolder->getElementNames() ); - const OUString* pChosenEvent = ::std::find( aNames.getConstArray(), aNames.getConstArray() + aNames.getLength(), rForEvent.sListenerMethodName ); + const OUString* pChosenEvent = std::find( aNames.getConstArray(), aNames.getConstArray() + aNames.getLength(), rForEvent.sListenerMethodName ); sal_uInt16 nInitialSelection = (sal_uInt16)( pChosenEvent - aNames.getConstArray() ); // the dialog diff --git a/extensions/source/propctrlr/formbrowsertools.hxx b/extensions/source/propctrlr/formbrowsertools.hxx index 15a2ac6ad9e8..eba6ee1155fb 100644 --- a/extensions/source/propctrlr/formbrowsertools.hxx +++ b/extensions/source/propctrlr/formbrowsertools.hxx @@ -36,7 +36,7 @@ namespace pcr sal_Int16 classifyComponent( const css::uno::Reference< css::uno::XInterface >& _rxComponent ); - struct FindPropertyByHandle : public ::std::unary_function< css::beans::Property, bool > + struct FindPropertyByHandle : public std::unary_function< css::beans::Property, bool > { private: sal_Int32 m_nId; @@ -50,7 +50,7 @@ namespace pcr }; - struct FindPropertyByName : public ::std::unary_function< css::beans::Property, bool > + struct FindPropertyByName : public std::unary_function< css::beans::Property, bool > { private: OUString m_sName; @@ -65,7 +65,7 @@ namespace pcr struct PropertyLessByName - :public ::std::binary_function < css::beans::Property, + :public std::binary_function < css::beans::Property, css::beans::Property, bool > @@ -78,7 +78,7 @@ namespace pcr struct TypeLessByName - :public ::std::binary_function < css::uno::Type, + :public std::binary_function < css::uno::Type, css::uno::Type, bool > @@ -90,7 +90,7 @@ namespace pcr }; - typedef ::std::set< css::beans::Property, PropertyLessByName > PropertyBag; + typedef std::set< css::beans::Property, PropertyLessByName > PropertyBag; } // namespace pcr diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 0bd51e8d3e1a..3064ce695848 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -830,7 +830,7 @@ namespace pcr if ( !m_xComponentPropertyInfo.is() ) return Sequence< Property >(); - ::std::vector< Property > aProperties; + std::vector< Property > aProperties; Sequence< Property > aAllProperties( m_xComponentPropertyInfo->getProperties() ); aProperties.reserve( aAllProperties.getLength() ); @@ -911,7 +911,7 @@ namespace pcr Sequence< OUString > SAL_CALL FormComponentPropertyHandler::getActuatingProperties( ) { ::osl::MutexGuard aGuard( m_aMutex ); - ::std::vector< OUString > aInterestingProperties; + std::vector< OUString > aInterestingProperties; aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_DATASOURCE) ); aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_COMMAND) ); aInterestingProperties.push_back( static_cast<const OUString&>(PROPERTY_COMMANDTYPE) ); @@ -1241,9 +1241,9 @@ namespace pcr bool bIsEnumProperty = ( nPropertyUIFlags & PROP_FLAG_ENUM ) != 0; if ( bIsEnumProperty || ( PROPERTY_ID_TARGET_FRAME == nPropId ) ) { - ::std::vector< OUString > aEnumValues = m_pInfoService->getPropertyEnumRepresentations( nPropId ); - ::std::vector< OUString >::const_iterator pStart = aEnumValues.begin(); - ::std::vector< OUString >::const_iterator pEnd = aEnumValues.end(); + std::vector< OUString > aEnumValues = m_pInfoService->getPropertyEnumRepresentations( nPropId ); + std::vector< OUString >::const_iterator pStart = aEnumValues.begin(); + std::vector< OUString >::const_iterator pEnd = aEnumValues.end(); // for a checkbox: if "ambiguous" is not allowed, remove this from the sequence if ( ( PROPERTY_ID_DEFAULT_STATE == nPropId ) @@ -1268,8 +1268,8 @@ namespace pcr ++pStart; // copy the sequence - ::std::vector< OUString > aListEntries( pEnd - pStart ); - ::std::copy( pStart, pEnd, aListEntries.begin() ); + std::vector< OUString > aListEntries( pEnd - pStart ); + std::copy( pStart, pEnd, aListEntries.begin() ); // create the control if ( PROPERTY_ID_TARGET_FRAME == nPropId ) @@ -1290,7 +1290,7 @@ namespace pcr aDescriptor.Control = pControl; pControl->setMinValue( Optional< double >( true, 0 ) ); - pControl->setMaxValue( Optional< double >( true, ::std::numeric_limits< double >::max() ) ); + pControl->setMaxValue( Optional< double >( true, std::numeric_limits< double >::max() ) ); } break; @@ -1333,12 +1333,12 @@ namespace pcr { aDescriptor.PrimaryButtonId = UID_PROP_DLG_ATTR_DATASOURCE; - ::std::vector< OUString > aListEntries; + std::vector< OUString > aListEntries; Reference< XDatabaseContext > xDatabaseContext = sdb::DatabaseContext::create( m_xContext ); Sequence< OUString > aDatasources = xDatabaseContext->getElementNames(); aListEntries.resize( aDatasources.getLength() ); - ::std::copy( aDatasources.begin(), aDatasources.end(), aListEntries.begin() ); + std::copy( aDatasources.begin(), aDatasources.end(), aListEntries.begin() ); aDescriptor.Control = PropertyHandlerHelper::createComboBoxControl( _rxControlFactory, aListEntries, false, true ); } @@ -1346,7 +1346,7 @@ namespace pcr case PROPERTY_ID_CONTROLSOURCE: { - ::std::vector< OUString > aFieldNames; + std::vector< OUString > aFieldNames; impl_initFieldList_nothrow( aFieldNames ); aDescriptor.Control = PropertyHandlerHelper::createComboBoxControl( _rxControlFactory, aFieldNames, false, false ); @@ -1498,7 +1498,7 @@ namespace pcr ::osl::MutexGuard aGuard( m_aMutex ); PropertyId nActuatingPropId( impl_getPropertyId_nothrow( _rActuatingPropertyName ) ); - ::std::vector< PropertyId > aDependentProperties; + std::vector< PropertyId > aDependentProperties; switch ( nActuatingPropId ) { @@ -1768,7 +1768,7 @@ namespace pcr } // switch ( nActuatingPropId ) - for ( ::std::vector< PropertyId >::const_iterator loopAffected = aDependentProperties.begin(); + for ( std::vector< PropertyId >::const_iterator loopAffected = aDependentProperties.begin(); loopAffected != aDependentProperties.end(); ++loopAffected ) @@ -2327,7 +2327,7 @@ namespace pcr } - void FormComponentPropertyHandler::impl_initFieldList_nothrow( ::std::vector< OUString >& _rFieldNames ) const + void FormComponentPropertyHandler::impl_initFieldList_nothrow( std::vector< OUString >& _rFieldNames ) const { clearContainer( _rFieldNames ); try @@ -2451,7 +2451,7 @@ namespace pcr case CommandType::TABLE: case CommandType::QUERY: { - ::std::vector< OUString > aNames; + std::vector< OUString > aNames; if ( impl_ensureRowsetConnection_nothrow() ) { if ( nCommandType == CommandType::TABLE ) @@ -2476,7 +2476,7 @@ namespace pcr } - void FormComponentPropertyHandler::impl_fillTableNames_throw( ::std::vector< OUString >& _out_rNames ) const + void FormComponentPropertyHandler::impl_fillTableNames_throw( std::vector< OUString >& _out_rNames ) const { OSL_PRECOND( m_xRowSetConnection.is(), "FormComponentPropertyHandler::impl_fillTableNames_throw: need a connection!" ); _out_rNames.resize( 0 ); @@ -2498,7 +2498,7 @@ namespace pcr } - void FormComponentPropertyHandler::impl_fillQueryNames_throw( ::std::vector< OUString >& _out_rNames ) const + void FormComponentPropertyHandler::impl_fillQueryNames_throw( std::vector< OUString >& _out_rNames ) const { OSL_PRECOND( m_xRowSetConnection.is(), "FormComponentPropertyHandler::impl_fillQueryNames_throw: need a connection!" ); _out_rNames.resize( 0 ); @@ -2512,7 +2512,7 @@ namespace pcr } } - void FormComponentPropertyHandler::impl_fillQueryNames_throw( const Reference< XNameAccess >& _xQueryNames,::std::vector< OUString >& _out_rNames,const OUString& _sName ) const + void FormComponentPropertyHandler::impl_fillQueryNames_throw( const Reference< XNameAccess >& _xQueryNames,std::vector< OUString >& _out_rNames,const OUString& _sName ) const { DBG_ASSERT( _xQueryNames.is(), "FormComponentPropertyHandler::impl_fillQueryNames_throw: no way to obtain the queries of the connection!" ); if ( !_xQueryNames.is() ) @@ -2567,7 +2567,7 @@ namespace pcr case ListSourceType_TABLE: case ListSourceType_QUERY: { - ::std::vector< OUString > aListEntries; + std::vector< OUString > aListEntries; if ( impl_ensureRowsetConnection_nothrow() ) { if ( nListSourceType == ListSourceType_QUERY ) diff --git a/extensions/source/propctrlr/formcomponenthandler.hxx b/extensions/source/propctrlr/formcomponenthandler.hxx index d0afdf3c8c9a..6d16fa684811 100644 --- a/extensions/source/propctrlr/formcomponenthandler.hxx +++ b/extensions/source/propctrlr/formcomponenthandler.hxx @@ -81,7 +81,7 @@ namespace pcr /// the string indicating a "default" (VOID) value in list-like controls OUString m_sDefaultValueString; /// all properties to whose control's we added ->m_sDefaultValueString - ::std::set< OUString > m_aPropertiesWithDefListEntry; + std::set< OUString > m_aPropertiesWithDefListEntry; /// type of our component ComponentClassification m_eComponentClass; /// is our component a (database) sub form? @@ -159,7 +159,7 @@ namespace pcr /** initializes the list of field names, if we're handling a control which supports the DataField property */ - void impl_initFieldList_nothrow( ::std::vector< OUString >& rFieldNames ) const; + void impl_initFieldList_nothrow( std::vector< OUString >& rFieldNames ) const; /** obtaines the RowSet to which our component belongs @@ -207,14 +207,14 @@ namespace pcr @precond m_xRowSetConnection is not <NULL/> */ - void impl_fillTableNames_throw( ::std::vector< OUString >& _out_rNames ) const; + void impl_fillTableNames_throw( std::vector< OUString >& _out_rNames ) const; /** describes the UI for selecting a query name @precond m_xRowSetConnection is not <NULL/> */ - void impl_fillQueryNames_throw( ::std::vector< OUString >& _out_rNames ) const; + void impl_fillQueryNames_throw( std::vector< OUString >& _out_rNames ) const; /** describes the UI for selecting a query name @@ -222,7 +222,7 @@ namespace pcr m_xRowSetConnection is not <NULL/> */ void impl_fillQueryNames_throw( const css::uno::Reference< css::container::XNameAccess >& _xQueryNames - ,::std::vector< OUString >& _out_rNames + ,std::vector< OUString >& _out_rNames ,const OUString& _sName = OUString() ) const; /** describes the UI for selecting a ListSource (for list-like form controls) @@ -441,7 +441,7 @@ namespace pcr class WaitCursor { private: - ::std::unique_ptr< WaitObject > m_aWaitObject; + std::unique_ptr< WaitObject > m_aWaitObject; public: explicit WaitCursor( vcl::Window* _pWindow ) diff --git a/extensions/source/propctrlr/formgeometryhandler.cxx b/extensions/source/propctrlr/formgeometryhandler.cxx index e7b66273d48a..31f7c0ec5860 100644 --- a/extensions/source/propctrlr/formgeometryhandler.cxx +++ b/extensions/source/propctrlr/formgeometryhandler.cxx @@ -542,7 +542,7 @@ namespace pcr if ( !m_xAssociatedShape.is() ) return Sequence< Property >(); - ::std::vector< Property > aProperties; + std::vector< Property > aProperties; addInt32PropertyDescription( aProperties, PROPERTY_POSITIONX ); addInt32PropertyDescription( aProperties, PROPERTY_POSITIONY ); @@ -722,7 +722,7 @@ namespace pcr { ::comphelper::ComponentMethodGuard aGuard( *this ); - ::std::vector< EventTranslation > aEventTranslations; + std::vector< EventTranslation > aEventTranslations; aEventTranslations.reserve(2); if ( _event.PropertyName == "Position" ) @@ -750,7 +750,7 @@ namespace pcr aTranslatedEvent.Source = m_rParent; aGuard.clear(); - for ( ::std::vector< EventTranslation >::const_iterator t = aEventTranslations.begin(); + for ( std::vector< EventTranslation >::const_iterator t = aEventTranslations.begin(); t != aEventTranslations.end(); ++t ) diff --git a/extensions/source/propctrlr/formlinkdialog.cxx b/extensions/source/propctrlr/formlinkdialog.cxx index b665f7a090c0..381934abb9c5 100644 --- a/extensions/source/propctrlr/formlinkdialog.cxx +++ b/extensions/source/propctrlr/formlinkdialog.cxx @@ -221,8 +221,8 @@ namespace pcr void FormLinkDialog::commitLinkPairs() { // collect the field lists from the rows - ::std::vector< OUString > aDetailFields; aDetailFields.reserve( 4 ); - ::std::vector< OUString > aMasterFields; aMasterFields.reserve( 4 ); + std::vector< OUString > aDetailFields; aDetailFields.reserve( 4 ); + std::vector< OUString > aMasterFields; aMasterFields.reserve( 4 ); const FieldLinkRow* aRows[] = { m_aRow1.get(), m_aRow2.get(), m_aRow3.get(), m_aRow4.get() diff --git a/extensions/source/propctrlr/formmetadata.cxx b/extensions/source/propctrlr/formmetadata.cxx index 3f91a2a8b2e7..fbde6278cf7e 100644 --- a/extensions/source/propctrlr/formmetadata.cxx +++ b/extensions/source/propctrlr/formmetadata.cxx @@ -66,7 +66,7 @@ namespace pcr // Compare PropertyInfo - struct PropertyInfoLessByName : public ::std::binary_function< OPropertyInfoImpl, OPropertyInfoImpl, bool > + struct PropertyInfoLessByName : public std::binary_function< OPropertyInfoImpl, OPropertyInfoImpl, bool > { bool operator()( const OPropertyInfoImpl& _rLHS, const OPropertyInfoImpl& _rRHS ) { @@ -346,7 +346,7 @@ namespace pcr s_nCount = SAL_N_ELEMENTS(aPropertyInfos); // sort - ::std::sort( s_pPropertyInfos, s_pPropertyInfos + s_nCount, PropertyInfoLessByName() ); + std::sort( s_pPropertyInfos, s_pPropertyInfos + s_nCount, PropertyInfoLessByName() ); #if OSL_DEBUG_LEVEL > 0 for ( const OPropertyInfoImpl* pCheck = s_pPropertyInfos; pCheck != s_pPropertyInfos + s_nCount - 1; ++pCheck ) @@ -394,7 +394,7 @@ namespace pcr } - ::std::vector< OUString > OPropertyInfoService::getPropertyEnumRepresentations(sal_Int32 _nId) const + std::vector< OUString > OPropertyInfoService::getPropertyEnumRepresentations(sal_Int32 _nId) const { OSL_ENSURE( ( ( getPropertyUIFlags( _nId ) & PROP_FLAG_ENUM ) != 0 ) || ( _nId == PROPERTY_ID_TARGET_FRAME ), "OPropertyInfoService::getPropertyEnumRepresentations: this is no enum property!" ); @@ -530,7 +530,7 @@ namespace pcr getPropertyInfo(); OPropertyInfoImpl aSearch(_rName, 0L, OUString(), 0, "", 0); - const OPropertyInfoImpl* pInfo = ::std::lower_bound( + const OPropertyInfoImpl* pInfo = std::lower_bound( s_pPropertyInfos, s_pPropertyInfos + s_nCount, aSearch, PropertyInfoLessByName() ); if ( pInfo == s_pPropertyInfos + s_nCount ) @@ -574,7 +574,7 @@ namespace pcr } - ::std::vector< OUString > SAL_CALL DefaultEnumRepresentation::getDescriptions() const + std::vector< OUString > SAL_CALL DefaultEnumRepresentation::getDescriptions() const { return m_rMetaData.getPropertyEnumRepresentations( m_nPropertyId ); } @@ -583,8 +583,8 @@ namespace pcr void SAL_CALL DefaultEnumRepresentation::getValueFromDescription( const OUString& _rDescription, Any& _out_rValue ) const { sal_uInt32 nPropertyUIFlags = m_rMetaData.getPropertyUIFlags( m_nPropertyId ); - ::std::vector< OUString > aEnumStrings = m_rMetaData.getPropertyEnumRepresentations( m_nPropertyId ); - ::std::vector< OUString >::const_iterator pos = ::std::find( aEnumStrings.begin(), aEnumStrings.end(), _rDescription ); + std::vector< OUString > aEnumStrings = m_rMetaData.getPropertyEnumRepresentations( m_nPropertyId ); + std::vector< OUString >::const_iterator pos = std::find( aEnumStrings.begin(), aEnumStrings.end(), _rDescription ); if ( pos != aEnumStrings.end() ) { sal_Int32 nPos = pos - aEnumStrings.begin(); @@ -634,7 +634,7 @@ namespace pcr // enum value starting with 1 --nIntValue; - ::std::vector< OUString > aEnumStrings = m_rMetaData.getPropertyEnumRepresentations( m_nPropertyId ); + std::vector< OUString > aEnumStrings = m_rMetaData.getPropertyEnumRepresentations( m_nPropertyId ); if ( ( nIntValue >= 0 ) && ( nIntValue < (sal_Int32)aEnumStrings.size() ) ) { sReturn = aEnumStrings[ nIntValue ]; diff --git a/extensions/source/propctrlr/formmetadata.hxx b/extensions/source/propctrlr/formmetadata.hxx index 0c9f36904249..a851732f3d7c 100644 --- a/extensions/source/propctrlr/formmetadata.hxx +++ b/extensions/source/propctrlr/formmetadata.hxx @@ -50,7 +50,7 @@ namespace pcr virtual OString getPropertyHelpId(sal_Int32 _nId) const override; virtual sal_Int16 getPropertyPos(sal_Int32 _nId) const override; virtual sal_uInt32 getPropertyUIFlags(sal_Int32 _nId) const override; - virtual ::std::vector< OUString > getPropertyEnumRepresentations(sal_Int32 _nId) const override; + virtual std::vector< OUString > getPropertyEnumRepresentations(sal_Int32 _nId) const override; bool isComposeable( const OUString& _rPropertyName ) const; @@ -89,7 +89,7 @@ namespace pcr protected: // IPropertyEnumRepresentation implementqation - virtual ::std::vector< OUString > + virtual std::vector< OUString > SAL_CALL getDescriptions() const override; virtual void SAL_CALL getValueFromDescription( const OUString& _rDescription, css::uno::Any& _out_rValue ) const override; virtual OUString SAL_CALL getDescriptionForValue( const css::uno::Any& _rEnumValue ) const override; diff --git a/extensions/source/propctrlr/genericpropertyhandler.cxx b/extensions/source/propctrlr/genericpropertyhandler.cxx index 4250f6a82af0..de446b6116e4 100644 --- a/extensions/source/propctrlr/genericpropertyhandler.cxx +++ b/extensions/source/propctrlr/genericpropertyhandler.cxx @@ -75,7 +75,7 @@ namespace pcr EnumRepresentation& operator=(const EnumRepresentation&) = delete; // IPropertyEnumRepresentation implementqation - virtual ::std::vector< OUString > + virtual std::vector< OUString > SAL_CALL getDescriptions() const override; virtual void SAL_CALL getValueFromDescription( const OUString& _rDescription, css::uno::Any& _out_rValue ) const override; virtual OUString SAL_CALL getDescriptionForValue( const css::uno::Any& _rEnumValue ) const override; @@ -104,7 +104,7 @@ namespace pcr } } - ::std::vector< OUString > EnumRepresentation::getDescriptions() const + std::vector< OUString > EnumRepresentation::getDescriptions() const { Sequence< OUString > aNames; try @@ -117,7 +117,7 @@ namespace pcr OSL_FAIL( "EnumRepresentation::getDescriptions: caught an exception!" ); } - return ::std::vector< OUString >( aNames.getConstArray(), aNames.getConstArray() + aNames.getLength() ); + return std::vector< OUString >( aNames.getConstArray(), aNames.getConstArray() + aNames.getLength() ); } void EnumRepresentation::impl_getValues( Sequence< sal_Int32 >& _out_rValues ) const @@ -136,9 +136,9 @@ namespace pcr void EnumRepresentation::getValueFromDescription( const OUString& _rDescription, Any& _out_rValue ) const { - ::std::vector< OUString > aDescriptions( getDescriptions() ); + std::vector< OUString > aDescriptions( getDescriptions() ); - sal_Int32 index = ::std::find( aDescriptions.begin(), aDescriptions.end(), + sal_Int32 index = std::find( aDescriptions.begin(), aDescriptions.end(), _rDescription ) - aDescriptions.begin(); Sequence< sal_Int32 > aValues; @@ -163,10 +163,10 @@ namespace pcr Sequence< sal_Int32 > aValues; impl_getValues( aValues ); - sal_Int32 index = ::std::find( aValues.getConstArray(), aValues.getConstArray() + aValues.getLength(), + sal_Int32 index = std::find( aValues.getConstArray(), aValues.getConstArray() + aValues.getLength(), nAsInt ) - aValues.getConstArray(); - ::std::vector< OUString > aDescriptions( getDescriptions() ); + std::vector< OUString > aDescriptions( getDescriptions() ); if ( ( index >= 0 ) && ( index < (sal_Int32)aDescriptions.size() ) ) sDescription = aDescriptions[ index ]; else diff --git a/extensions/source/propctrlr/genericpropertyhandler.hxx b/extensions/source/propctrlr/genericpropertyhandler.hxx index c64ff2da0068..1ba3b328957d 100644 --- a/extensions/source/propctrlr/genericpropertyhandler.hxx +++ b/extensions/source/propctrlr/genericpropertyhandler.hxx @@ -38,7 +38,7 @@ namespace pcr { - struct TypeLess : ::std::binary_function< css::uno::Type, css::uno::Type, bool > + struct TypeLess : std::binary_function< css::uno::Type, css::uno::Type, bool > { bool operator()( const css::uno::Type& _rLHS, const css::uno::Type& _rRHS ) const { @@ -73,7 +73,7 @@ namespace pcr PropertyMap m_aProperties; /// property change listeners ::comphelper::OInterfaceContainerHelper2 m_aPropertyListeners; - ::std::map< css::uno::Type, ::rtl::Reference< IPropertyEnumRepresentation >, TypeLess > + std::map< css::uno::Type, ::rtl::Reference< IPropertyEnumRepresentation >, TypeLess > m_aEnumConverters; /// has ->m_aProperties been initialized? diff --git a/extensions/source/propctrlr/handlerhelper.cxx b/extensions/source/propctrlr/handlerhelper.cxx index 7bdd98b4fe98..83a3c6fa9aac 100644 --- a/extensions/source/propctrlr/handlerhelper.cxx +++ b/extensions/source/propctrlr/handlerhelper.cxx @@ -114,7 +114,7 @@ namespace pcr { Reference< XPropertyControl > lcl_implCreateListLikeControl( const Reference< XPropertyControlFactory >& _rxControlFactory, - const ::std::vector< OUString >& _rInitialListEntries, + const std::vector< OUString >& _rInitialListEntries, bool _bReadOnlyControl, bool _bSorted, bool _bTrueIfListBoxFalseIfComboBox @@ -127,11 +127,11 @@ namespace pcr UNO_QUERY_THROW ); - ::std::vector< OUString > aInitialEntries( _rInitialListEntries ); + std::vector< OUString > aInitialEntries( _rInitialListEntries ); if ( _bSorted ) - ::std::sort( aInitialEntries.begin(), aInitialEntries.end() ); + std::sort( aInitialEntries.begin(), aInitialEntries.end() ); - for ( ::std::vector< OUString >::const_iterator loop = aInitialEntries.begin(); + for ( std::vector< OUString >::const_iterator loop = aInitialEntries.begin(); loop != aInitialEntries.end(); ++loop ) @@ -141,7 +141,7 @@ namespace pcr } Reference< XPropertyControl > PropertyHandlerHelper::createListBoxControl( const Reference< XPropertyControlFactory >& _rxControlFactory, - const ::std::vector< OUString >& _rInitialListEntries, bool _bReadOnlyControl, bool _bSorted ) + const std::vector< OUString >& _rInitialListEntries, bool _bReadOnlyControl, bool _bSorted ) { return lcl_implCreateListLikeControl(_rxControlFactory, _rInitialListEntries, _bReadOnlyControl, _bSorted, true); } @@ -156,7 +156,7 @@ namespace pcr } Reference< XPropertyControl > PropertyHandlerHelper::createComboBoxControl( const Reference< XPropertyControlFactory >& _rxControlFactory, - const ::std::vector< OUString >& _rInitialListEntries, bool _bReadOnlyControl, bool _bSorted ) + const std::vector< OUString >& _rInitialListEntries, bool _bReadOnlyControl, bool _bSorted ) { return lcl_implCreateListLikeControl( _rxControlFactory, _rInitialListEntries, _bReadOnlyControl, _bSorted, false ); } diff --git a/extensions/source/propctrlr/handlerhelper.hxx b/extensions/source/propctrlr/handlerhelper.hxx index 8e1f7f47f8ab..64b0e9fa0484 100644 --- a/extensions/source/propctrlr/handlerhelper.hxx +++ b/extensions/source/propctrlr/handlerhelper.hxx @@ -94,7 +94,7 @@ namespace pcr static css::uno::Reference< css::inspection::XPropertyControl > createListBoxControl( const css::uno::Reference< css::inspection::XPropertyControlFactory >& _rxControlFactory, - const ::std::vector< OUString >& _rInitialListEntries, + const std::vector< OUString >& _rInitialListEntries, bool _bReadOnlyControl, bool _bSorted ); @@ -146,7 +146,7 @@ namespace pcr static css::uno::Reference< css::inspection::XPropertyControl > createComboBoxControl( const css::uno::Reference< css::inspection::XPropertyControlFactory >& _rxControlFactory, - const ::std::vector< OUString >& _rInitialListEntries, + const std::vector< OUString >& _rInitialListEntries, bool _bReadOnlyControl, bool _bSorted ); diff --git a/extensions/source/propctrlr/inspectorhelpwindow.cxx b/extensions/source/propctrlr/inspectorhelpwindow.cxx index ddf871e5e752..5641015f5461 100644 --- a/extensions/source/propctrlr/inspectorhelpwindow.cxx +++ b/extensions/source/propctrlr/inspectorhelpwindow.cxx @@ -116,7 +116,7 @@ namespace pcr DrawTextFlags::Left | DrawTextFlags::Top | DrawTextFlags::MultiLine | DrawTextFlags::WordBreak ); long nActTextWindowHeight = impl_getHelpTextBorderHeight() + aTextRect.GetHeight(); - long nOptTextWindowHeight = ::std::max( nMinTextWindowHeight, ::std::min( nMaxTextWindowHeight, nActTextWindowHeight ) ); + long nOptTextWindowHeight = std::max( nMinTextWindowHeight, std::min( nMaxTextWindowHeight, nActTextWindowHeight ) ); // --- then add the space above the text window return nOptTextWindowHeight + impl_getSpaceAboveTextWindow(); diff --git a/extensions/source/propctrlr/inspectormodelbase.cxx b/extensions/source/propctrlr/inspectormodelbase.cxx index 31009a8e0682..1d62e50ce517 100644 --- a/extensions/source/propctrlr/inspectormodelbase.cxx +++ b/extensions/source/propctrlr/inspectormodelbase.cxx @@ -61,7 +61,7 @@ namespace pcr sal_Int32 m_nMinHelpTextLines; sal_Int32 m_nMaxHelpTextLines; bool m_bIsReadOnly; - ::std::unique_ptr< ::cppu::IPropertyArrayHelper > + std::unique_ptr< ::cppu::IPropertyArrayHelper > m_pPropertyInfo; public: diff --git a/extensions/source/propctrlr/inspectormodelbase.hxx b/extensions/source/propctrlr/inspectormodelbase.hxx index 365740653002..654f69135f83 100644 --- a/extensions/source/propctrlr/inspectormodelbase.hxx +++ b/extensions/source/propctrlr/inspectormodelbase.hxx @@ -54,7 +54,7 @@ namespace pcr ,public ImplInspectorModel_PBase { protected: - ::std::unique_ptr< InspectorModelProperties > m_pProperties; + std::unique_ptr< InspectorModelProperties > m_pProperties; protected: virtual ~ImplInspectorModel() override; diff --git a/extensions/source/propctrlr/newdatatype.cxx b/extensions/source/propctrlr/newdatatype.cxx index 0fae03df4f7d..1f109ce39a08 100644 --- a/extensions/source/propctrlr/newdatatype.cxx +++ b/extensions/source/propctrlr/newdatatype.cxx @@ -28,7 +28,7 @@ namespace pcr //= NewDataTypeDialog - NewDataTypeDialog::NewDataTypeDialog( vcl::Window* _pParent, const OUString& _rNameBase, const ::std::vector< OUString >& _rProhibitedNames ) + NewDataTypeDialog::NewDataTypeDialog( vcl::Window* _pParent, const OUString& _rNameBase, const std::vector< OUString >& _rProhibitedNames ) : ModalDialog( _pParent, "DataTypeDialog", "modules/spropctrlr/ui/datatypedialog.ui" ) , m_aProhibitedNames( _rProhibitedNames.begin(), _rProhibitedNames.end() ) diff --git a/extensions/source/propctrlr/newdatatype.hxx b/extensions/source/propctrlr/newdatatype.hxx index e45a8a4a1e1b..9185d1f02100 100644 --- a/extensions/source/propctrlr/newdatatype.hxx +++ b/extensions/source/propctrlr/newdatatype.hxx @@ -38,11 +38,11 @@ namespace pcr VclPtr<Edit> m_pName; VclPtr<OKButton> m_pOK; - ::std::set< OUString > m_aProhibitedNames; + std::set< OUString > m_aProhibitedNames; public: NewDataTypeDialog(vcl::Window* _pParent, const OUString& _rNameBase, - const ::std::vector< OUString >& _rProhibitedNames ); + const std::vector< OUString >& _rProhibitedNames ); virtual ~NewDataTypeDialog() override; virtual void dispose() override; diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx index 0d0ab634117d..100a34ffb0e1 100644 --- a/extensions/source/propctrlr/propcontroller.cxx +++ b/extensions/source/propctrlr/propcontroller.cxx @@ -418,7 +418,7 @@ namespace pcr ++handler ) { - if ( ::std::find( aAllHandlers.begin(), aAllHandlers.end(), handler->second ) != aAllHandlers.end() ) + if ( std::find( aAllHandlers.begin(), aAllHandlers.end(), handler->second ) != aAllHandlers.end() ) // already visited this particular handler (m_aPropertyHandlers usually contains // the same handler more than once) continue; @@ -890,7 +890,7 @@ namespace pcr aHandler != m_aPropertyHandlers.end(); ++aHandler ) - if ( ::std::find( aAllHandlers.begin(), aAllHandlers.end(), aHandler->second ) == aAllHandlers.end() ) + if ( std::find( aAllHandlers.begin(), aAllHandlers.end(), aHandler->second ) == aAllHandlers.end() ) aAllHandlers.push_back( aHandler->second ); for ( PropertyHandlerArray::iterator loop = aAllHandlers.begin(); @@ -968,7 +968,7 @@ namespace pcr { // obtain the properties of the object - ::std::vector< Property > aProperties; + std::vector< Property > aProperties; PropertyHandlerArray aPropertyHandlers; getPropertyHandlers( m_aInspectedObjects, aPropertyHandlers ); @@ -992,7 +992,7 @@ namespace pcr aProperties.reserve( aProperties.size() + aThisHandlersProperties.size() ); for (const auto & aThisHandlersPropertie : aThisHandlersProperties) { - ::std::vector< Property >::const_iterator previous = ::std::find_if( + std::vector< Property >::const_iterator previous = std::find_if( aProperties.begin(), aProperties.end(), FindPropertyByName( aThisHandlersPropertie.Name ) @@ -1011,7 +1011,7 @@ namespace pcr // This is 'cause we have a new handler which is responsible for this property, // which means it can give it a completely different meaning than the previous // handler for this property is prepared for. - ::std::pair< PropertyHandlerMultiRepository::iterator, PropertyHandlerMultiRepository::iterator > + std::pair< PropertyHandlerMultiRepository::iterator, PropertyHandlerMultiRepository::iterator > aDepHandlers = m_aDependencyHandlers.equal_range( aThisHandlersPropertie.Name ); m_aDependencyHandlers.erase( aDepHandlers.first, aDepHandlers.second ); } @@ -1020,7 +1020,7 @@ namespace pcr StlSyntaxSequence< OUString > aSupersededByThisHandler( (*aHandler)->getSupersededProperties() ); for (const auto & superseded : aSupersededByThisHandler) { - ::std::vector< Property >::iterator existent = ::std::find_if( + std::vector< Property >::iterator existent = std::find_if( aProperties.begin(), aProperties.end(), FindPropertyByName( superseded ) @@ -1058,7 +1058,7 @@ namespace pcr m_pUIRequestComposer.reset( new ComposedPropertyUIUpdate( getInspectorUI(), this ) ); // sort the properties by relative position, as indicated by the model - for ( ::std::vector< Property >::const_iterator sourceProps = aProperties.begin(); + for ( std::vector< Property >::const_iterator sourceProps = aProperties.begin(); sourceProps != aProperties.end(); ++sourceProps ) @@ -1186,12 +1186,12 @@ namespace pcr // create our tab pages impl_buildCategories_throw(); // (and allow for pages to be actually unused) - ::std::set< sal_uInt16 > aUsedPages; + std::set< sal_uInt16 > aUsedPages; // when building the UI below, remember which properties are actuating, // to allow for a initial actuatinPropertyChanged call - ::std::vector< OUString > aActuatingProperties; - ::std::vector< Any > aActuatingPropertyValues; + std::vector< OUString > aActuatingProperties; + std::vector< Any > aActuatingPropertyValues; // ask the handlers to describe the property UI, and insert the resulting // entries into our list boxes @@ -1236,8 +1236,8 @@ namespace pcr // update any dependencies for the actuating properties which we encountered { - ::std::vector< OUString >::const_iterator aProperty = aActuatingProperties.begin(); - ::std::vector< Any >::const_iterator aPropertyValue = aActuatingPropertyValues.begin(); + std::vector< OUString >::const_iterator aProperty = aActuatingProperties.begin(); + std::vector< Any >::const_iterator aPropertyValue = aActuatingPropertyValues.begin(); for ( ; aProperty != aActuatingProperties.end(); ++aProperty, ++aPropertyValue ) impl_broadcastPropertyChange_nothrow( *aProperty, *aPropertyValue, *aPropertyValue, true ); } @@ -1485,8 +1485,8 @@ namespace pcr else { // create a single handler for every single object - ::std::vector< Reference< XPropertyHandler > > aSingleHandlers( _rObjects.size() ); - ::std::vector< Reference< XPropertyHandler > >::iterator pHandler = aSingleHandlers.begin(); + std::vector< Reference< XPropertyHandler > > aSingleHandlers( _rObjects.size() ); + std::vector< Reference< XPropertyHandler > >::iterator pHandler = aSingleHandlers.begin(); InterfaceArray::const_iterator pObject = _rObjects.begin(); InterfaceArray::const_iterator pObjectEnd = _rObjects.end(); @@ -1694,7 +1694,7 @@ namespace pcr void OPropertyBrowserController::impl_broadcastPropertyChange_nothrow( const OUString& _rPropertyName, const Any& _rNewValue, const Any& _rOldValue, bool _bFirstTimeInit ) const { // are there one or more handlers which are interested in the actuation? - ::std::pair< PropertyHandlerMultiRepository::const_iterator, PropertyHandlerMultiRepository::const_iterator > aInterestedHandlers = + std::pair< PropertyHandlerMultiRepository::const_iterator, PropertyHandlerMultiRepository::const_iterator > aInterestedHandlers = m_aDependencyHandlers.equal_range( _rPropertyName ); if ( aInterestedHandlers.first == aInterestedHandlers.second ) // none of our handlers is interested in this diff --git a/extensions/source/propctrlr/propcontroller.hxx b/extensions/source/propctrlr/propcontroller.hxx index 23180e88d25e..f80d19eea8e8 100644 --- a/extensions/source/propctrlr/propcontroller.hxx +++ b/extensions/source/propctrlr/propcontroller.hxx @@ -90,8 +90,8 @@ namespace pcr ,public IPropertyExistenceCheck { private: - typedef ::std::multimap< sal_Int32, css::beans::Property > OrderedPropertyMap; - typedef ::std::vector< css::uno::Reference< css::uno::XInterface > > + typedef std::multimap< sal_Int32, css::beans::Property > OrderedPropertyMap; + typedef std::vector< css::uno::Reference< css::uno::XInterface > > InterfaceArray; protected: @@ -111,7 +111,7 @@ namespace pcr typedef css::uno::Reference< css::inspection::XPropertyHandler > PropertyHandlerRef; - typedef ::std::vector< PropertyHandlerRef > PropertyHandlerArray; + typedef std::vector< PropertyHandlerRef > PropertyHandlerArray; typedef std::unordered_map< OUString, PropertyHandlerRef, OUStringHash > PropertyHandlerRepository; typedef std::unordered_multimap< OUString, PropertyHandlerRef, OUStringHash > @@ -120,7 +120,7 @@ namespace pcr PropertyHandlerMultiRepository m_aDependencyHandlers; PropertyHandlerRef m_xInteractiveHandler; - ::std::unique_ptr< ComposedPropertyUIUpdate > m_pUIRequestComposer; + std::unique_ptr< ComposedPropertyUIUpdate > m_pUIRequestComposer; /// our InspectorModel css::uno::Reference< css::inspection::XObjectInspectorModel > diff --git a/extensions/source/propctrlr/propertycomposer.cxx b/extensions/source/propctrlr/propertycomposer.cxx index 1ea3b7a00d7e..4c51d017dafe 100644 --- a/extensions/source/propctrlr/propertycomposer.cxx +++ b/extensions/source/propctrlr/propertycomposer.cxx @@ -46,7 +46,7 @@ namespace pcr namespace { - struct SetPropertyValue : public ::std::unary_function< Reference< XPropertyHandler >, void > + struct SetPropertyValue : public std::unary_function< Reference< XPropertyHandler >, void > { OUString sPropertyName; const Any& rValue; @@ -61,8 +61,8 @@ namespace pcr template < class BagType > void putIntoBag( const Sequence< typename BagType::value_type >& _rArray, BagType& /* [out] */ _rBag ) { - ::std::copy( _rArray.begin(), _rArray.end(), - ::std::insert_iterator< BagType >( _rBag, _rBag.begin() ) ); + std::copy( _rArray.begin(), _rArray.end(), + std::insert_iterator< BagType >( _rBag, _rBag.begin() ) ); } @@ -70,7 +70,7 @@ namespace pcr void copyBagToArray( const BagType& /* [out] */ _rBag, Sequence< typename BagType::value_type >& _rArray ) { _rArray.realloc( _rBag.size() ); - ::std::copy( _rBag.begin(), _rBag.end(), _rArray.getArray() ); + std::copy( _rBag.begin(), _rBag.end(), _rArray.getArray() ); } } @@ -84,7 +84,7 @@ namespace pcr // of supported properties per handler). Shouldn't we cache this? So that it is O( log k )? - PropertyComposer::PropertyComposer( const ::std::vector< Reference< XPropertyHandler > >& _rSlaveHandlers ) + PropertyComposer::PropertyComposer( const std::vector< Reference< XPropertyHandler > >& _rSlaveHandlers ) :PropertyComposer_Base ( m_aMutex ) ,m_aSlaveHandlers ( _rSlaveHandlers ) ,m_aPropertyListeners ( m_aMutex ) @@ -134,7 +134,7 @@ namespace pcr void SAL_CALL PropertyComposer::setPropertyValue( const OUString& _rPropertyName, const Any& _rValue ) { MethodGuard aGuard( *this ); - ::std::for_each( m_aSlaveHandlers.begin(), m_aSlaveHandlers.end(), SetPropertyValue( _rPropertyName, _rValue ) ); + std::for_each( m_aSlaveHandlers.begin(), m_aSlaveHandlers.end(), SetPropertyValue( _rPropertyName, _rValue ) ); } @@ -228,8 +228,8 @@ namespace pcr // the intersection of those properties with all we already have PropertyBag aIntersection; - ::std::set_intersection( aThisRound.begin(), aThisRound.end(), m_aSupportedProperties.begin(), m_aSupportedProperties.end(), - ::std::insert_iterator< PropertyBag >( aIntersection, aIntersection.begin() ), PropertyLessByName() ); + std::set_intersection( aThisRound.begin(), aThisRound.end(), m_aSupportedProperties.begin(), m_aSupportedProperties.end(), + std::insert_iterator< PropertyBag >( aIntersection, aIntersection.begin() ), PropertyLessByName() ); m_aSupportedProperties.swap( aIntersection ); if ( m_aSupportedProperties.empty() ) @@ -262,7 +262,7 @@ namespace pcr void uniteStringArrays( const PropertyComposer::HandlerArray& _rHandlers, Sequence< OUString > (SAL_CALL XPropertyHandler::*pGetter)( void ), Sequence< OUString >& /* [out] */ _rUnion ) { - ::std::set< OUString > aUnitedBag; + std::set< OUString > aUnitedBag; Sequence< OUString > aThisRound; for ( PropertyComposer::HandlerArray::const_iterator loop = _rHandlers.begin(); diff --git a/extensions/source/propctrlr/propertycomposer.hxx b/extensions/source/propctrlr/propertycomposer.hxx index 248500e74919..6a034a9f6436 100644 --- a/extensions/source/propctrlr/propertycomposer.hxx +++ b/extensions/source/propctrlr/propertycomposer.hxx @@ -54,12 +54,12 @@ namespace pcr ,public IPropertyExistenceCheck { public: - typedef ::std::vector< css::uno::Reference< css::inspection::XPropertyHandler > > + typedef std::vector< css::uno::Reference< css::inspection::XPropertyHandler > > HandlerArray; private: HandlerArray m_aSlaveHandlers; - ::std::unique_ptr< ComposedPropertyUIUpdate > m_pUIRequestComposer; + std::unique_ptr< ComposedPropertyUIUpdate > m_pUIRequestComposer; PropertyChangeListeners m_aPropertyListeners; bool m_bSupportedPropertiesAreKnown; PropertyBag m_aSupportedProperties; @@ -71,7 +71,7 @@ namespace pcr @param _rSlaveHandlers the set of slave handlers to invoke. Must not be <NULL/> */ - explicit PropertyComposer( const ::std::vector< css::uno::Reference< css::inspection::XPropertyHandler > >& _rSlaveHandlers ); + explicit PropertyComposer( const std::vector< css::uno::Reference< css::inspection::XPropertyHandler > >& _rSlaveHandlers ); public: // XPropertyHandler overridables diff --git a/extensions/source/propctrlr/propertycontrolextender.hxx b/extensions/source/propctrlr/propertycontrolextender.hxx index 5fb18c901cae..9c1bee8dbfd3 100644 --- a/extensions/source/propctrlr/propertycontrolextender.hxx +++ b/extensions/source/propctrlr/propertycontrolextender.hxx @@ -54,7 +54,7 @@ namespace pcr virtual ~PropertyControlExtender() override; private: - ::std::unique_ptr< PropertyControlExtender_Data > m_pData; + std::unique_ptr< PropertyControlExtender_Data > m_pData; }; diff --git a/extensions/source/propctrlr/propertyeditor.cxx b/extensions/source/propctrlr/propertyeditor.cxx index 76013a7771e1..2da1083025f0 100644 --- a/extensions/source/propctrlr/propertyeditor.cxx +++ b/extensions/source/propctrlr/propertyeditor.cxx @@ -273,7 +273,7 @@ namespace pcr } - void OPropertyEditor::Update(const ::std::mem_fun_t<void,OBrowserListBox>& _aUpdateFunction) + void OPropertyEditor::Update(const std::mem_fun_t<void,OBrowserListBox>& _aUpdateFunction) { // forward this to all our pages sal_uInt16 nCount = m_aTabControl->GetPageCount(); @@ -288,12 +288,12 @@ namespace pcr void OPropertyEditor::EnableUpdate() { - Update(::std::mem_fun(&OBrowserListBox::EnableUpdate)); + Update(std::mem_fun(&OBrowserListBox::EnableUpdate)); } void OPropertyEditor::DisableUpdate() { - Update(::std::mem_fun(&OBrowserListBox::DisableUpdate)); + Update(std::mem_fun(&OBrowserListBox::DisableUpdate)); } @@ -459,7 +459,7 @@ namespace pcr } else { - ::std::map< sal_uInt16, HiddenPage >::iterator aPagePos = m_aHiddenPages.find( _nPageId ); + std::map< sal_uInt16, HiddenPage >::iterator aPagePos = m_aHiddenPages.find( _nPageId ); if ( aPagePos == m_aHiddenPages.end() ) return; diff --git a/extensions/source/propctrlr/propertyeditor.hxx b/extensions/source/propctrlr/propertyeditor.hxx index a40c312b9893..5a74e9200c27 100644 --- a/extensions/source/propctrlr/propertyeditor.hxx +++ b/extensions/source/propctrlr/propertyeditor.hxx @@ -42,7 +42,7 @@ namespace pcr class OPropertyEditor : public Control { private: - typedef ::std::map< OUString, sal_uInt16 > MapStringToPageId; + typedef std::map< OUString, sal_uInt16 > MapStringToPageId; struct HiddenPage { sal_uInt16 nPos; @@ -62,7 +62,7 @@ namespace pcr sal_Int32 m_nMaxHelpLines; MapStringToPageId m_aPropertyPageIds; - ::std::map< sal_uInt16, HiddenPage > m_aHiddenPages; + std::map< sal_uInt16, HiddenPage > m_aHiddenPages; protected: void Resize() override; @@ -123,7 +123,7 @@ namespace pcr OBrowserPage* getPage( const OUString& _rPropertyName ); const OBrowserPage* getPage( const OUString& _rPropertyName ) const; - void Update(const ::std::mem_fun_t<void,OBrowserListBox>& _aUpdateFunction); + void Update(const std::mem_fun_t<void,OBrowserListBox>& _aUpdateFunction); typedef void (OPropertyEditor::*PageOperation)( OBrowserPage&, const void* ); void forEachPage( PageOperation _pOperation ); diff --git a/extensions/source/propctrlr/propertyhandler.cxx b/extensions/source/propctrlr/propertyhandler.cxx index 44352f1b3cad..a3da0893b05e 100644 --- a/extensions/source/propctrlr/propertyhandler.cxx +++ b/extensions/source/propctrlr/propertyhandler.cxx @@ -78,8 +78,8 @@ namespace pcr return; // remove all old property change listeners - ::std::unique_ptr< ::comphelper::OInterfaceIteratorHelper2 > removeListener = m_aPropertyListeners.createIterator(); - ::std::unique_ptr< ::comphelper::OInterfaceIteratorHelper2 > readdListener = m_aPropertyListeners.createIterator(); // will copy the container as needed + std::unique_ptr< ::comphelper::OInterfaceIteratorHelper2 > removeListener = m_aPropertyListeners.createIterator(); + std::unique_ptr< ::comphelper::OInterfaceIteratorHelper2 > readdListener = m_aPropertyListeners.createIterator(); // will copy the container as needed while ( removeListener->hasMoreElements() ) removePropertyChangeListener( static_cast< XPropertyChangeListener* >( removeListener->next() ) ); OSL_ENSURE( m_aPropertyListeners.empty(), "PropertyHandler::inspect: derived classes are expected to forward the removePropertyChangeListener call to their base class (me)!" ); @@ -265,7 +265,7 @@ namespace pcr const Property* PropertyHandler::impl_getPropertyFromId_nothrow( PropertyId _nPropId ) const { const_cast< PropertyHandler* >( this )->getSupportedProperties(); - const Property* pFound = ::std::find_if( m_aSupportedProperties.begin(), m_aSupportedProperties.end(), + const Property* pFound = std::find_if( m_aSupportedProperties.begin(), m_aSupportedProperties.end(), FindPropertyByHandle( _nPropId ) ); if ( pFound != m_aSupportedProperties.end() ) @@ -285,7 +285,7 @@ namespace pcr const Property& PropertyHandler::impl_getPropertyFromName_throw( const OUString& _rPropertyName ) const { const_cast< PropertyHandler* >( this )->getSupportedProperties(); - StlSyntaxSequence< Property >::const_iterator pFound = ::std::find_if( m_aSupportedProperties.begin(), m_aSupportedProperties.end(), + StlSyntaxSequence< Property >::const_iterator pFound = std::find_if( m_aSupportedProperties.begin(), m_aSupportedProperties.end(), FindPropertyByName( _rPropertyName ) ); if ( pFound == m_aSupportedProperties.end() ) @@ -294,7 +294,7 @@ namespace pcr return *pFound; } - void PropertyHandler::implAddPropertyDescription( ::std::vector< Property >& _rProperties, const OUString& _rPropertyName, const Type& _rType, sal_Int16 _nAttribs ) const + void PropertyHandler::implAddPropertyDescription( std::vector< Property >& _rProperties, const OUString& _rPropertyName, const Type& _rType, sal_Int16 _nAttribs ) const { _rProperties.push_back( Property( _rPropertyName, diff --git a/extensions/source/propctrlr/propertyhandler.hxx b/extensions/source/propctrlr/propertyhandler.hxx index a46cfc8d471c..0a39548df5ab 100644 --- a/extensions/source/propctrlr/propertyhandler.hxx +++ b/extensions/source/propctrlr/propertyhandler.hxx @@ -94,7 +94,7 @@ namespace pcr /// type converter, needed on various occasions css::uno::Reference< css::script::XTypeConverter > m_xTypeConverter; /// access to property meta data - ::std::unique_ptr< OPropertyInfoService > m_pInfoService; + std::unique_ptr< OPropertyInfoService > m_pInfoService; protected: explicit PropertyHandler( @@ -164,14 +164,14 @@ namespace pcr Most probably to be called from within getSupportedProperties */ inline void addStringPropertyDescription( - ::std::vector< css::beans::Property >& _rProperties, + std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName ) const; /** adds a description for the given int32 property to the given property vector */ inline void addInt32PropertyDescription( - ::std::vector< css::beans::Property >& _rProperties, + std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs = 0 ) const; @@ -179,7 +179,7 @@ namespace pcr /** adds a description for the given int16 property to the given property vector */ inline void addInt16PropertyDescription( - ::std::vector< css::beans::Property >& _rProperties, + std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs = 0 ) const; @@ -187,7 +187,7 @@ namespace pcr /** adds a description for the given double property to the given property vector */ inline void addDoublePropertyDescription( - ::std::vector< css::beans::Property >& _rProperties, + std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const; @@ -195,7 +195,7 @@ namespace pcr /** adds a description for the given date property to the given property vector */ inline void addDatePropertyDescription( - ::std::vector< css::beans::Property >& _rProperties, + std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const; @@ -203,7 +203,7 @@ namespace pcr /** adds a description for the given time property to the given property vector */ inline void addTimePropertyDescription( - ::std::vector< css::beans::Property >& _rProperties, + std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const; @@ -211,14 +211,14 @@ namespace pcr /** adds a description for the given DateTime property to the given property vector */ inline void addDateTimePropertyDescription( - ::std::vector< css::beans::Property >& _rProperties, + std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const; /// adds a Property, given by name only, to a given vector of Properties void implAddPropertyDescription( - ::std::vector< css::beans::Property >& _rProperties, + std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, const css::uno::Type& _rType, sal_Int16 _nAttribs = 0 @@ -303,37 +303,37 @@ namespace pcr }; - inline void PropertyHandler::addStringPropertyDescription( ::std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName ) const + inline void PropertyHandler::addStringPropertyDescription( std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName ) const { implAddPropertyDescription( _rProperties, _rPropertyName, ::cppu::UnoType<OUString>::get() ); } - inline void PropertyHandler::addInt32PropertyDescription( ::std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const + inline void PropertyHandler::addInt32PropertyDescription( std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const { implAddPropertyDescription( _rProperties, _rPropertyName, ::cppu::UnoType<sal_Int32>::get(), _nAttribs ); } - inline void PropertyHandler::addInt16PropertyDescription( ::std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const + inline void PropertyHandler::addInt16PropertyDescription( std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const { implAddPropertyDescription( _rProperties, _rPropertyName, ::cppu::UnoType<sal_Int16>::get(), _nAttribs ); } - inline void PropertyHandler::addDoublePropertyDescription( ::std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const + inline void PropertyHandler::addDoublePropertyDescription( std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const { implAddPropertyDescription( _rProperties, _rPropertyName, ::cppu::UnoType<double>::get(), _nAttribs ); } - inline void PropertyHandler::addDatePropertyDescription( ::std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const + inline void PropertyHandler::addDatePropertyDescription( std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const { implAddPropertyDescription( _rProperties, _rPropertyName, ::cppu::UnoType<css::util::Date>::get(), _nAttribs ); } - inline void PropertyHandler::addTimePropertyDescription( ::std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const + inline void PropertyHandler::addTimePropertyDescription( std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const { implAddPropertyDescription( _rProperties, _rPropertyName, ::cppu::UnoType<css::util::Time>::get(), _nAttribs ); } - inline void PropertyHandler::addDateTimePropertyDescription( ::std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const + inline void PropertyHandler::addDateTimePropertyDescription( std::vector< css::beans::Property >& _rProperties, const OUString& _rPropertyName, sal_Int16 _nAttribs ) const { implAddPropertyDescription( _rProperties, _rPropertyName, ::cppu::UnoType<css::util::DateTime>::get(), _nAttribs ); } diff --git a/extensions/source/propctrlr/propertyinfo.hxx b/extensions/source/propctrlr/propertyinfo.hxx index 7b1ee3b2b2de..ff6a83dc03b4 100644 --- a/extensions/source/propctrlr/propertyinfo.hxx +++ b/extensions/source/propctrlr/propertyinfo.hxx @@ -40,7 +40,7 @@ namespace pcr virtual OString getPropertyHelpId(sal_Int32 _nId) const = 0; virtual sal_Int16 getPropertyPos(sal_Int32 _nId) const = 0; virtual sal_uInt32 getPropertyUIFlags(sal_Int32 _nId) const = 0; - virtual ::std::vector< OUString > getPropertyEnumRepresentations(sal_Int32 _nId) const = 0; + virtual std::vector< OUString > getPropertyEnumRepresentations(sal_Int32 _nId) const = 0; virtual ~IPropertyInfoService() { } }; diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx index c07959322c3f..1b60b7f57a7c 100644 --- a/extensions/source/propctrlr/standardcontrol.cxx +++ b/extensions/source/propctrlr/standardcontrol.cxx @@ -233,8 +233,8 @@ namespace pcr for ( sal_uInt16 d = 0; d < nDigits; ++d ) n *= 10; - if ( n > ::std::numeric_limits< long >::max() ) - return ::std::numeric_limits< long >::max(); + if ( n > std::numeric_limits< long >::max() ) + return std::numeric_limits< long >::max(); return (long)n; } @@ -504,7 +504,7 @@ namespace pcr Optional< double > aReturn( true, 0 ); sal_Int64 minValue = getTypedControlWindow()->GetMin(); - if ( minValue == ::std::numeric_limits< sal_Int64 >::min() ) + if ( minValue == std::numeric_limits< sal_Int64 >::min() ) aReturn.IsPresent = false; else aReturn.Value = (double)minValue; @@ -516,7 +516,7 @@ namespace pcr void SAL_CALL ONumericControl::setMinValue( const Optional< double >& _minvalue ) { if ( !_minvalue.IsPresent ) - getTypedControlWindow()->SetMin( ::std::numeric_limits< sal_Int64 >::min() ); + getTypedControlWindow()->SetMin( std::numeric_limits< sal_Int64 >::min() ); else getTypedControlWindow()->SetMin( impl_apiValueToFieldValue_nothrow( _minvalue.Value ) , m_eValueUnit); } @@ -527,7 +527,7 @@ namespace pcr Optional< double > aReturn( true, 0 ); sal_Int64 maxValue = getTypedControlWindow()->GetMax(); - if ( maxValue == ::std::numeric_limits< sal_Int64 >::max() ) + if ( maxValue == std::numeric_limits< sal_Int64 >::max() ) aReturn.IsPresent = false; else aReturn.Value = (double)maxValue; @@ -539,7 +539,7 @@ namespace pcr void SAL_CALL ONumericControl::setMaxValue( const Optional< double >& _maxvalue ) { if ( !_maxvalue.IsPresent ) - getTypedControlWindow()->SetMax( ::std::numeric_limits< sal_Int64 >::max() ); + getTypedControlWindow()->SetMax( std::numeric_limits< sal_Int64 >::max() ); else getTypedControlWindow()->SetMax( impl_apiValueToFieldValue_nothrow( _maxvalue.Value ), m_eValueUnit ); } diff --git a/extensions/source/propctrlr/submissionhandler.cxx b/extensions/source/propctrlr/submissionhandler.cxx index d6a924aaf453..bef6d5990aac 100644 --- a/extensions/source/propctrlr/submissionhandler.cxx +++ b/extensions/source/propctrlr/submissionhandler.cxx @@ -261,7 +261,7 @@ namespace pcr Sequence< Property > SAL_CALL SubmissionPropertyHandler::doDescribeSupportedProperties() const { - ::std::vector< Property > aProperties; + std::vector< Property > aProperties; if ( m_pHelper.get() ) { implAddPropertyDescription( aProperties, PROPERTY_SUBMISSION_ID, cppu::UnoType<submission::XSubmission>::get() ); @@ -282,7 +282,7 @@ namespace pcr if ( !m_pHelper.get() ) RuntimeException(); - ::std::vector< OUString > aListEntries; + std::vector< OUString > aListEntries; PropertyId nPropId( impl_getPropertyId_throwUnknownProperty( _rPropertyName ) ); switch ( nPropId ) { diff --git a/extensions/source/propctrlr/submissionhandler.hxx b/extensions/source/propctrlr/submissionhandler.hxx index 0d8c035daf0d..410b72cb0259 100644 --- a/extensions/source/propctrlr/submissionhandler.hxx +++ b/extensions/source/propctrlr/submissionhandler.hxx @@ -69,7 +69,7 @@ namespace pcr class SubmissionPropertyHandler : public EditPropertyHandler_Base, public ::comphelper::OPropertyChangeListener { private: - ::std::unique_ptr< SubmissionHelper > m_pHelper; + std::unique_ptr< SubmissionHelper > m_pHelper; rtl::Reference<::comphelper::OPropertyChangeMultiplexer> m_xPropChangeMultiplexer; public: diff --git a/extensions/source/propctrlr/xsdvalidationhelper.cxx b/extensions/source/propctrlr/xsdvalidationhelper.cxx index 284de9f2b163..6e43c5b3f122 100644 --- a/extensions/source/propctrlr/xsdvalidationhelper.cxx +++ b/extensions/source/propctrlr/xsdvalidationhelper.cxx @@ -74,7 +74,7 @@ namespace pcr } - void XSDValidationHelper::getAvailableDataTypeNames( ::std::vector< OUString >& /* [out] */ _rNames ) const + void XSDValidationHelper::getAvailableDataTypeNames( std::vector< OUString >& /* [out] */ _rNames ) const { _rNames.resize( 0 ); @@ -86,7 +86,7 @@ namespace pcr aElements = xRepository->getElementNames(); _rNames.resize( aElements.getLength() ); - ::std::copy( aElements.begin(), aElements.end(), _rNames.begin() ); + std::copy( aElements.begin(), aElements.end(), _rNames.begin() ); } catch( const Exception& ) { diff --git a/extensions/source/propctrlr/xsdvalidationhelper.hxx b/extensions/source/propctrlr/xsdvalidationhelper.hxx index 1f8df853d5d1..017c939a4934 100644 --- a/extensions/source/propctrlr/xsdvalidationhelper.hxx +++ b/extensions/source/propctrlr/xsdvalidationhelper.hxx @@ -52,7 +52,7 @@ namespace pcr /** retrieves the names of all XForms models in the document the control lives in */ - void getAvailableDataTypeNames( ::std::vector< OUString >& /* [out] */ _rNames ) const; + void getAvailableDataTypeNames( std::vector< OUString >& /* [out] */ _rNames ) const; /** retrieves a particular data type given by name */ diff --git a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx index 9d92ed755f16..598f6f0bbed5 100644 --- a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx +++ b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx @@ -171,7 +171,7 @@ namespace pcr Sequence< Property > XSDValidationPropertyHandler::doDescribeSupportedProperties() const { - ::std::vector< Property > aProperties; + std::vector< Property > aProperties; if ( m_pHelper.get() ) { @@ -226,7 +226,7 @@ namespace pcr { ::osl::MutexGuard aGuard( m_aMutex ); - ::std::vector< OUString > aSuperfluous; + std::vector< OUString > aSuperfluous; if ( m_pHelper.get() ) { aSuperfluous.push_back( OUString(PROPERTY_CONTROLSOURCE) ); @@ -260,7 +260,7 @@ namespace pcr Sequence< OUString > SAL_CALL XSDValidationPropertyHandler::getActuatingProperties( ) { ::osl::MutexGuard aGuard( m_aMutex ); - ::std::vector< OUString > aInterestedInActuations; + std::vector< OUString > aInterestedInActuations; if ( m_pHelper.get() ) { aInterestedInActuations.push_back( OUString(PROPERTY_XSD_DATA_TYPE) ); @@ -299,7 +299,7 @@ namespace pcr // collect some information about the to-be-created control sal_Int16 nControlType = PropertyControlType::TextField; - ::std::vector< OUString > aListEntries; + std::vector< OUString > aListEntries; Optional< double > aMinValue( false, 0 ); Optional< double > aMaxValue( false, 0 ); @@ -354,7 +354,7 @@ namespace pcr aMinValue.IsPresent = aMaxValue.IsPresent = true; aMinValue.Value = DataTypeClass::gYear == nTypeClass ? 0 : 1; - aMaxValue.Value = ::std::numeric_limits< sal_Int32 >::max(); + aMaxValue.Value = std::numeric_limits< sal_Int32 >::max(); if ( DataTypeClass::gMonth == nTypeClass ) aMaxValue.Value = 12; else if ( DataTypeClass::gDay == nTypeClass ) @@ -484,7 +484,7 @@ namespace pcr return false; } - ::std::vector< OUString > aExistentNames; + std::vector< OUString > aExistentNames; m_pHelper->getAvailableDataTypeNames( aExistentNames ); ScopedVclPtrInstance<NewDataTypeDialog> aDialog( nullptr, pType->getName(), aExistentNames ); // TODO/eForms: proper parent @@ -643,17 +643,17 @@ namespace pcr } - void XSDValidationPropertyHandler::implGetAvailableDataTypeNames( ::std::vector< OUString >& /* [out] */ _rNames ) const + void XSDValidationPropertyHandler::implGetAvailableDataTypeNames( std::vector< OUString >& /* [out] */ _rNames ) const { OSL_PRECOND( m_pHelper.get(), "XSDValidationPropertyHandler::implGetAvailableDataTypeNames: this will crash!" ); // start with *all* types which are available at the model - ::std::vector< OUString > aAllTypes; + std::vector< OUString > aAllTypes; m_pHelper->getAvailableDataTypeNames( aAllTypes ); _rNames.clear(); _rNames.reserve( aAllTypes.size() ); // then allow only those which are "compatible" with our control - for ( ::std::vector< OUString >::const_iterator dataType = aAllTypes.begin(); + for ( std::vector< OUString >::const_iterator dataType = aAllTypes.begin(); dataType != aAllTypes.end(); ++dataType ) diff --git a/extensions/source/propctrlr/xsdvalidationpropertyhandler.hxx b/extensions/source/propctrlr/xsdvalidationpropertyhandler.hxx index c65f37a21b92..ea1564525c8b 100644 --- a/extensions/source/propctrlr/xsdvalidationpropertyhandler.hxx +++ b/extensions/source/propctrlr/xsdvalidationpropertyhandler.hxx @@ -38,7 +38,7 @@ namespace pcr class XSDValidationPropertyHandler : public XSDValidationPropertyHandler_Base { private: - ::std::unique_ptr< XSDValidationHelper > m_pHelper; + std::unique_ptr< XSDValidationHelper > m_pHelper; public: explicit XSDValidationPropertyHandler( @@ -83,7 +83,7 @@ namespace pcr /** retrieves the names of the data types which our introspectee can be validated against */ - void implGetAvailableDataTypeNames( ::std::vector< OUString >& /* [out] */ _rNames ) const; + void implGetAvailableDataTypeNames( std::vector< OUString >& /* [out] */ _rNames ) const; }; diff --git a/extensions/source/resource/ResourceIndexAccess.cxx b/extensions/source/resource/ResourceIndexAccess.cxx index b422bbaff6bf..bebd3af63e2a 100644 --- a/extensions/source/resource/ResourceIndexAccess.cxx +++ b/extensions/source/resource/ResourceIndexAccess.cxx @@ -70,7 +70,7 @@ Any SAL_CALL ResourceIndexAccess::getByName(const OUString& aName) { const Sequence<OUString> aNames(getElementNames()); Reference<XIndexAccess> xResult; - switch(::std::find(aNames.begin(), aNames.end(), aName) - aNames.begin()) + switch(std::find(aNames.begin(), aNames.end(), aName) - aNames.begin()) { case 0: xResult.set(new ResourceStringIndexAccess(m_pResMgr)); @@ -95,7 +95,7 @@ Sequence<OUString> SAL_CALL ResourceIndexAccess::getElementNames( ) sal_Bool SAL_CALL ResourceIndexAccess::hasByName(const OUString& aName) { const Sequence<OUString> aNames(getElementNames()); - return (::std::find(aNames.begin(), aNames.end(), aName) != aNames.end()); + return (std::find(aNames.begin(), aNames.end(), aName) != aNames.end()); } Any SAL_CALL ResourceStringIndexAccess::getByIndex(sal_Int32 nIdx) diff --git a/extensions/source/resource/oooresourceloader.cxx b/extensions/source/resource/oooresourceloader.cxx index d29d34b0d3c0..4c94aab56856 100644 --- a/extensions/source/resource/oooresourceloader.cxx +++ b/extensions/source/resource/oooresourceloader.cxx @@ -80,7 +80,7 @@ namespace extensions { namespace resource { private: typedef std::shared_ptr< StringResourceAccess > ResourceTypePtr; - typedef ::std::map< OUString, ResourceTypePtr > ResourceTypes; + typedef std::map< OUString, ResourceTypePtr > ResourceTypes; ::osl::Mutex m_aMutex; Reference< XResourceBundle > m_xParent; diff --git a/extensions/source/resource/oooresourceloader.hxx b/extensions/source/resource/oooresourceloader.hxx index 50656d514c04..dccc2c2a7fd3 100644 --- a/extensions/source/resource/oooresourceloader.hxx +++ b/extensions/source/resource/oooresourceloader.hxx @@ -31,9 +31,9 @@ namespace extensions { namespace resource { - typedef ::std::pair< OUString, css::lang::Locale> ResourceBundleDescriptor; + typedef std::pair< OUString, css::lang::Locale> ResourceBundleDescriptor; - struct ResourceBundleDescriptorLess : public ::std::binary_function<ResourceBundleDescriptor, ResourceBundleDescriptor, bool> + struct ResourceBundleDescriptorLess : public std::binary_function<ResourceBundleDescriptor, ResourceBundleDescriptor, bool> { bool operator()( const ResourceBundleDescriptor& _lhs, const ResourceBundleDescriptor& _rhs ) const { @@ -52,7 +52,7 @@ namespace extensions { namespace resource class OpenOfficeResourceLoader : public ::cppu::WeakImplHelper< css::resource::XResourceBundleLoader> { public: - typedef ::std::map< + typedef std::map< ResourceBundleDescriptor, css::uno::WeakReference< css::resource::XResourceBundle>, ResourceBundleDescriptorLess> ResourceBundleCache; |