aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeLayout.cpp
diff options
context:
space:
mode:
authorMax Horn2008-11-03 16:38:47 +0000
committerMax Horn2008-11-03 16:38:47 +0000
commit55da1fdd290554bd79b39981182bb7a536799580 (patch)
treef7d9e8eb1ca4d35d6cd961b39ae7566ff9c6fea8 /gui/ThemeLayout.cpp
parent9e74c41dbd5050a819f4e10ce17f45f3edb534d3 (diff)
downloadscummvm-rg350-55da1fdd290554bd79b39981182bb7a536799580.tar.gz
scummvm-rg350-55da1fdd290554bd79b39981182bb7a536799580.tar.bz2
scummvm-rg350-55da1fdd290554bd79b39981182bb7a536799580.zip
Renamed ThemeLayout::buildCopy to buildCopy::makeClone
svn-id: r34881
Diffstat (limited to 'gui/ThemeLayout.cpp')
-rw-r--r--gui/ThemeLayout.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gui/ThemeLayout.cpp b/gui/ThemeLayout.cpp
index 247c1c0d5e..676fa0789b 100644
--- a/gui/ThemeLayout.cpp
+++ b/gui/ThemeLayout.cpp
@@ -45,9 +45,9 @@ void ThemeLayout::importLayout(ThemeLayout *layout) {
if (getLayoutType() == layout->getLayoutType()) {
for (uint i = 0; i < layout->_children.size(); ++i)
- _children.push_back(layout->_children[i]->buildCopy());
+ _children.push_back(layout->_children[i]->makeClone());
} else {
- _children.push_back(layout->buildCopy());
+ _children.push_back(layout->makeClone());
}
}
@@ -152,8 +152,7 @@ void ThemeLayoutVertical::reflowLayout() {
if (_centered && _children[i]->getWidth() < _w && _w != -1) {
_children[i]->setX((_w >> 1) - (_children[i]->getWidth() >> 1));
- }
- else
+ } else
_children[i]->setX(curX);
curY += _children[i]->getHeight() + _spacing;