diff options
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) { | 
