diff options
author | Neil <nyamatongwe@gmail.com> | 2017-04-07 19:44:59 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-04-07 19:44:59 +1000 |
commit | 1595b1fbedf5587bc7c60cc7a1156ac1bca69f59 (patch) | |
tree | 351e4826ae9f0f2996ac82d8c0c89c428bcb30b2 /src/AutoComplete.cxx | |
parent | d97e0e4187f3130e2f06bc032040bc25485a2ece (diff) | |
download | scintilla-mirror-1595b1fbedf5587bc7c60cc7a1156ac1bca69f59.tar.gz |
Prefer C++ static cast over C-style casts.
Diffstat (limited to 'src/AutoComplete.cxx')
-rw-r--r-- | src/AutoComplete.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index 3de39bfcc..1cbc68c3a 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -156,7 +156,7 @@ void AutoComplete::SetList(const char *list) { Sorter IndexSort(this, list); sortMatrix.clear(); - for (int i = 0; i < (int)IndexSort.indices.size() / 2; ++i) + for (int i = 0; i < static_cast<int>(IndexSort.indices.size()) / 2; ++i) sortMatrix.push_back(i); std::sort(sortMatrix.begin(), sortMatrix.end(), IndexSort); if (autoSort == SC_ORDER_CUSTOM || sortMatrix.size() < 2) { @@ -186,7 +186,7 @@ void AutoComplete::SetList(const char *list) { item[wordLen] = '\0'; sortedList += item; } - for (int i = 0; i < (int)sortMatrix.size(); ++i) + for (int i = 0; i < static_cast<int>(sortMatrix.size()); ++i) sortMatrix[i] = i; lb->SetList(sortedList.c_str(), separator, typesep); } |