[aseprite] 272/308: Remove unnecessary iterations on splitter children in onSave/LoadLayout
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:45:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit ca160d0647bd03cee6113c5d41fcb019a628a291
Author: David Capello <davidcapello at gmail.com>
Date: Fri Feb 26 15:08:58 2016 -0300
Remove unnecessary iterations on splitter children in onSave/LoadLayout
---
src/ui/splitter.cpp | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/src/ui/splitter.cpp b/src/ui/splitter.cpp
index 4cc94ed..0d3c7cc 100644
--- a/src/ui/splitter.cpp
+++ b/src/ui/splitter.cpp
@@ -1,5 +1,5 @@
// Aseprite UI Library
-// Copyright (C) 2001-2013, 2015 David Capello
+// Copyright (C) 2001-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
@@ -295,20 +295,12 @@ void Splitter::onLoadLayout(LoadLayoutEvent& ev)
if (m_pos < 0) m_pos = 0;
if (m_type == ByPixel)
m_pos *= guiscale();
-
- // Do for all children
- for (auto child : children())
- child->loadLayout();
}
void Splitter::onSaveLayout(SaveLayoutEvent& ev)
{
double pos = (m_type == ByPixel ? m_pos / guiscale(): m_pos);
ev.stream() << pos;
-
- // Do for all children
- for (auto child : children())
- child->saveLayout();
}
Widget* Splitter::panel1() const
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list