diff options
author | Neil <nyamatongwe@gmail.com> | 2013-07-07 16:00:41 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-07-07 16:00:41 +1000 |
commit | 98968508cec9326e493c748b9c042b9fa1c1f47d (patch) | |
tree | f9ee62de24e15d74b60d1dfde20d5825504eb5b2 /qt/ScintillaEditBase/PlatQt.cpp | |
parent | 36c26333868324106f72c5c233442be424361de3 (diff) | |
download | scintilla-mirror-98968508cec9326e493c748b9c042b9fa1c1f47d.tar.gz |
Allow building with older versions of Visual C++ again.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
-rw-r--r-- | qt/ScintillaEditBase/PlatQt.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<char> 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) { |