diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 14:39:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 20:23:38 +0200 |
commit | 3c6cb83b80b502975dce89c02401a064872b5ea3 (patch) | |
tree | 77ca629355406668a34332470c475feffe40e2ec /sw/source/ui/dbui/dbinsdlg.cxx | |
parent | 7b4f643f4feb28fdc92b3da7a95d0f1c7286d01a (diff) |
loplugin:sequenceloop in sw
Change-Id: Icda7c89b396e5607ca847c0a8393cb27a2d50c6c
Reviewed-on: https://gerrit.libreoffice.org/77530
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/dbui/dbinsdlg.cxx')
-rw-r--r-- | sw/source/ui/dbui/dbinsdlg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx index b994a4e8ed44..dc595d295667 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -247,7 +247,7 @@ SwInsertDBColAutoPilot::SwInsertDBColAutoPilot( SwView& rView, } } Reference <XNameAccess> xCols = xColSupp->getColumns(); - Sequence<OUString> aColNames = xCols->getElementNames(); + const Sequence<OUString> aColNames = xCols->getElementNames(); for (const OUString& rColName : aColNames) { std::unique_ptr<SwInsDBColumn> pNew(new SwInsDBColumn( rColName )); @@ -1482,7 +1482,7 @@ void SwInsertDBColAutoPilot::ImplCommit() { Sequence <OUString> aNames = GetNodeNames(OUString()); //remove entries that contain this data source + table at first - for(OUString const & nodeName : aNames) + for(OUString const & nodeName : std::as_const(aNames)) { Sequence<OUString> aSourceNames(2); OUString* pSourceNames = aSourceNames.getArray(); @@ -1552,7 +1552,7 @@ void SwInsertDBColAutoPilot::ImplCommit() sColumnInsertNode += "0"; sColumnInsertNode += OUString::number( nCol ); - Sequence <OUString> aSubNodeNames = lcl_CreateSubNames(sColumnInsertNode); + const Sequence <OUString> aSubNodeNames = lcl_CreateSubNames(sColumnInsertNode); Sequence<PropertyValue> aSubValues(aSubNodeNames.getLength()); PropertyValue* pSubValues = aSubValues.getArray(); sal_Int32 i = 0; @@ -1592,7 +1592,7 @@ void SwInsertDBColAutoPilot::ImplCommit() void SwInsertDBColAutoPilot::Load() { - Sequence<OUString> aNames = GetNodeNames(OUString()); + const Sequence<OUString> aNames = GetNodeNames(OUString()); SvNumberFormatter& rNFormatr = *pView->GetWrtShell().GetNumberFormatter(); for(OUString const & nodeName : aNames) { @@ -1624,7 +1624,7 @@ void SwInsertDBColAutoPilot::Load() pNewData->bIsEmptyHeadln = *o3tl::doAccess<bool>(pDataSourceProps[10]); const OUString sSubNodeName(nodeName + "/ColumnSet/"); - Sequence <OUString> aSubNames = GetNodeNames(sSubNodeName); + const Sequence <OUString> aSubNames = GetNodeNames(sSubNodeName); for(const OUString& rSubName : aSubNames) { Sequence <OUString> aSubNodeNames = |