Fix const correctness of RTSurface::get()
This commit is contained in:
parent
84ce72841e
commit
fe74625d78
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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 ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user