diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-24 14:09:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-24 15:48:51 +0000 |
commit | 3a74745367a73ed9351379fc32bbe9253cdae697 (patch) | |
tree | 0fec3ca84576a0f51e4f48cdda82b67e7282c3ab /sfx2 | |
parent | c9126dfbabcde1bf8b157942a5f5134ad547b957 (diff) |
vector::data seems more natural than &vector::front
Change-Id: I0ce48075ad186cf1f9bd3e13fa76269fa9819af1
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/oleprops.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/sidebar/Theme.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx index 8cf5f31a50e2..6866aa43cfbb 100644 --- a/sfx2/source/doc/oleprops.cxx +++ b/sfx2/source/doc/oleprops.cxx @@ -277,9 +277,9 @@ OUString SfxOleStringHelper::ImplLoadString8( SvStream& rStrm ) const { // load character buffer ::std::vector< sal_Char > aBuffer( static_cast< size_t >( nSize + 1 ), 0 ); - rStrm.ReadBytes(&aBuffer.front(), static_cast<std::size_t>(nSize)); + rStrm.ReadBytes(aBuffer.data(), static_cast<std::size_t>(nSize)); // create string from encoded character array - aValue = OUString( &aBuffer.front(), strlen( &aBuffer.front() ), GetTextEncoding() ); + aValue = OUString(aBuffer.data(), strlen(aBuffer.data()), GetTextEncoding()); } return aValue; } @@ -308,7 +308,7 @@ OUString SfxOleStringHelper::ImplLoadString16( SvStream& rStrm ) rStrm.SeekRel( 2 ); // create string from character array aBuffer.push_back( 0 ); - aValue = OUString( &aBuffer.front() ); + aValue = OUString(aBuffer.data()); } return aValue; } diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx index 097e4df762c2..706a49848bb9 100644 --- a/sfx2/source/sidebar/Theme.cxx +++ b/sfx2/source/sidebar/Theme.cxx @@ -568,7 +568,7 @@ css::uno::Sequence<css::beans::Property> SAL_CALL Theme::getProperties() } return css::uno::Sequence<css::beans::Property>( - &aProperties.front(), + aProperties.data(), aProperties.size()); } |