aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-07-07 16:00:41 +1000
committerNeil <nyamatongwe@gmail.com>2013-07-07 16:00:41 +1000
commitf701d6f48d8671307a7c74b7d8a008abed9c47bb (patch)
treef371f22673122f7d2b80dc838c5d30f3b89f63c6
parentac98547e10ccacec0a653866aba273f4b2765e93 (diff)
downloadscintilla-mirror-f701d6f48d8671307a7c74b7d8a008abed9c47bb.tar.gz
Allow building with older versions of Visual C++ again.
-rw-r--r--qt/ScintillaEditBase/PlatQt.cpp6
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) {