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; 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; return surface;
} }

View File

@ -45,7 +45,8 @@ public:
int getHeight() const; int getHeight() const;
bool hasSurface() const; bool hasSurface() const;
const Cairo::RefPtr<Cairo::ImageSurface>& get() const; Cairo::RefPtr<const Cairo::ImageSurface> get() const;
const Cairo::RefPtr<Cairo::ImageSurface>& get();
static void init(); static void init();
static void updateImages (); static void updateImages ();