Internals: Remove some unneeded c_str() calls. No functional change.

This commit is contained in:
Wilson Snyder
2015-10-29 22:19:51 -04:00
parent 0d7b1a7dc7
commit faf5e1de51
3 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ private:
if (!nodep->isToggleCoverable())
return "Not relevant signal type";
if (!v3Global.opt.coverageUnderscore()) {
if (prettyName.c_str()[0] == '_')
if (prettyName[0] == '_')
return "Leading underscore";
if (prettyName.find("._") != string::npos)
return "Inlined leading underscore";