Simplified printValue(const char *const val).

This commit is contained in:
Boris Perovic 2015-08-17 13:22:03 +02:00 committed by sftnight
parent e7d605bccc
commit 1aa5329d74

View File

@ -753,13 +753,9 @@ namespace cling {
if (!val) {
strm << "<<<NULL>>>";
} else {
const char *cobj = val;
int i = 0;
strm << "\"";
while (*cobj != 0) {
for (const char *cobj = val; *cobj != 0; ++cobj) {
strm << *cobj;
cobj++;
i++;
}
strm << "\"";
}