ncls: use c++ iostreams everywhere

pull/1458/head
nick black 4 years ago
parent 57f8dc4390
commit 3e15a9423e
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -124,7 +124,7 @@ nctree_inner_create(ncplane* n, const struct nctree_options* opts){
nctree* nctree_create(ncplane* n, const struct nctree_options* opts){
if(n == NULL){
return -1;
return NULL;
}
notcurses* nc = ncplane_notcurses(n);
if(opts->flags){

@ -200,7 +200,7 @@ int main(int argc, char* const * argv){
while((c = getopt_long(argc, argv, "Va:b:s:dhlLR", opts, &lidx)) != -1){
switch(c){
case 'V':
printf("ncls version %s\n", notcurses_version());
std::cout << "ncls version " << notcurses_version() << std::endl;
exit(EXIT_SUCCESS);
case 'a':
if(strcasecmp(optarg, "left") == 0){

Loading…
Cancel
Save