summaryrefslogtreecommitdiff
path: root/src/mongo/shell/linenoise_utf8.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/linenoise_utf8.h')
-rw-r--r--src/mongo/shell/linenoise_utf8.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/shell/linenoise_utf8.h b/src/mongo/shell/linenoise_utf8.h
index d5d4c6db7d9..dca7a8b0ef4 100644
--- a/src/mongo/shell/linenoise_utf8.h
+++ b/src/mongo/shell/linenoise_utf8.h
@@ -141,10 +141,7 @@ struct UtfStringMixin {
UtfStringMixin() : _len(0), _cap(0), _chars(0) {}
UtfStringMixin(const UtfStringMixin& other) // copies like std::string
- : _len(other._len),
- _cap(other._len + 1),
- _chars(other._chars),
- _str(new char_t[_cap]) {
+ : _len(other._len), _cap(other._len + 1), _chars(other._chars), _str(new char_t[_cap]) {
memcpy(_str.get(), other._str.get(), _cap * sizeof(char_t));
}