Commit 9def5014 authored by Stephen Kelly's avatar Stephen Kelly
Browse files

QString: Avoid searching for a needle which is longer than the hay


Avoid incurring the cost of converting the latin1 data in that case.

Several existing QString unit tests excercise the new code path.

Task-number: QTBUG-52617
Change-Id: I27256d9e7db34f09543e244a79d754ff7932f0d0
Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
Showing with 3 additions and 0 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment