mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-07 00:11:56 +00:00
Remove .c_str() from stringf parameters
This commit is contained in:
parent
acac60302d
commit
e7f210b817
90 changed files with 773 additions and 773 deletions
|
@ -265,7 +265,7 @@ struct arg_map_t
|
|||
// (something like macro_foobar_arg2). This doesn't include the leading backtick.
|
||||
static std::string str_token(const std::string ¯o_name, int pos)
|
||||
{
|
||||
return stringf("macro_%s_arg%d", macro_name.c_str(), pos);
|
||||
return stringf("macro_%s_arg%d", macro_name, pos);
|
||||
}
|
||||
|
||||
// Return definitions for the macro arguments (so that substituting in the macro body and
|
||||
|
|
|
@ -323,7 +323,7 @@
|
|||
|
||||
// create a unique name for the genvar
|
||||
std::string old_str = decl->str;
|
||||
std::string new_str = stringf("$genfordecl$%d$%s", autoidx++, old_str.c_str());
|
||||
std::string new_str = stringf("$genfordecl$%d$%s", autoidx++, old_str);
|
||||
|
||||
// rename and move the genvar declaration to the containing description
|
||||
decl->str = new_str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue