summaryrefslogtreecommitdiffstats
path: root/include/connectivity/FValue.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-03-17 21:34:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-18 09:49:50 +0100
commite5230535877e30c3b874495e8794faa3a42d8017 (patch)
tree6678613797f3cfa80a08455a4080ce9e653f9781 /include/connectivity/FValue.hxx
parentoffapi: improve description of XPDFDecomposer and PDFTools (diff)
downloadcore-e5230535877e30c3b874495e8794faa3a42d8017.tar.gz
core-e5230535877e30c3b874495e8794faa3a42d8017.zip
simplify ORefVector code
by making it extend std::vector - it wants to be a ref-counted vector, so let it be, and we can simplify the usage sites Change-Id: I93ff6ee1522da965e16223dca171401d36fd67b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90664 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/connectivity/FValue.hxx')
-rw-r--r--include/connectivity/FValue.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/connectivity/FValue.hxx b/include/connectivity/FValue.hxx
index 44ec1e2393d6..9740b6712ac3 100644
--- a/include/connectivity/FValue.hxx
+++ b/include/connectivity/FValue.hxx
@@ -503,7 +503,7 @@ namespace connectivity
OValueRefVector(){}
OValueRefVector(size_t _st) : ODeleteVector< ORowSetValueDecoratorRef >(_st)
{
- for (auto & elem : get())
+ for (auto & elem : *this)
elem = new ORowSetValueDecorator;
}
};
@@ -513,7 +513,7 @@ namespace connectivity
{
::std::vector<sal_Int32> m_nParameterIndexes;
public:
- OAssignValues(Vector::size_type n) : OValueRefVector(n),m_nParameterIndexes(n+1,SQL_NO_PARAMETER){}
+ OAssignValues(size_type n) : OValueRefVector(n),m_nParameterIndexes(n+1,SQL_NO_PARAMETER){}
void setParameterIndex(sal_Int32 _nId,sal_Int32 _nParameterIndex) { m_nParameterIndexes[_nId] = _nParameterIndex;}
sal_Int32 getParameterIndex(sal_Int32 _nId) const { return m_nParameterIndexes[_nId]; }