From 27cf3f2f63ab4dabfa71f7110d734e5cd8c8a1ba Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 13 Mar 2011 16:38:26 -0300 Subject: [PATCH] Add explicit to CurrentSprite/Reader/Writer(Context*). --- src/commands/cmd_palette_editor.cpp | 2 +- src/sprite_wrappers.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/cmd_palette_editor.cpp b/src/commands/cmd_palette_editor.cpp index 136fd34bf..bd19273c9 100644 --- a/src/commands/cmd_palette_editor.cpp +++ b/src/commands/cmd_palette_editor.cpp @@ -515,7 +515,7 @@ void PaletteEntryEditor::onQuantizeCommand(Event& ev) Palette* palette = NULL; { - const CurrentSpriteReader& sprite(UIContext::instance()); + const CurrentSpriteReader sprite(UIContext::instance()); if (sprite == NULL) { Alert::show("Error<getCurrentSprite()) { } @@ -227,7 +227,7 @@ class CurrentSpriteWriter : public SpriteWriter public: - CurrentSpriteWriter(Context* context) + explicit CurrentSpriteWriter(Context* context) : SpriteWriter(context->getCurrentSprite()) , m_context(context) {