Tweaked image view null a little
This commit is contained in:
parent
08a3911b0a
commit
0f76580f6e
1 changed files with 2 additions and 2 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue