diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 08:20:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 14:46:37 +0200 |
commit | fd6d01c95594746602090972d5edabe1b9f281c3 (patch) | |
tree | 9032926a32661fb69424efc5ea798c984e07051c /dbaccess/source/ui/tabledesign | |
parent | aac4f0660f9599bbf5f74c7ce683d7147b5bd1e7 (diff) |
loplugin:sequentialassign in dbaccess..desktop
Change-Id: I3f3108daf208fa8c6be90b28da5503846c27732e
Reviewed-on: https://gerrit.libreoffice.org/70698
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/tabledesign')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index e8335fbce67e..023b48e115bf 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -1030,8 +1030,7 @@ void OTableController::alterColumns() bAutoIncrement != pField->IsAutoIncrement())&& xColumnFactory.is()) { - Reference<XPropertySet> xNewColumn; - xNewColumn = xColumnFactory->createDataDescriptor(); + Reference<XPropertySet> xNewColumn = xColumnFactory->createDataDescriptor(); ::dbaui::setColumnProperties(xNewColumn,pField); // first try to alter the column bool bNotOk = false; @@ -1082,8 +1081,7 @@ void OTableController::alterColumns() { // we can't find the column so we could try it with the index before we drop and append a new column try { - Reference<XPropertySet> xNewColumn; - xNewColumn = xColumnFactory->createDataDescriptor(); + Reference<XPropertySet> xNewColumn = xColumnFactory->createDataDescriptor(); ::dbaui::setColumnProperties(xNewColumn,pField); xAlter->alterColumnByIndex(nPos,xNewColumn); if(xColumns->hasByName(pField->GetName())) |