sqliterator: Use rtl::Reference::get() instead of &*
Using &* can be problematic if the pointer is null. In this case it doesn’t matter, but using Reference::get() is probably easier to understand anyway. This also paves the way for a later compiler plugin to check for this. Change-Id: I2361761496648eaaa1e245912ac19aa130b38863 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211842 Tested-by: Jenkins Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
This commit is contained in:
@@ -769,7 +769,7 @@ void OSQLParseTreeIterator::getColumnRange( const OSQLParseNode* _pColumnRef,
|
|||||||
OUString& _rTableRange,
|
OUString& _rTableRange,
|
||||||
OUString& _out_rColumnAliasIfPresent ) const
|
OUString& _out_rColumnAliasIfPresent ) const
|
||||||
{
|
{
|
||||||
lcl_getColumnRange( _pColumnRef, m_pImpl->m_xConnection, _rColumnName, _rTableRange, &*m_aSelectColumns, _out_rColumnAliasIfPresent );
|
lcl_getColumnRange( _pColumnRef, m_pImpl->m_xConnection, _rColumnName, _rTableRange, m_aSelectColumns.get(), _out_rColumnAliasIfPresent );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user