Skip to content

Commit

Permalink
Add tile member function doesn't need to pass a reference to a pointer.
Browse files Browse the repository at this point in the history
  • Loading branch information
genete committed Mar 25, 2013
1 parent 297b0c5 commit 66f437d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion synfig-core/src/synfig/target_cairo_tile.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Target_Cairo_Tile : public Target
virtual int next_frame(Time& time);

//! Adds the tile at \a x , \a y contained in \a surface
virtual bool add_tile(cairo_surface_t*& surface, int x, int y)=0;
virtual bool add_tile(cairo_surface_t* surface, int x, int y)=0;
//! Returns the total tiles of the imaged rounded to integer number of tiles
virtual int total_tiles()const
{
Expand Down
2 changes: 1 addition & 1 deletion synfig-studio/src/gui/asyncrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class AsyncTarget_Cairo_Tile : public synfig::Target_Cairo_Tile
return warm_target->start_frame(cb);
}

virtual bool add_tile(cairo_surface_t*& surface, int gx, int gy)
virtual bool add_tile(cairo_surface_t* surface, int gx, int gy)
{
if(cairo_surface_status(surface))
return false;
Expand Down
2 changes: 1 addition & 1 deletion synfig-studio/src/gui/workarea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class studio::WorkAreaTarget_Cairo_Tile : public synfig::Target_Cairo_Tile
return true;
}

virtual bool add_tile(cairo_surface_t*& tile_surface, int x, int y)
virtual bool add_tile(cairo_surface_t* tile_surface, int x, int y)
{
synfig::Mutex::Lock lock(mutex);
if(cairo_surface_status(tile_surface))
Expand Down

0 comments on commit 66f437d

Please sign in to comment.