sd/source/core/stlfamily.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9530f42eb3ec65318af64f85dd924e81649d8c64
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Oct 9 14:55:46 2025 +0100
Commit:     Miklos Vajna <[email protected]>
CommitDate: Fri Oct 10 08:54:03 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/+/192118
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/sd/source/core/stlfamily.cxx b/sd/source/core/stlfamily.cxx
index 9696668dc326..75c2fe2a84ef 100644
--- a/sd/source/core/stlfamily.cxx
+++ b/sd/source/core/stlfamily.cxx
@@ -252,7 +252,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() );
     }
 }
 

Reply via email to