Fix const correctness of RTSurface::get()

This commit is contained in:
Flössie
2019-03-21 20:55:31 +01:00
parent 84ce72841e
commit fe74625d78
2 changed files with 8 additions and 2 deletions

View File

@@ -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;
}