diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:49:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:49:41 +0200 |
commit | 578f267a3895f6cb1a91c0ad540db8d801826676 (patch) | |
tree | e1384e01345908952d86d9f6dde79da7b7252441 /dbaccess | |
parent | 4180210a27240e01c9a0db0688d51b1449e4c4b8 (diff) |
loplugin:defaultparams
Change-Id: I83d411adf8ef882618bd48ab73602f7cf1531078
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/app/AppDetailPageHelper.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/control/RelationControl.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/control/tabletree.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/adtabdlg.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/indexfieldscontrol.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/WCPage.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/WCopyTable.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/JoinController.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 14 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/querydlg.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/tabledesign/TEditControl.cxx | 10 | ||||
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableUndo.cxx | 4 |
13 files changed, 29 insertions, 29 deletions
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx index f6b73142e794..8ab030f3979b 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx @@ -205,7 +205,7 @@ OAppDetailPageHelper::OAppDetailPageHelper(vcl::Window* _pParent,OAppBorderWindo m_aTBPreview->SetHelpId(HID_APP_VIEW_PREVIEW_CB); m_aTBPreview->SetDropdownClickHdl( LINK( this, OAppDetailPageHelper, OnDropdownClickHdl ) ); m_aTBPreview->EnableMenuStrings(); - m_aTBPreview->Enable(true); + m_aTBPreview->Enable(); m_aBorder->SetUniqueId(UID_APP_VIEW_PREVIEW_1); diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 2869dbc7820f..2568c738f750 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -2061,7 +2061,7 @@ void SbaTableQueryBrowser::implAddDatasource(const OUString& _rDbName, Image& _r OUString sDSDisplayName, sDataSourceId; getDataSourceDisplayName_isURL( _rDbName, sDSDisplayName, sDataSourceId ); - SvTreeListEntry* pDatasourceEntry = m_pTreeView->getListBox().InsertEntry( sDSDisplayName, _rDbImage, _rDbImage, NULL, false ); + SvTreeListEntry* pDatasourceEntry = m_pTreeView->getListBox().InsertEntry( sDSDisplayName, _rDbImage, _rDbImage, NULL ); DBTreeListUserData* pDSData = new DBTreeListUserData; pDSData->eType = etDatasource; pDSData->sAccessor = sDataSourceId; diff --git a/dbaccess/source/ui/control/RelationControl.cxx b/dbaccess/source/ui/control/RelationControl.cxx index baf251536fd2..e0d4b2ce6421 100644 --- a/dbaccess/source/ui/control/RelationControl.cxx +++ b/dbaccess/source/ui/control/RelationControl.cxx @@ -178,7 +178,7 @@ namespace dbaui // not the first call RowRemoved(0, GetRowCount()); - RowInserted(0, m_pConnData->GetConnLineDataList().size() + 1, true); // add one extra row + RowInserted(0, m_pConnData->GetConnLineDataList().size() + 1); // add one extra row } void ORelationControl::Resize() diff --git a/dbaccess/source/ui/control/tabletree.cxx b/dbaccess/source/ui/control/tabletree.cxx index 1b23471a46d9..d38d062b93df 100644 --- a/dbaccess/source/ui/control/tabletree.cxx +++ b/dbaccess/source/ui/control/tabletree.cxx @@ -461,7 +461,7 @@ SvTreeListEntry* OTableTreeListBox::implAddEntry( SvTreeListEntry* pRet = NULL; if ( !_bCheckName || !GetEntryPosByName( sName, pParentEntry ) ) { - pRet = InsertEntry( sName, pParentEntry, false, TREELIST_APPEND ); + pRet = InsertEntry( sName, pParentEntry ); Image aImage; m_xImageProvider->getImages( _rTableName, DatabaseObject::TABLE, aImage ); diff --git a/dbaccess/source/ui/dlg/adtabdlg.cxx b/dbaccess/source/ui/dlg/adtabdlg.cxx index 66561d890bc3..c689dd1814eb 100644 --- a/dbaccess/source/ui/dlg/adtabdlg.cxx +++ b/dbaccess/source/ui/dlg/adtabdlg.cxx @@ -382,7 +382,7 @@ void OAddTableDlg::impl_switchTo( ObjectList _eList ) switch ( _eList ) { case Tables: - m_pTableList->Show( true ); m_pCaseTables->Check(); + m_pTableList->Show(); m_pCaseTables->Check(); m_pQueryList->Show( false ); m_pCaseQueries->Check( false ); m_xCurrentList.reset( new TableListFacade( *m_pTableList, m_rContext.getConnection() ) ); m_pTableList->GrabFocus(); @@ -390,7 +390,7 @@ void OAddTableDlg::impl_switchTo( ObjectList _eList ) case Queries: m_pTableList->Show( false ); m_pCaseTables->Check( false ); - m_pQueryList->Show( true ); m_pCaseQueries->Check(); + m_pQueryList->Show(); m_pCaseQueries->Check(); m_xCurrentList.reset( new QueryListFacade( *m_pQueryList, m_rContext.getConnection() ) ); m_pQueryList->GrabFocus(); break; diff --git a/dbaccess/source/ui/dlg/indexfieldscontrol.cxx b/dbaccess/source/ui/dlg/indexfieldscontrol.cxx index b59938c439d5..3d840723c9d4 100644 --- a/dbaccess/source/ui/dlg/indexfieldscontrol.cxx +++ b/dbaccess/source/ui/dlg/indexfieldscontrol.cxx @@ -311,7 +311,7 @@ namespace dbaui OIndexField aNewField; aNewField.sFieldName = sFieldSelected; m_aFields.push_back(aNewField); - RowInserted(GetRowCount(), 1, true); + RowInserted(GetRowCount()); } } else @@ -403,14 +403,14 @@ namespace dbaui { // in the last row, an non-empty string has been selected // -> insert a new row m_aFields.push_back(OIndexField()); - RowInserted(GetRowCount(), 1); + RowInserted(GetRowCount()); Invalidate(GetRowRectPixel(nCurrentRow)); } else if (sSelectedEntry.isEmpty() && (nCurrentRow == rowCount - 2)) { // in the (last-1)th row, an empty entry has been selected // -> remove the last row m_aFields.erase(m_aFields.end() - 1); - RowRemoved(GetRowCount() - 1, 1); + RowRemoved(GetRowCount() - 1); Invalidate(GetRowRectPixel(nCurrentRow)); } } diff --git a/dbaccess/source/ui/misc/WCPage.cxx b/dbaccess/source/ui/misc/WCPage.cxx index 9b170b21f625..fd9206ee9079 100644 --- a/dbaccess/source/ui/misc/WCPage.cxx +++ b/dbaccess/source/ui/misc/WCPage.cxx @@ -249,7 +249,7 @@ bool OCopyTable::LeavePage() void OCopyTable::ActivatePage() { - m_pParent->GetOKButton().Enable( true ); + m_pParent->GetOKButton().Enable(); m_nOldOperation = m_pParent->getOperation(); m_pEdTableName->GrabFocus(); m_pCB_UseHeaderLine->Check(m_pParent->UseHeaderLine()); diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx index 22c3c29ab07c..09a99bfa15b4 100644 --- a/dbaccess/source/ui/misc/WCopyTable.cxx +++ b/dbaccess/source/ui/misc/WCopyTable.cxx @@ -959,7 +959,7 @@ void OCopyTableWizard::CheckButtons() if(GetCurLevel() == 0) // the first page has no back button { if(m_nPageCount > 1) - m_pbNext->Enable(true); + m_pbNext->Enable(); else m_pbNext->Enable(false); @@ -968,11 +968,11 @@ void OCopyTableWizard::CheckButtons() else if(GetCurLevel() == m_nPageCount-1) // the last page has no next button { m_pbNext->Enable(false); - m_pbPrev->Enable(true); + m_pbPrev->Enable(); } else { - m_pbPrev->Enable(true); + m_pbPrev->Enable(); // next already has its state } } diff --git a/dbaccess/source/ui/querydesign/JoinController.cxx b/dbaccess/source/ui/querydesign/JoinController.cxx index a6324ffd7ceb..f8f4e1dce412 100644 --- a/dbaccess/source/ui/querydesign/JoinController.cxx +++ b/dbaccess/source/ui/querydesign/JoinController.cxx @@ -279,7 +279,7 @@ void OJoinController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >& WaitObject aWaitCursor( getView() ); m_pAddTableDialog->Update(); } - m_pAddTableDialog->Show( true ); + m_pAddTableDialog->Show(); ::dbaui::notifySystemWindow(getView(),m_pAddTableDialog,::comphelper::mem_fun(&TaskPaneList::AddWindow)); } break; diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index 205cc8615818..ba82e525204f 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -1170,7 +1170,7 @@ bool OSelectionBrowseBox::SaveModified() if ( bAppendRow ) { - RowInserted( GetRowCount()-1, 1, true ); + RowInserted( GetRowCount()-1 ); m_bVisibleRow.push_back(true); ++m_nVisibleCount; } @@ -1700,7 +1700,7 @@ void OSelectionBrowseBox::DuplicateConditionLevel( const sal_uInt16 nLevel) pEntry->SetCriteria( nNewLevel, sValue); if ( nNewLevel == (m_nVisibleCount-BROW_CRIT1_ROW-1) ) { - RowInserted( GetRowCount()-1, 1, true ); + RowInserted( GetRowCount()-1 ); m_bVisibleRow.push_back(true); ++m_nVisibleCount; } @@ -1747,7 +1747,7 @@ void OSelectionBrowseBox::AddCondition( const OTableFieldDescRef& rInfo, const O pEntry->SetCriteria( nLevel, rValue); if(nLevel == (m_nVisibleCount-BROW_CRIT1_ROW-1)) { - RowInserted( GetRowCount()-1, 1, true ); + RowInserted( GetRowCount()-1 ); m_bVisibleRow.push_back(true); ++m_nVisibleCount; } @@ -1775,7 +1775,7 @@ void OSelectionBrowseBox::AddCondition( const OTableFieldDescRef& rInfo, const O pLastEntry->SetCriteria( nLevel, sCriteria); if(nLevel == (m_nVisibleCount-BROW_CRIT1_ROW-1)) { - RowInserted( GetRowCount()-1, 1, true ); + RowInserted( GetRowCount()-1 ); m_bVisibleRow.push_back(true); ++m_nVisibleCount; } @@ -1791,7 +1791,7 @@ void OSelectionBrowseBox::AddCondition( const OTableFieldDescRef& rInfo, const O pTmp->SetCriteria( nLevel, rValue); if(nLevel == (m_nVisibleCount-BROW_CRIT1_ROW-1)) { - RowInserted( GetRowCount()-1, 1, true ); + RowInserted( GetRowCount()-1 ); m_bVisibleRow.push_back(true); ++m_nVisibleCount; } @@ -2029,12 +2029,12 @@ void OSelectionBrowseBox::SetRowVisible(sal_uInt16 _nWhich, bool _bVis) long nId = GetBrowseRow(_nWhich); if (_bVis) { - RowInserted(nId,1); + RowInserted(nId); ++m_nVisibleCount; } else { - RowRemoved(nId,1); + RowRemoved(nId); --m_nVisibleCount; } diff --git a/dbaccess/source/ui/querydesign/querydlg.cxx b/dbaccess/source/ui/querydesign/querydlg.cxx index 417b0b1a748c..5dfbbd5ec23f 100644 --- a/dbaccess/source/ui/querydesign/querydlg.cxx +++ b/dbaccess/source/ui/querydesign/querydlg.cxx @@ -205,7 +205,7 @@ IMPL_LINK_NOARG_TYPED( DlgQryJoin, LBChangeHdl, ListBox&, void ) m_pCBNatural->Check(false); m_pTableControl->enableRelation(false); m_pConnData->AppendConnLine("",""); - m_pPB_OK->Enable(true); + m_pPB_OK->Enable(); } break; } diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx index 90e73412f0fe..36d4f93b4ef8 100644 --- a/dbaccess/source/ui/tabledesign/TEditControl.cxx +++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx @@ -129,7 +129,7 @@ void OTableEditorCtrl::Init() InitCellController(); // Insert the rows - RowInserted(0, m_pRowList->size(), true); + RowInserted(0, m_pRowList->size()); } OTableEditorCtrl::OTableEditorCtrl(vcl::Window* pWindow) @@ -814,7 +814,7 @@ void OTableEditorCtrl::InsertRows( long nRow ) // RowInserted calls CursorMoved. // The UI data should not be stored here. bSaveOnMove = false; - RowInserted( nRow,vInsertedUndoRedoRows.size(), true ); + RowInserted( nRow,vInsertedUndoRedoRows.size() ); bSaveOnMove = true; // Create the Undo-Action @@ -838,11 +838,11 @@ void OTableEditorCtrl::DeleteRows() { // Remove rows m_pRowList->erase( m_pRowList->begin()+nIndex ); - RowRemoved( nIndex, 1 ); + RowRemoved( nIndex ); // Insert the empty row at the end m_pRowList->push_back( std::shared_ptr<OTableRow>(new OTableRow())); - RowInserted( GetRowCount()-1, 1, true ); + RowInserted( GetRowCount()-1 ); nIndex = FirstSelectedRow(); } @@ -871,7 +871,7 @@ void OTableEditorCtrl::InsertNewRows( long nRow ) // Insert the number of selected rows for( long i=nRow; i<(nRow+nInsertRows); i++ ) m_pRowList->insert( m_pRowList->begin()+i ,std::shared_ptr<OTableRow>(new OTableRow())); - RowInserted( nRow, nInsertRows, true ); + RowInserted( nRow, nInsertRows ); GetView()->getController().setModified( sal_True ); InvalidateFeatures(); diff --git a/dbaccess/source/ui/tabledesign/TableUndo.cxx b/dbaccess/source/ui/tabledesign/TableUndo.cxx index 141d318600ea..bcb300c76254 100644 --- a/dbaccess/source/ui/tabledesign/TableUndo.cxx +++ b/dbaccess/source/ui/tabledesign/TableUndo.cxx @@ -275,7 +275,7 @@ void OTableEditorInsUndoAct::Redo() nInsertRow++; } - pTabEdCtrl->RowInserted( m_nInsPos, m_vInsertedRows.size(), true ); + pTabEdCtrl->RowInserted( m_nInsPos, m_vInsertedRows.size() ); pTabEdCtrl->InvalidateHandleColumn(); OTableEditorUndoAct::Redo(); @@ -317,7 +317,7 @@ void OTableEditorInsNewUndoAct::Redo() for( long i=m_nInsPos; i<(m_nInsPos+m_nInsRows); i++ ) pRowList->insert( pRowList->begin()+i,std::shared_ptr<OTableRow>(new OTableRow()) ); - pTabEdCtrl->RowInserted( m_nInsPos, m_nInsRows, true ); + pTabEdCtrl->RowInserted( m_nInsPos, m_nInsRows ); pTabEdCtrl->InvalidateHandleColumn(); OTableEditorUndoAct::Redo(); |