mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
s/SafeStringValue/StringValue/
The macro SafeStringValue() became just StringValue() in c5c05460ac
,
and it is deprecated nowadays.
This patch replaces remaining macro usage. Some occurrences are left in
ext/stringio and ext/win32ole, they should be fixed upstream.
The macro itself is not deleted, because it may be used in extensions.
This commit is contained in:
parent
774eef692c
commit
aad246feba
6 changed files with 18 additions and 18 deletions
|
@ -2482,12 +2482,12 @@ rb_check_argv(int argc, VALUE *argv)
|
|||
}
|
||||
prog = RARRAY_AREF(tmp, 0);
|
||||
argv[0] = RARRAY_AREF(tmp, 1);
|
||||
SafeStringValue(prog);
|
||||
StringValue(prog);
|
||||
StringValueCStr(prog);
|
||||
prog = rb_str_new_frozen(prog);
|
||||
}
|
||||
for (i = 0; i < argc; i++) {
|
||||
SafeStringValue(argv[i]);
|
||||
StringValue(argv[i]);
|
||||
argv[i] = rb_str_new_frozen(argv[i]);
|
||||
StringValueCStr(argv[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue