Commit af4aaea
committed
Use string::npos to check if substring was found
Instead of checking for the value -1 directly, use string::npos to
determine when calls to string::find did not find the target substring.
This also fixes a compiler warning about comparing an unsigned variable
to a signed value.1 parent c98a475 commit af4aaea
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
0 commit comments