Pass value object attributes by reference (instead of pointer)
This underlines that no reference inside the setter is taken, and that these attributes are non-nullable. Also removes a couple of superfluous attribute macros.
This commit is contained in:
parent
5549ff78f0
commit
c9d5059238
29 changed files with 92 additions and 110 deletions
src
|
|
@ -706,6 +706,7 @@ void Window::update()
|
|||
|
||||
DEF_ATTR_SIMPLE(Window, X, int, p->position.x)
|
||||
DEF_ATTR_SIMPLE(Window, Y, int, p->position.y)
|
||||
DEF_ATTR_SIMPLE(Window, CursorRect, Rect&, *p->cursorRect)
|
||||
|
||||
DEF_ATTR_RD_SIMPLE(Window, Windowskin, Bitmap*, p->windowskin)
|
||||
DEF_ATTR_RD_SIMPLE(Window, Contents, Bitmap*, p->contents)
|
||||
|
|
@ -720,8 +721,6 @@ DEF_ATTR_RD_SIMPLE(Window, Opacity, int, p->opacity)
|
|||
DEF_ATTR_RD_SIMPLE(Window, BackOpacity, int, p->backOpacity)
|
||||
DEF_ATTR_RD_SIMPLE(Window, ContentsOpacity, int, p->contentsOpacity)
|
||||
|
||||
DEF_ATTR_OBJ_VALUE(Window, CursorRect, Rect*, p->cursorRect)
|
||||
|
||||
void Window::setWindowskin(Bitmap *value)
|
||||
{
|
||||
guardDisposed();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue