diff options
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 513c9a9b8..b4a4029f6 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -97,7 +97,7 @@ void Action::Create(actionType at_, Sci::Position position_, const char *data_, position = position_; at = at_; if (lenData_) { - data = std::unique_ptr<char []>(new char[lenData_]); + data = std::make_unique<char[]>(lenData_); memcpy(&data[0], data_, lenData_); } lenData = lenData_; |