mirror of
https://github.com/august-alt/gpui.git
synced 2025-03-14 12:58:39 +03:00
fix: remove case-insensitive compare
This commit is contained in:
parent
f2ab986233
commit
1fc216dc74
@ -138,14 +138,13 @@ void cleanUpListInRegistry(AbstractRegistrySource &source, const std::string &ke
|
||||
source.clearKey(key);
|
||||
}
|
||||
|
||||
QString _prefix = QString::fromStdString(prefix);
|
||||
std::vector<std::string> valueNames = source.getNonSpecialValueNames(key);
|
||||
|
||||
// TODO: make case-insensitive.
|
||||
// clean-up all values that contain `prefix` prefix (case-sensitive)
|
||||
for (auto &value : valueNames) {
|
||||
if (value.size() > prefix.size() &&
|
||||
QString::fromUtf8(value.c_str(), prefix.size()).compare(_prefix, Qt::CaseInsensitive) == 0)
|
||||
strncmp(value.c_str(), prefix.c_str(), prefix.size()) == 0)
|
||||
{
|
||||
source.clearValue(key, value);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user