diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-18 16:06:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-19 09:31:43 +0200 |
commit | c087e24c683dc402c442bb0a3dbea974000b72b2 (patch) | |
tree | 44737253b1a5ed29d8a68ad57461c76ad52b31b5 /dbaccess | |
parent | ba91bc19023f3d7158ef9e394665eb5eb89c4037 (diff) |
fix caching in OResultColumn
this obviously never worked, because the template method was never
updating the cache field, just a copy of the cache field
Change-Id: Ibeed9a0f0764a4d398548c05aed466cd6cdfc266
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/resultcolumn.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/resultcolumn.cxx b/dbaccess/source/core/api/resultcolumn.cxx index 96ce95ad646c..9691217983c8 100644 --- a/dbaccess/source/core/api/resultcolumn.cxx +++ b/dbaccess/source/core/api/resultcolumn.cxx @@ -167,7 +167,7 @@ void OResultColumn::disposing() namespace { template< typename T > - void obtain( Any& _out_rValue, ::boost::optional< T > _rCache, const sal_Int32 _nPos, const Reference < XResultSetMetaData >& _rxResultMeta, T (SAL_CALL XResultSetMetaData::*Getter)( sal_Int32 ) ) + void obtain( Any& _out_rValue, ::boost::optional< T > & _rCache, const sal_Int32 _nPos, const Reference < XResultSetMetaData >& _rxResultMeta, T (SAL_CALL XResultSetMetaData::*Getter)( sal_Int32 ) ) { if ( !_rCache ) _rCache.reset( (_rxResultMeta.get()->*Getter)( _nPos ) ); |