mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-06 17:51:36 +02:00
Apparently you can't use add empty strings as printf() parameters.
This commit is contained in:
parent
3b4d7a723d
commit
aee3bd76c8
@ -1271,6 +1271,11 @@ std::string String::to_string() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void String::print() const {
|
void String::print() const {
|
||||||
|
if (_size == 0) {
|
||||||
|
::printf("\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
::printf("%s\n", c_str());
|
::printf("%s\n", c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user