sd/source/core/stlfamily.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit afe1b6991921cc96b8d22da6d73b988b5e2634a3 Author: Caolán McNamara <[email protected]> AuthorDate: Thu Oct 9 14:55:46 2025 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Oct 9 18:19:40 2025 +0200 Error: attempt to dereference a past-the-end iterator. if aNames is empty Change-Id: I80fbcf1b78aaac09fbf130d01f412d7517eb9a28 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192115 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Jenkins diff --git a/sd/source/core/stlfamily.cxx b/sd/source/core/stlfamily.cxx index 2139e3e6930c..509a2106722a 100644 --- a/sd/source/core/stlfamily.cxx +++ b/sd/source/core/stlfamily.cxx @@ -251,7 +251,7 @@ Sequence< OUString > SAL_CALL SdStyleFamily::getElementNames() SdStyleSheet* pSdStyle = static_cast< SdStyleSheet* >( pStyle ); aNames.push_back(pSdStyle->GetApiName()); } - return Sequence< OUString >( &(*aNames.begin()), aNames.size() ); + return Sequence< OUString >( aNames.data(), aNames.size() ); } }
