Skip to content

Commit bd365e7

Browse files
used make_unique instead of unique_ptr
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent cce9ca4 commit bd365e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ int main(int argc, char* argv[])
5959
signal(SIGINT, xcpp::stop_handler);
6060

6161
std::string file_name = xeus::extract_filename(argc, argv);
62-
auto interpreter = std::unique_ptr<xcpp::interpreter>(new xcpp::interpreter(argc, argv));
62+
auto interpreter = std::make_unique<xcpp::interpreter>(argc, argv);
6363
std::unique_ptr<xeus::xcontext> context = xeus::make_zmq_context();
6464

6565
if (!file_name.empty())

0 commit comments

Comments
 (0)