summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/datatest.cpp b/datatest.cpp
index a6e3b8d9..6e4e8a97 100644
--- a/datatest.cpp
+++ b/datatest.cpp
@@ -72,10 +72,8 @@ bool Readline(std::istream& stream, std::string& line)
break;
}
- // Grow by 1.5x as needed
- //if (line.capacity() == 0)
- // line.reserve(line.size()*3/2);
-
+ // Let string class manage its own capacity.
+ // The string will grow as needed.
line.push_back(static_cast<char>(ch));
}