aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCarlos Santos <casantos@redhat.com>2023-11-28 18:11:13 -0300
committerCarlos Santos <casantos@redhat.com>2024-04-23 17:41:01 -0300
commitae81801cccbbef7c424103ec3aee9bfc6021059e (patch)
treeb9d288bf7e8341cad9b54c7f240f84e08bf16e65 /tests
parent34d96928632b79196cc3d46aa2abd7c1f1122593 (diff)
downloadtigervnc-ae81801cccbbef7c424103ec3aee9bfc6021059e.tar.gz
tigervnc-ae81801cccbbef7c424103ec3aee9bfc6021059e.zip
Move the AccessRights type and constants to the rfb namespace
They must belong to the rfb namespace, not to the SConnection class. Also add an AccessNone constant, since it's better to use a mnemonic symbol rather than zero to initialize the accessRights members. Signed-off-by: Carlos Santos <casantos@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/perf/encperf.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/perf/encperf.cxx b/tests/perf/encperf.cxx
index 40e3abfc..55fa386e 100644
--- a/tests/perf/encperf.cxx
+++ b/tests/perf/encperf.cxx
@@ -134,7 +134,7 @@ public:
void getStats(double&, unsigned long long&, unsigned long long&);
- virtual void setAccessRights(AccessRights ar);
+ virtual void setAccessRights(rfb::AccessRights ar);
virtual void setDesktopSize(int fb_width, int fb_height,
const rfb::ScreenSet& layout);
@@ -329,7 +329,7 @@ void SConn::getStats(double& ratio, unsigned long long& bytes,
manager->getStats(ratio, bytes, rawEquivalent);
}
-void SConn::setAccessRights(AccessRights)
+void SConn::setAccessRights(rfb::AccessRights)
{
}