From c18e2ea2a52fc171c50fcb22d431e94c6aececc5 Mon Sep 17 00:00:00 2001
From: Stephan Bergmann <sbergman@redhat.com>
Date: Wed, 22 May 2019 13:49:30 +0200
Subject: 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>
---
 i18npool/source/textconversion/genconv_dict.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'i18npool')

diff --git a/i18npool/source/textconversion/genconv_dict.cxx b/i18npool/source/textconversion/genconv_dict.cxx
index f165c3195c59..f63d94833953 100644
--- a/i18npool/source/textconversion/genconv_dict.cxx
+++ b/i18npool/source/textconversion/genconv_dict.cxx
@@ -402,7 +402,7 @@ void make_stc_word(FILE *sfp, FILE *cfp)
     sal_uInt16 STC_WordIndex[0x100];
 
     if (count_S2T > 0) {
-        qsort(&STC_WordEntry_S2T[0], count_S2T, sizeof(Index), Index_comp);
+        qsort(STC_WordEntry_S2T.data(), count_S2T, sizeof(Index), Index_comp);
 
         fprintf(cfp, "\nstatic const sal_uInt16 STC_WordEntry_S2T[] = {");
         count = 0;
@@ -435,7 +435,7 @@ void make_stc_word(FILE *sfp, FILE *cfp)
     }
 
     if (count_T2S > 0) {
-        qsort(&STC_WordEntry_T2S[0], count_T2S, sizeof(Index), Index_comp);
+        qsort(STC_WordEntry_T2S.data(), count_T2S, sizeof(Index), Index_comp);
 
         fprintf(cfp, "\nstatic const sal_uInt16 STC_WordEntry_T2S[] = {");
         count = 0;
-- 
cgit