notcurses-input: upgrade shared_ptr to unique_ptr

pull/434/head
nick black 4 years ago committed by Nick Black
parent 5e27499194
commit 5239900ac8

@ -134,7 +134,7 @@ char32_t printutf8(char32_t kp){
// Dim all text on the plane by the same amount. This will stack for // Dim all text on the plane by the same amount. This will stack for
// older text, and thus clearly indicate the current output. // older text, and thus clearly indicate the current output.
static bool static bool
dim_rows(std::shared_ptr<Plane> n){ dim_rows(std::unique_ptr<Plane>& n){
int y, x; int y, x;
Cell c; Cell c;
for(y = 2 ; y < dimy ; ++y){ for(y = 2 ; y < dimy ; ++y){
@ -176,7 +176,7 @@ int main(void){
if(!nc.mouse_enable ()){ if(!nc.mouse_enable ()){
return EXIT_FAILURE; return EXIT_FAILURE;
} }
std::shared_ptr<Plane> n(nc.get_stdplane ()); std::unique_ptr<Plane> n(nc.get_stdplane ());
nc.get_term_dim(&dimy, &dimx); nc.get_term_dim(&dimy, &dimx);
n->set_fg(0); n->set_fg(0);
n->set_bg(0xbb64bb); n->set_bg(0xbb64bb);

Loading…
Cancel
Save