Add const to src argument in cmd::CopyRegion ctor

This commit is contained in:
David Capello 2016-04-06 18:30:00 -03:00
parent 5bd2a01446
commit 7f31bbef26
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@
namespace app {
namespace cmd {
CopyRegion::CopyRegion(Image* dst, Image* src,
CopyRegion::CopyRegion(Image* dst, const Image* src,
const gfx::Region& region, int dst_dx, int dst_dy)
: WithImage(dst)
{

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2001-2015 David Capello
// Copyright (C) 2001-2016 David Capello
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -22,7 +22,7 @@ namespace cmd {
class CopyRegion : public Cmd
, public WithImage {
public:
CopyRegion(Image* dst, Image* src,
CopyRegion(Image* dst, const Image* src,
const gfx::Region& region, int src_dx, int src_dy);
protected: