warn about use of uninitialized iterators

RESOLVED WONTFIX

Status

()

Core
String
--
enhancement
RESOLVED WONTFIX
16 years ago
5 years ago

People

(Reporter: timeless, Assigned: jag (Peter Annema))

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
nsACString::const_iterator A,B,C;
searchable.BeginReading(A);
searchable.EndReading(C);

while (B != C) ++B;

ok, so what we have here is some condensed buggy code.

anyone who isn't the author or compiler will read it and quickly note that B is never initialized.

What I'm asking for is a debug warning/assert to complain about the use of an uninitialized iterator.
QA Contact: scc → string

Comment 1

5 years ago
char* is the new iterator and the compiler can warn about that one. WONTFIX.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.