Fix const correctness of RTSurface::get()
This commit is contained in:
@@ -133,7 +133,12 @@ bool RTSurface::hasSurface() const
|
||||
return surface ? true : false;
|
||||
}
|
||||
|
||||
const Cairo::RefPtr<Cairo::ImageSurface>& RTSurface::get() const
|
||||
Cairo::RefPtr<const Cairo::ImageSurface> RTSurface::get() const
|
||||
{
|
||||
return surface;
|
||||
}
|
||||
|
||||
const Cairo::RefPtr<Cairo::ImageSurface>& RTSurface::get()
|
||||
{
|
||||
return surface;
|
||||
}
|
||||
|
Reference in New Issue
Block a user