HResource: Fixed -Weffc++ related (and spurious) compilation errors.
string::distance: Replace HPointer<> usage with HResource<>.