diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-05-22 13:49:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-05-22 16:35:20 +0200 |
commit | c18e2ea2a52fc171c50fcb22d431e94c6aececc5 (patch) | |
tree | a63721b18626947e5278a51feb7fd64604e80eee /framework/source/recording/dispatchrecorder.cxx | |
parent | Spell out element access explicitly in test code (diff) | |
download | core-c18e2ea2a52fc171c50fcb22d431e94c6aececc5.tar.gz core-c18e2ea2a52fc171c50fcb22d431e94c6aececc5.zip |
New loplugin:data
...following up on 1453c2c8f13bac64ecd1981af7cebf1c421808ac "prefer vector::data
to &vector[0]"
Change-Id: I7c113747d92d144a521d49b89384dd8bf1215c01
Reviewed-on: https://gerrit.libreoffice.org/72765
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'framework/source/recording/dispatchrecorder.cxx')
-rw-r--r-- | framework/source/recording/dispatchrecorder.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/recording/dispatchrecorder.cxx b/framework/source/recording/dispatchrecorder.cxx index 7f67daae3315..31fac8710c45 100644 --- a/framework/source/recording/dispatchrecorder.cxx +++ b/framework/source/recording/dispatchrecorder.cxx @@ -89,7 +89,7 @@ static Sequence< Any > make_seq_out_of_struct( vec.reserve( reinterpret_cast<typelib_CompoundTypeDescription *>(pTD)->nMembers ); // good guess flatten_struct_members( &vec, val.getValue(), reinterpret_cast<typelib_CompoundTypeDescription *>(pTD) ); TYPELIB_DANGER_RELEASE( pTD ); - return Sequence< Any >( &vec[ 0 ], vec.size() ); + return Sequence< Any >( vec.data(), vec.size() ); } DispatchRecorder::DispatchRecorder( const css::uno::Reference< css::uno::XComponentContext >& xContext ) |