Tweaked image view null a little

This commit is contained in:
Blake Thompson 2015-03-19 22:35:09 -05:00
parent 08a3911b0a
commit 0f76580f6e

View file

@ -34,7 +34,7 @@ template <>
class MAPNIK_DECL image_view<image_null>
{
public:
using pixel_type = typename image_null::pixel_type;
using pixel_type = image_null::pixel_type;
static const image_dtype dtype = image_null::dtype;
image_view() {}
@ -49,7 +49,7 @@ public:
unsigned y() const { return 0; }
unsigned width() const { return 0; }
unsigned height() const { return 0; }
const pixel_type& operator() (std::size_t i, std::size_t j) const { std::runtime_error("Can not get from a null image view"); }
const pixel_type operator() (std::size_t i, std::size_t j) const { throw std::runtime_error("Can not get from a null image view"); }
unsigned getSize() const { return 0; }
unsigned getRowSize() const { return 0; }
const pixel_type* getRow(unsigned row) const { return nullptr; }