mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Internals: Add more const. No functional change intended.
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ bool VString::isWhitespace(const string& str) {
|
||||
}
|
||||
|
||||
double VString::parseDouble(const string& str, bool* successp) {
|
||||
char* strgp = new char[str.size() + 1];
|
||||
char* const strgp = new char[str.size() + 1];
|
||||
char* dp = strgp;
|
||||
if (successp) *successp = true;
|
||||
for (const char* sp = str.c_str(); *sp; ++sp) {
|
||||
|
||||
Reference in New Issue
Block a user