diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-17 20:09:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-17 20:09:54 +0300 |
commit | 4fea35e3aa96661f35139b9e26e9139bf924ded7 (patch) | |
tree | 08b3e12560b2f5c22df73c23d3801e44e59b4a2c /src/gui/widgets/layout.h | |
parent | 1d49a50162a5f36b8ca0bec02e35304c9fad2e44 (diff) | |
download | plus-4fea35e3aa96661f35139b9e26e9139bf924ded7.tar.gz plus-4fea35e3aa96661f35139b9e26e9139bf924ded7.tar.bz2 plus-4fea35e3aa96661f35139b9e26e9139bf924ded7.tar.xz plus-4fea35e3aa96661f35139b9e26e9139bf924ded7.zip |
add restrict into layout.
Diffstat (limited to 'src/gui/widgets/layout.h')
-rw-r--r-- | src/gui/widgets/layout.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/layout.h b/src/gui/widgets/layout.h index 4830279bd..7888b0759 100644 --- a/src/gui/widgets/layout.h +++ b/src/gui/widgets/layout.h @@ -128,8 +128,9 @@ class LayoutArray final /** * Gets the position and size of a widget along a given axis */ - void align(int &pos, int &size, const int dim, LayoutCell const &cell, - const int *const sizes, const int sizeCount) const; + void align(int &restrict pos, int &restrict size, const int dim, + LayoutCell const &restrict cell, + const int *restrict const sizes, const int sizeCount) const; /** * Ensures the private vectors are large enough. @@ -347,7 +348,7 @@ class Layout final : public LayoutCell * Sets the positions of all the widgets. * @see LayoutArray::reflow */ - void reflow(int &nW, int &nH); + void reflow(int &restrict nW, int &restrict nH); /** * When the minimum size of the layout is less than the available size, |