diff options
Diffstat (limited to 'kbabel/common/stringdistance.cpp')
-rw-r--r-- | kbabel/common/stringdistance.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kbabel/common/stringdistance.cpp b/kbabel/common/stringdistance.cpp index 8de11c98..3ffc4194 100644 --- a/kbabel/common/stringdistance.cpp +++ b/kbabel/common/stringdistance.cpp @@ -20,11 +20,11 @@ In addition, as a special exception, the copyright holders give permission to link the code of this program with any edition of - the Qt library by Trolltech AS, Norway (or with modified versions - of Qt that use the same license as Qt), and distribute linked + the TQt library by Trolltech AS, Norway (or with modified versions + of TQt that use the same license as TQt), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than - Qt. If you modify this file, you may extend this exception to + TQt. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. @@ -41,7 +41,7 @@ const int Distance::editCost_replace_base = 1; const int HammingDistance::editCost = 1; -const int LevenshteinDistance::editCost_replace = 1; +const int LevenshteinDistance::editCost_tqreplace = 1; const int LevenshteinDistance::editCost_insert = 1; const int LevenshteinDistance::editCost_delete = 1; @@ -166,9 +166,9 @@ double LevenshteinDistance::calculate(const TQString& left_string, const TQStri { for(r = 1; r < right_size; r++) { - tmp_value = QMIN( ( D(l-1,r) + editCost_delete ), + tmp_value = TQMIN( ( D(l-1,r) + editCost_delete ), ( D(l-1,r-1) + nodeDistance(left_string[l-1], right_string[r-1]) ) ) ; - D(l,r) = QMIN( tmp_value, + D(l,r) = TQMIN( tmp_value, ( D(l,r-1) + editCost_insert ) ); } } |