[aseprite] 27/64: Fix usage of some uninitialized variables

Tobias Hansen thansen at moszumanska.debian.org
Tue Jun 21 14:43:02 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 0ad2af8eb1026d5d90cd027630eee002cd6b385e
Author: David Capello <davidcapello at gmail.com>
Date:   Wed May 11 13:00:02 2016 -0300

    Fix usage of some uninitialized variables
---
 src/app/ui/editor/editor.cpp          | 1 +
 src/app/ui/editor/pixels_movement.cpp | 1 +
 src/app/ui/timeline.cpp               | 1 +
 3 files changed, 3 insertions(+)

diff --git a/src/app/ui/editor/editor.cpp b/src/app/ui/editor/editor.cpp
index da70a59..653ac6a 100644
--- a/src/app/ui/editor/editor.cpp
+++ b/src/app/ui/editor/editor.cpp
@@ -159,6 +159,7 @@ Editor::Editor(Document* document, EditorFlags flags)
   , m_brushPreview(this)
   , m_lastDrawingPosition(-1, -1)
   , m_toolLoopModifiers(tools::ToolLoopModifiers::kNone)
+  , m_autoSelectLayer(false)
   , m_padding(0, 0)
   , m_antsTimer(100, this)
   , m_antsOffset(0)
diff --git a/src/app/ui/editor/pixels_movement.cpp b/src/app/ui/editor/pixels_movement.cpp
index ad6e311..8e2ee76 100644
--- a/src/app/ui/editor/pixels_movement.cpp
+++ b/src/app/ui/editor/pixels_movement.cpp
@@ -66,6 +66,7 @@ PixelsMovement::PixelsMovement(
   , m_adjustPivot(false)
   , m_handle(NoHandle)
   , m_originalImage(Image::createCopy(moveThis))
+  , m_opaque(false)
   , m_maskColor(m_sprite->transparentColor())
 {
   gfx::Transformation transform(mask->bounds());
diff --git a/src/app/ui/timeline.cpp b/src/app/ui/timeline.cpp
index 7908756..064c51c 100644
--- a/src/app/ui/timeline.cpp
+++ b/src/app/ui/timeline.cpp
@@ -126,6 +126,7 @@ Timeline::Timeline()
   , m_editor(NULL)
   , m_document(NULL)
   , m_sprite(NULL)
+  , m_state(STATE_STANDBY)
   , m_separator_x(100 * guiscale())
   , m_separator_w(1)
   , m_confPopup(NULL)

-- 
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