summaryrefslogtreecommitdiff
path: root/examples/surfaces/svg-surface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/surfaces/svg-surface.cc')
-rw-r--r--examples/surfaces/svg-surface.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/surfaces/svg-surface.cc b/examples/surfaces/svg-surface.cc
index 56e101d..cf51d5f 100644
--- a/examples/surfaces/svg-surface.cc
+++ b/examples/surfaces/svg-surface.cc
@@ -20,10 +20,10 @@ int main()
std::string filename = "image.svg";
double width = 600;
double height = 400;
- Cairo::RefPtr<Cairo::SvgSurface> surface =
+ auto surface =
Cairo::SvgSurface::create(filename, width, height);
- Cairo::RefPtr<Cairo::Context> cr = Cairo::Context::create(surface);
+ auto cr = Cairo::Context::create(surface);
cr->save(); // save the state of the context
cr->set_source_rgb(0.86, 0.85, 0.47);