From 462d3c8e17eb4c45867cb6ead98dd9c1e70b3aec Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Fri, 30 Oct 2015 09:22:15 +0100 Subject: [PATCH] Change Python GSkyMap::operator() return type to a value instead of a reference. --- pyext/GSkyMap.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyext/GSkyMap.i b/pyext/GSkyMap.i index eb3ea8f..50f3dce 100644 --- a/pyext/GSkyMap.i +++ b/pyext/GSkyMap.i @@ -138,8 +138,8 @@ public: GSkyMap operator-(const GSkyMap& map) const; GSkyMap operator*(const GSkyMap& map) const; GSkyMap operator/(const GSkyMap& map) const; - double& operator()(const int& index, const int& map = 0); - double& operator()(const GSkyPixel& pixel, const int& map = 0); + double operator()(const int& index, const int& map = 0); + double operator()(const GSkyPixel& pixel, const int& map = 0); double operator()(const GSkyDir& dir, const int& map = 0) const; // Methods -- libgit2 0.21.4