[Bf-blender-cvs] [806b22d1309] blender-v2.92-release: Cleanup: typo

Jacques Lucke noreply at git.blender.org
Wed Feb 10 16:53:06 CET 2021


Commit: 806b22d13093f7f90bc53849290db6b10a1cbe7e
Author: Jacques Lucke
Date:   Wed Feb 10 16:45:02 2021 +0100
Branches: blender-v2.92-release
https://developer.blender.org/rB806b22d13093f7f90bc53849290db6b10a1cbe7e

Cleanup: typo

Committing this to the release branch, to avoid merge conflicts with an
upcoming fix.

===================================================================

M	source/blender/blenlib/intern/string_search.cc

===================================================================

diff --git a/source/blender/blenlib/intern/string_search.cc b/source/blender/blenlib/intern/string_search.cc
index d64587b85b4..22ba1b07e9c 100644
--- a/source/blender/blenlib/intern/string_search.cc
+++ b/source/blender/blenlib/intern/string_search.cc
@@ -250,7 +250,7 @@ static int get_shortest_word_index_that_startswith(StringRef query,
                                                    Span<bool> word_is_usable)
 {
   int best_word_size = INT32_MAX;
-  int bset_word_index = -1;
+  int best_word_index = -1;
   for (const int i : words.index_range()) {
     if (!word_is_usable[i]) {
       continue;
@@ -258,11 +258,11 @@ static int get_shortest_word_index_that_startswith(StringRef query,
     StringRef word = words[i];
     if (word.startswith(query)) {
       if (word.size() < best_word_size) {
-        bset_word_index = i;
+        best_word_index = i;
       }
     }
   }
-  return bset_word_index;
+  return best_word_index;
 }
 
 static int get_word_index_that_fuzzy_matches(StringRef query,



More information about the Bf-blender-cvs mailing list