From 2d0861404210ecbbccb714ab5498653ada740b72 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 1 Dec 2005 10:06:40 +0000 Subject: [PATCH] return object in envelope() --- include/layer.hpp | 2 +- src/layer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/layer.hpp b/include/layer.hpp index 91b5466da..eb86e8807 100644 --- a/include/layer.hpp +++ b/include/layer.hpp @@ -66,7 +66,7 @@ namespace mapnik std::vector >& selection() const; void clear_selection() const; datasource_p const& datasource() const; - Envelope const& envelope() const; + Envelope envelope() const; virtual ~Layer(); private: void swap(const Layer& other); diff --git a/src/layer.cpp b/src/layer.cpp index 744be21cf..9389a6ba5 100644 --- a/src/layer.cpp +++ b/src/layer.cpp @@ -160,7 +160,7 @@ namespace mapnik return ds_; } - const Envelope& Layer::envelope() const + Envelope Layer::envelope() const { if (ds_) return ds_->envelope();