logoalt Hacker News

jeffbeelast Friday at 8:43 PM2 repliesview on HN

-


Replies

matt_knlast Friday at 9:39 PM

I'm looking at the code but I don't quite see that?

  auto start= result.indexOf("http://");
  ...
  auto end= result.indexOf("\r", start);
  ...
  m_describeUrl= result.sliced(start, end - start);
I don't think end can ever be < start (other than < 0 if not found, which is handled).
show 1 reply
vablingslast Friday at 9:11 PM

Average "well written" C++ program that is free of bugs.

show 1 reply