Убрана ненужная константность при возврате указателя на WINDOW

This commit is contained in:
Alexander Zhirov 2026-01-05 01:01:28 +03:00
parent 9f36aa0973
commit 7a3b0e33db
Signed by: alexander
GPG key ID: C8D8BE544A27C511

View file

@ -6,10 +6,20 @@ struct NCWin
{ {
WINDOW* _p; WINDOW* _p;
this(WINDOW* p) { _p = p; } this(WINDOW* p)
{
_p = p;
}
@property WINDOW* ptr()
{
return _p;
}
@property WINDOW* ptr() @trusted const { return cast(WINDOW*)_p; }
alias ptr this; alias ptr this;
@property bool isNull() const { return _p is null; } @property bool isNull() const
{
return _p is null;
}
} }