Skip to content

Rewrite KCodecs::codecForName to take a view as argument

Volker Krause requested to merge work/vkrause/view-based-codecs-for-name into master

This avoids the allocation in the previous const char* overload, and the additional potential allocation for the toLower() call.

While at it, also remove the mutex-protected heap allocated codec hash, that predates C++11 semantics and can be done easier nowadays.

Merge request reports