PixelFormatList::operator[] must return the pointer to
PixelFormatListElement structure.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@269 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/PixelFormatList.h b/rfbplayer/PixelFormatList.h
index f3b4e1f..cd7c50a 100644
--- a/rfbplayer/PixelFormatList.h
+++ b/rfbplayer/PixelFormatList.h
@@ -64,7 +64,7 @@
public:
PixelFormatList();
- PixelFormatListElement operator[](int index);
+ PixelFormatListElement* operator[](int index);
void add(char *format_name, PixelFormat PF);
void insert(int index, char *format_name, PixelFormat PF);
void remove(int index);