c++ ncplane: braces around initializer

This commit is contained in:
nick black 2020-10-07 02:24:01 -04:00
parent f9e2c7863b
commit 0a3f697bc7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -480,6 +480,7 @@ namespace ncpp
return error_guard<int> (ncplane_putwegc_yx (plane, y, x, gclust, sbytes), -1);
}
#undef putwc
// OK, this is ugly, but we need to rename this overload or calls similar to n->putc (0, 0, '0') will be
// considered ambiguous with the above `putc (int, int, char)` overload.
int putwc (int y, int x, wchar_t w) const NOEXCEPT_MAYBE
@ -1187,7 +1188,7 @@ namespace ncpp
{
ncplane_options nopts = {
yoff,
static_cast<ncalign_e>(align),
{ static_cast<ncalign_e>(align) },
rows,
cols,
opaque,