mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 17:18:11 -04:00
Add a TODO comment in ByteVector::replace().
This commit is contained in:
parent
6a9db50c03
commit
887f3b28e5
@ -489,6 +489,8 @@ ByteVector &ByteVector::replace(char oldByte, char newByte)
|
||||
|
||||
ByteVector &ByteVector::replace(const ByteVector &pattern, const ByteVector &with)
|
||||
{
|
||||
// TODO: This takes O(n!) time in the worst case. Rewrite it to run in O(n) time.
|
||||
|
||||
if(pattern.size() == 0 || pattern.size() > size())
|
||||
return *this;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user