summaryrefslogtreecommitdiffstats
path: root/unix/x0vncserver/XPixelBuffer.h
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2008-06-04 05:36:40 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2008-06-04 05:36:40 +0000
commit8a85c49dcbf1b15bc633a14ffef293ca6b7753bf (patch)
treeabf98e54fc2207c50884dba506430897dd0ad2fb /unix/x0vncserver/XPixelBuffer.h
parentf773a8e2db032ce518632514f7229f25f6de99ad (diff)
downloadtigervnc-8a85c49dcbf1b15bc633a14ffef293ca6b7753bf.tar.gz
tigervnc-8a85c49dcbf1b15bc633a14ffef293ca6b7753bf.zip
Code refactoring: PollingManager should not know anything about
XPixelBuffer. This commit partially reverts the changes from r2567. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2575 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/x0vncserver/XPixelBuffer.h')
-rw-r--r--unix/x0vncserver/XPixelBuffer.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/unix/x0vncserver/XPixelBuffer.h b/unix/x0vncserver/XPixelBuffer.h
index 25a3d844..3632f804 100644
--- a/unix/x0vncserver/XPixelBuffer.h
+++ b/unix/x0vncserver/XPixelBuffer.h
@@ -39,11 +39,8 @@ public:
const Rect &rect, ColourMap* cm);
virtual ~XPixelBuffer();
- // We allow public access to the underlying Image object.
- // The image is heavily used by the PollingManager.
- // TODO: Allow read-only (const Image *) access only.
- // Or better do not allow public access at all.
- virtual Image *getImage() const { return m_image; }
+ // Provide access to the underlying Image object.
+ virtual const Image *getImage() const { return m_image; }
// Override PixelBuffer::getStride().
virtual int getStride() const { return m_stride; }