[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r12295: Fix uninitialized variable b
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r12295: Fix uninitialized variable bug. |
Date: |
Sun, 11 Jul 2010 10:25:50 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 12295 [merge]
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Sun 2010-07-11 10:25:50 +0200
message:
Fix uninitialized variable bug.
modified:
libcore/DisplayObject.cpp
libcore/movie_root.cpp
=== modified file 'libcore/DisplayObject.cpp'
--- a/libcore/DisplayObject.cpp 2010-07-10 14:03:14 +0000
+++ b/libcore/DisplayObject.cpp 2010-07-11 08:00:59 +0000
@@ -82,6 +82,7 @@
DisplayObject::DisplayObject(movie_root& mr, as_object* object,
DisplayObject* parent)
:
+ _name(),
_parent(parent),
_object(object),
_stage(mr),
=== modified file 'libcore/movie_root.cpp'
--- a/libcore/movie_root.cpp 2010-07-11 06:43:23 +0000
+++ b/libcore/movie_root.cpp 2010-07-11 07:21:31 +0000
@@ -1136,9 +1136,7 @@
{
const boost::int32_t x = pixelsToTwips(_mouseX);
const boost::int32_t y = pixelsToTwips(_mouseY);
- const DisplayObject* dropChar =
- findDropTarget(x, y, getDraggingCharacter());
- return dropChar;
+ return findDropTarget(x, y, getDraggingCharacter());
}
@@ -1655,16 +1653,6 @@
for (TimerMap::iterator it=_intervalTimers.begin(),
itEnd=_intervalTimers.end(); it != itEnd; ) {
- // Get an iterator to next element, as we'll use
- // erase to drop cleared timers, and that would
- // invalidate the current iterator.
- //
- // FYI: it's been reported on ##iso-c++ that next
- // C++ version will fix std::map<>::erase(iterator)
- // to return the next valid iterator,
- // like std::list<>::erase(iterator) does.
- // For now, we'll have to handle this manually)
- //
TimerMap::iterator nextIterator = it;
++nextIterator;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r12295: Fix uninitialized variable bug.,
Benjamin Wolsey <=