summaryrefslogtreecommitdiff
path: root/src/gui/widgets/layout.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-17 20:09:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-17 20:09:54 +0300
commit4fea35e3aa96661f35139b9e26e9139bf924ded7 (patch)
tree08b3e12560b2f5c22df73c23d3801e44e59b4a2c /src/gui/widgets/layout.cpp
parent1d49a50162a5f36b8ca0bec02e35304c9fad2e44 (diff)
downloadmv-4fea35e3aa96661f35139b9e26e9139bf924ded7.tar.gz
mv-4fea35e3aa96661f35139b9e26e9139bf924ded7.tar.bz2
mv-4fea35e3aa96661f35139b9e26e9139bf924ded7.tar.xz
mv-4fea35e3aa96661f35139b9e26e9139bf924ded7.zip
add restrict into layout.
Diffstat (limited to 'src/gui/widgets/layout.cpp')
-rw-r--r--src/gui/widgets/layout.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/layout.cpp b/src/gui/widgets/layout.cpp
index 2e4f7c5b3..8d42d07ff 100644
--- a/src/gui/widgets/layout.cpp
+++ b/src/gui/widgets/layout.cpp
@@ -232,8 +232,9 @@ LayoutCell &LayoutArray::place(gcn::Widget *const widget, const int x,
return cell;
}
-void LayoutArray::align(int &pos, int &size, const int dim,
- LayoutCell const &cell, const int *const sizes,
+void LayoutArray::align(int &restrict pos, int &restrict size, const int dim,
+ LayoutCell const &restrict cell,
+ const int *restrict const sizes,
const int sizeCount) const
{
if (dim < 0 || dim >= 2)
@@ -385,7 +386,7 @@ Layout::Layout() :
setPadding(6);
}
-void Layout::reflow(int &nw, int &nh)
+void Layout::reflow(int &restrict nw, int &restrict nh)
{
if (!mComputed)
{