From f701d6f48d8671307a7c74b7d8a008abed9c47bb Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 7 Jul 2013 16:00:41 +1000 Subject: Allow building with older versions of Visual C++ again. --- qt/ScintillaEditBase/PlatQt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qt/ScintillaEditBase/PlatQt.cpp') diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index ba1f197cc..f7eca8575 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -980,7 +980,7 @@ void ListBoxImpl::SetList(const char *list, char separator, char typesep) Clear(); int count = strlen(list) + 1; std::vector words(list, list+count); - char *startword = words.data(); + char *startword = &words[0]; char *numword = NULL; int i = 0; for (; words[i]; i++) { @@ -989,10 +989,10 @@ void ListBoxImpl::SetList(const char *list, char separator, char typesep) if (numword) *numword = '\0'; Append(startword, numword?atoi(numword + 1):-1); - startword = words.data() + i + 1; + startword = &words[0] + i + 1; numword = NULL; } else if (words[i] == typesep) { - numword = words.data() + i; + numword = &words[0] + i; } } if (startword) { -- cgit v1.2.3