[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-
From: |
Bastiaan Jacques |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1720-g2b2dc59 |
Date: |
Fri, 09 Aug 2013 21:00:59 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via 2b2dc59b2b9a7cfad46c4ca79f8d03fe0ee8bac0 (commit)
from 7079cac379e11c20f40600e383a9f91a8abb2d5f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=2b2dc59b2b9a7cfad46c4ca79f8d03fe0ee8bac0
commit 2b2dc59b2b9a7cfad46c4ca79f8d03fe0ee8bac0
Author: Bastiaan Jacques <address@hidden>
Date: Fri Aug 9 22:40:40 2013 +0200
Use references to avoid possible copying.
diff --git a/libcore/DisplayObject.cpp b/libcore/DisplayObject.cpp
index a2c52cf..717b0c8 100644
--- a/libcore/DisplayObject.cpp
+++ b/libcore/DisplayObject.cpp
@@ -354,7 +354,7 @@ as_value
getHeight(DisplayObject& o)
{
SWFRect bounds = o.getBounds();
- const SWFMatrix m = getMatrix(o);
+ const SWFMatrix& m = getMatrix(o);
m.transform(bounds);
return twipsToPixels(bounds.height());
}
@@ -1109,7 +1109,7 @@ setY(DisplayObject& o, const as_value& val)
as_value
getY(DisplayObject& o)
{
- const SWFMatrix m = getMatrix(o);
+ const SWFMatrix& m = getMatrix(o);
return twipsToPixels(m.get_y_translation());
}
@@ -1140,7 +1140,7 @@ setX(DisplayObject& o, const as_value& val)
as_value
getX(DisplayObject& o)
{
- const SWFMatrix m = getMatrix(o);
+ const SWFMatrix& m = getMatrix(o);
return twipsToPixels(m.get_x_translation());
}
@@ -1548,12 +1548,12 @@ doSet(const ObjectURI& uri, DisplayObject& o, const
as_value& val)
{
string_table& st = getStringTable(*getObject(&o));
- const GetterSetter gs = getGetterSetterByURI(uri, st);
+ const GetterSetter& gs = getGetterSetterByURI(uri, st);
// not found (all props have getters)
if (!gs.first) return false;
- const Setter s = gs.second;
+ const Setter& s = gs.second;
// read-only (TODO: aserror ?)
if (!s) return true;
-----------------------------------------------------------------------
Summary of changes:
libcore/DisplayObject.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1720-g2b2dc59,
Bastiaan Jacques <=