From b9ce1555b2baf9be209775dbd4c8b217db5cd735 Mon Sep 17 00:00:00 2001 From: manuel Date: Fri, 1 May 2009 20:18:51 +0200 Subject: rewrote pixmap::read to do more sanity checks --- ue2/imgsynth2/cbitmap.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ue2/imgsynth2/cbitmap.h') diff --git a/ue2/imgsynth2/cbitmap.h b/ue2/imgsynth2/cbitmap.h index c8d4dfb..f48ada7 100644 --- a/ue2/imgsynth2/cbitmap.h +++ b/ue2/imgsynth2/cbitmap.h @@ -68,14 +68,13 @@ class CBitmap : public CFile * @method write * @brief Writes Windows Bitmap to filestream. * @param out filestream to read data from - * @param filename filename (maybe useful for some handlers) * @return - * @globalvars none * @exception FileError * @exception bad_alloc * @conditions none */ - virtual void write(std::ofstream& out, std::string& filename) = 0; + virtual void write(std::ofstream& out) = 0; /** * @method getPixelData @@ -231,8 +230,7 @@ class CBitmap : public CFile /** pointer to pixelbuffer */ uint8_t *m_pixeldata; /** colortable map */ - //TODO std::map m_colortable; - std::map > xpmColors; + std::map m_colortable; /** set of supported PixelFormat handlers */ std::set m_handlers; /** pointer to CPixelFormat implementation */ -- cgit v1.2.3