Убрана ненужная константность при возврате указателя на WINDOW
This commit is contained in:
parent
9f36aa0973
commit
7a3b0e33db
1 changed files with 13 additions and 3 deletions
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue