Add a note why we can't use rightRef

This commit is contained in:
Albert Astals Cid 2012-02-02 19:27:57 +01:00
parent d6c1ead1b0
commit 12ab23e631

View file

@ -985,8 +985,8 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const
// entity
int resStrLen = 0, resQueryLen = 0;
int offset = len - min;
// Note len is not str.length() so we can't use rightRef here
const int offset = len - min;
if ( !comparer( str.midRef(offset, min ), query.midRef( j - min + 1, min ),
&resStrLen, &resQueryLen ) )
{