summaryrefslogtreecommitdiffstats
path: root/unix/x0vncserver
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2008-06-04 11:20:09 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2008-06-04 11:20:09 +0000
commit93d40aa83bc03e78eb39e8477b6b4d791708ec60 (patch)
tree1f5d5163ff5aeecf0f8ae4844c15796d4493923e /unix/x0vncserver
parent2039d7b4284c3327cfe5c23d2d2301c6c5865215 (diff)
downloadtigervnc-93d40aa83bc03e78eb39e8477b6b4d791708ec60.tar.gz
tigervnc-93d40aa83bc03e78eb39e8477b6b4d791708ec60.zip
Minor cleanup: declaring PollingManager::sendChanges() as const.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2579 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/x0vncserver')
-rw-r--r--unix/x0vncserver/PollingManager.cxx2
-rw-r--r--unix/x0vncserver/PollingManager.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/unix/x0vncserver/PollingManager.cxx b/unix/x0vncserver/PollingManager.cxx
index 81624a9c..a1534d93 100644
--- a/unix/x0vncserver/PollingManager.cxx
+++ b/unix/x0vncserver/PollingManager.cxx
@@ -255,7 +255,7 @@ int PollingManager::checkColumn(int x, int y, int h, bool *pChangeFlags)
return nTilesChanged;
}
-int PollingManager::sendChanges(VNCServer *server)
+int PollingManager::sendChanges(VNCServer *server) const
{
const bool *pChangeFlags = m_changeFlags;
int nTilesChanged = 0;
diff --git a/unix/x0vncserver/PollingManager.h b/unix/x0vncserver/PollingManager.h
index 2ed9ff5e..e106f790 100644
--- a/unix/x0vncserver/PollingManager.h
+++ b/unix/x0vncserver/PollingManager.h
@@ -85,7 +85,7 @@ private:
int checkRow(int x, int y, int w);
int checkColumn(int x, int y, int h, bool *pChangeFlags);
- int sendChanges(VNCServer *server);
+ int sendChanges(VNCServer *server) const;
// Check neighboring tiles and update m_changeFlags[].
void checkNeighbors();