aboutsummaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-06-14 09:43:10 +0200
committerPierre Ossman <ossman@cendio.se>2021-06-14 09:43:10 +0200
commita29fe72102907f4f770ad9d9a7eef7619226d355 (patch)
treeb3f97282a4ab3ebdbf9cabb9ae123937536da68d /unix
parent0517ae84eba859d33ac148e37dfc03f2b398e4f6 (diff)
downloadtigervnc-a29fe72102907f4f770ad9d9a7eef7619226d355.tar.gz
tigervnc-a29fe72102907f4f770ad9d9a7eef7619226d355.zip
Avoid some variable aliasing
Diffstat (limited to 'unix')
-rw-r--r--unix/xserver/hw/vnc/XserverDesktop.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc
index 7ebad353..25dcd845 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.cc
+++ b/unix/xserver/hw/vnc/XserverDesktop.cc
@@ -72,7 +72,7 @@ XserverDesktop::XserverDesktop(int screenIndex_,
std::list<network::SocketListener*> listeners_,
const char* name, const rfb::PixelFormat &pf,
int width, int height,
- void* fbptr, int stride)
+ void* fbptr, int stride_)
: screenIndex(screenIndex_),
server(0), listeners(listeners_),
shadowFramebuffer(NULL),
@@ -81,7 +81,7 @@ XserverDesktop::XserverDesktop(int screenIndex_,
format = pf;
server = new VNCServerST(name, this);
- setFramebuffer(width, height, fbptr, stride);
+ setFramebuffer(width, height, fbptr, stride_);
for (std::list<SocketListener*>::iterator i = listeners.begin();
i != listeners.end();
@@ -196,10 +196,10 @@ void XserverDesktop::announceClipboard(bool available)
}
}
-void XserverDesktop::sendClipboardData(const char* data)
+void XserverDesktop::sendClipboardData(const char* data_)
{
try {
- server->sendClipboardData(data);
+ server->sendClipboardData(data_);
} catch (rdr::Exception& e) {
vlog.error("XserverDesktop::sendClipboardData: %s",e.str());
}
@@ -503,11 +503,11 @@ void XserverDesktop::grabRegion(const rfb::Region& region)
region.get_rects(&rects);
for (i = rects.begin(); i != rects.end(); i++) {
rdr::U8 *buffer;
- int stride;
+ int bufStride;
- buffer = getBufferRW(*i, &stride);
+ buffer = getBufferRW(*i, &bufStride);
vncGetScreenImage(screenIndex, i->tl.x, i->tl.y, i->width(), i->height(),
- (char*)buffer, stride * format.bpp/8);
+ (char*)buffer, bufStride * format.bpp/8);
commitBufferRW(*i);
}
}