summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-12-07 11:50:49 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-12-07 11:50:56 +0100
commit6d2efa707f33cc70e8c33da901b598efd0465e1d (patch)
treedb05828cffae1e6a0e33d0c5733d18747a6f5c22
parent5db10faf84e0f5ee747adff4ee38a3ad5a4ca48b (diff)
Context: Remove unnecessary const casts.
-rw-r--r--cairomm/context.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cairomm/context.cc b/cairomm/context.cc
index c681cf3..5f761d1 100644
--- a/cairomm/context.cc
+++ b/cairomm/context.cc
@@ -637,7 +637,7 @@ RefPtr<const Pattern> Context::get_source() const
{
auto pattern = cairo_get_source(const_cast<cobject*>(cobj()));
check_object_status_and_throw_exception(*this);
- return RefPtr<const Pattern>::cast_const (get_pattern_wrapper (pattern));
+ return get_pattern_wrapper(pattern);
}
double Context::get_tolerance() const
@@ -798,7 +798,7 @@ RefPtr<const Surface> Context::get_target() const
{
auto surface = cairo_get_target(const_cast<cobject*>(cobj()));
check_object_status_and_throw_exception(*this);
- return RefPtr<const Surface>::cast_const (get_surface_wrapper (surface));
+ return get_surface_wrapper(surface);
}
Path* Context::copy_path() const