ncpp: normalize Notcurses capitalization

pull/632/head
nick black 4 years ago
parent 297263b39b
commit 0d696be0cc
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -16,7 +16,7 @@ namespace ncpp
{
direct = ncdirect_init (termtype, fp == nullptr ? stdout : fp);
if (direct == nullptr)
throw init_error ("notcurses failed to initialize direct mode");
throw init_error ("Notcurses failed to initialize direct mode");
}
~Direct ()

@ -20,7 +20,7 @@ namespace ncpp
menu = ncmenu_create (notcurses_stdplane(get_notcurses ()),
opts == nullptr ? &default_options : opts);
if (menu == nullptr)
throw init_error ("notcurses failed to create a new menu");
throw init_error ("Notcurses failed to create a new menu");
}
~Menu ()

@ -39,7 +39,7 @@ namespace ncpp
multiselector = ncmultiselector_create (plane, y, x, opts == nullptr ? &default_options : opts);
if (multiselector == nullptr)
throw init_error ("notcurses failed to create a new multiselector");
throw init_error ("Notcurses failed to create a new multiselector");
}
~MultiSelector ()

@ -13,7 +13,7 @@ namespace ncpp
{
palette = palette256_new (get_notcurses ());
if (palette == nullptr)
throw init_error ("notcurses failed to create a new palette");
throw init_error ("Notcurses failed to create a new palette");
}
~Palette256 ()

@ -60,7 +60,7 @@ namespace ncpp
);
if (plane == nullptr)
throw init_error ("notcurses failed to create a new plane");
throw init_error ("Notcurses failed to create a new plane");
map_plane (plane, this);
}
@ -1059,7 +1059,7 @@ namespace ncpp
);
if (ret == nullptr)
throw init_error ("notcurses failed to create a new plane");
throw init_error ("Notcurses failed to create a new plane");
map_plane (plane, this);
@ -1078,7 +1078,7 @@ namespace ncpp
);
if (ret == nullptr)
throw init_error ("notcurses failed to create an aligned plane");
throw init_error ("Notcurses failed to create an aligned plane");
map_plane (plane, this);
@ -1089,7 +1089,7 @@ namespace ncpp
{
ncplane *ret = ncplane_dup (other.plane, opaque);
if (ret == nullptr)
throw init_error ("notcurses failed to duplicate plane");
throw init_error ("Notcurses failed to duplicate plane");
return ret;
}

@ -67,7 +67,7 @@ namespace ncpp
}
if (plot == nullptr)
throw init_error ("notcurses failed to create a new plot");
throw init_error ("Notcurses failed to create a new plot");
}
~PlotBase ()

@ -34,7 +34,7 @@ namespace ncpp
{
reader = ncreader_create (n, y, x, opts);
if (reader == nullptr)
throw init_error ("notcurses failed to create a new reader");
throw init_error ("Notcurses failed to create a new reader");
}
~Reader ()

@ -57,7 +57,7 @@ namespace ncpp
{
nctablet *t = ncreel_add (reel, get_tablet (after), get_tablet (before), cb, opaque);
if (t == nullptr)
throw init_error ("notcurses failed to create a new tablet");
throw init_error ("Notcurses failed to create a new tablet");
return NcTablet::map_tablet (t);
}
@ -149,7 +149,7 @@ namespace ncpp
{
reel = ncreel_create (plane, popts == nullptr ? &default_options : popts, efd);
if (reel == nullptr)
throw init_error ("notcurses failed to create a new ncreel");
throw init_error ("Notcurses failed to create a new ncreel");
}
private:

@ -39,7 +39,7 @@ namespace ncpp
selector = ncselector_create (plane, y, x, opts == nullptr ? &default_options : opts);
if (selector == nullptr)
throw init_error ("notcurses failed to create a new selector");
throw init_error ("Notcurses failed to create a new selector");
}
~Selector ()

@ -83,7 +83,7 @@ namespace ncpp
}
if (subproc == nullptr)
throw new init_error ("NotCurses failed to create ncsubproc instance");
throw new init_error ("Notcurses failed to create ncsubproc instance");
}
private:

@ -36,14 +36,14 @@ namespace ncpp
visual = ncplane_visual_open (reinterpret_cast<ncplane*>(plane), file, ncerr);
if (visual == nullptr)
throw init_error ("notcurses failed to create a new visual");
throw init_error ("Notcurses failed to create a new visual");
}
explicit Visual (const char *file, nc_err_e* ncerr, int y, int x, NCScale scale)
{
visual = ncvisual_from_file (get_notcurses (), file, ncerr, y, x, static_cast<ncscale_e>(scale));
if (visual == nullptr)
throw init_error ("notcurses failed to create a new visual");
throw init_error ("Notcurses failed to create a new visual");
}
~Visual () noexcept

Loading…
Cancel
Save