diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-03-19 19:19:58 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-03-19 19:19:58 -0400 |
commit | 2dd1082c78f7db19d127ccb71ff82ea117f78b98 (patch) | |
tree | f5544f4117dc324121aee1719a0859e60acc8930 /datatest.cpp | |
parent | 93c4fc2b8adb25d324101e50f7f71c9cb74fc7c3 (diff) | |
download | cryptopp-git-2dd1082c78f7db19d127ccb71ff82ea117f78b98.tar.gz |
Update datatest.cpp
Diffstat (limited to 'datatest.cpp')
-rw-r--r-- | datatest.cpp | 6 |
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));
}
|