From 5239900ac8cc1872bd35a3dbdc055997a93903db Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 2 Apr 2020 21:26:07 -0400 Subject: [PATCH] notcurses-input: upgrade shared_ptr to unique_ptr --- src/input/input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/input.cpp b/src/input/input.cpp index 2fa177f4e..cb20ac09c 100644 --- a/src/input/input.cpp +++ b/src/input/input.cpp @@ -134,7 +134,7 @@ char32_t printutf8(char32_t kp){ // Dim all text on the plane by the same amount. This will stack for // older text, and thus clearly indicate the current output. static bool -dim_rows(std::shared_ptr n){ +dim_rows(std::unique_ptr& n){ int y, x; Cell c; for(y = 2 ; y < dimy ; ++y){ @@ -176,7 +176,7 @@ int main(void){ if(!nc.mouse_enable ()){ return EXIT_FAILURE; } - std::shared_ptr n(nc.get_stdplane ()); + std::unique_ptr n(nc.get_stdplane ()); nc.get_term_dim(&dimy, &dimx); n->set_fg(0); n->set_bg(0xbb64bb);