diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:08:13 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:34 +0200 |
commit | 40d6b81b9ee0a878d0dadb40941c50aa394a7501 (patch) | |
tree | 4e52c015cf1613371b010841de9cf72160c80894 /dbaccess | |
parent | fde48126df56ede640499f24ac67f6754b84efbf (diff) |
Replace map to sal_Bool with map to bool
(Though this looks like it wants to use a set instead of a map, anyway.)
Change-Id: I755581d3915dca902e7b96efea16d4d29cb0158a
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index d18a00d1c387..d987f6a0ceb8 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -989,7 +989,7 @@ void OTableController::alterColumns() // contains all columns names which are already handled those which are not in the list will be deleted Reference< XDatabaseMetaData> xMetaData = getMetaData( ); - ::std::map< OUString,sal_Bool,::comphelper::UStringMixLess> aColumns(!xMetaData.is() || xMetaData->supportsMixedCaseQuotedIdentifiers()); + ::std::map< OUString,bool,::comphelper::UStringMixLess> aColumns(!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(); // first look for columns where something other than the name changed @@ -1002,14 +1002,14 @@ void OTableController::alterColumns() continue; if ( (*aIter)->IsReadOnly() ) { - aColumns[pField->GetName()] = sal_True; + aColumns[pField->GetName()] = true; continue; } Reference<XPropertySet> xColumn; if ( xColumns->hasByName(pField->GetName()) ) { - aColumns[pField->GetName()] = sal_True; + aColumns[pField->GetName()] = true; xColumns->getByName(pField->GetName()) >>= xColumn; OSL_ENSURE(xColumn.is(),"Column is null!"); @@ -1102,7 +1102,7 @@ void OTableController::alterColumns() xAlter->alterColumnByIndex(nPos,xNewColumn); if(xColumns->hasByName(pField->GetName())) { // ask for the append by name - aColumns[pField->GetName()] = sal_True; + aColumns[pField->GetName()] = true; xColumns->getByName(pField->GetName()) >>= xColumn; if(xColumn.is()) pField->copyColumnSettingsTo(xColumn); @@ -1125,8 +1125,8 @@ void OTableController::alterColumns() Reference<XPropertySet> xNewColumn(xIdxColumns->getByIndex(nPos),UNO_QUERY_THROW); OUString sName; xNewColumn->getPropertyValue(PROPERTY_NAME) >>= sName; - aColumns[sName] = sal_True; - aColumns[pField->GetName()] = sal_True; + aColumns[sName] = true; + aColumns[pField->GetName()] = true; continue; } } @@ -1149,7 +1149,7 @@ void OTableController::alterColumns() continue; if ( (*aIter)->IsReadOnly() ) { - aColumns[pField->GetName()] = sal_True; + aColumns[pField->GetName()] = true; continue; } @@ -1238,7 +1238,7 @@ void OTableController::alterColumns() xAppend->appendByDescriptor(xColumn); if(xColumns->hasByName(pField->GetName())) { // ask for the append by name - aColumns[pField->GetName()] = sal_True; + aColumns[pField->GetName()] = true; xColumns->getByName(pField->GetName()) >>= xColumn; if(xColumn.is()) pField->copyColumnSettingsTo(xColumn); |