summaryrefslogtreecommitdiffstats
path: root/rfbplayer/RfbProto.cxx
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2005-09-28 16:49:36 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2005-09-28 16:49:36 +0000
commit4aaf63ba205d676e856cb909ee9f5d010480541b (patch)
tree33f1d6f65a7dd069ace737ab8fa37b1f03e2006d /rfbplayer/RfbProto.cxx
parent4ae8b8e9d31b99a8c8882834f7d7f21990e5a346 (diff)
downloadtigervnc-4aaf63ba205d676e856cb909ee9f5d010480541b.tar.gz
tigervnc-4aaf63ba205d676e856cb909ee9f5d010480541b.zip
Updated for building with the latest version of the Exception class which
does not include two-argument constructor any more. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@338 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'rfbplayer/RfbProto.cxx')
-rw-r--r--rfbplayer/RfbProto.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/rfbplayer/RfbProto.cxx b/rfbplayer/RfbProto.cxx
index add2096d..5a7ff7f9 100644
--- a/rfbplayer/RfbProto.cxx
+++ b/rfbplayer/RfbProto.cxx
@@ -89,7 +89,7 @@ void RfbProto::processVersionMsg()
bool done;
if (!cp.readVersion(is, &done)) {
state_ = RFBSTATE_INVALID;
- throw rfb::Exception("reading version failed: wrong file format?", "RfbPlayer");
+ throw rfb::Exception("reading version failed: wrong file format?");
}
if (!done) return;
@@ -99,7 +99,7 @@ void RfbProto::processVersionMsg()
sprintf(msg,"File have unsupported RFB protocol version %d.%d",
cp.majorVersion, cp.minorVersion);
state_ = RFBSTATE_INVALID;
- throw rfb::Exception(msg, "RfbPlayer Error");
+ throw rfb::Exception(msg);
}
state_ = RFBSTATE_SECURITY;
@@ -120,12 +120,11 @@ void RfbProto::processSecurityMsg()
int reasonLen = is->readU32();
char *reason = new char[reasonLen];
is->readBytes(reason, reasonLen);
- throw rfb::Exception(reason, "RfbPlayer");
+ throw rfb::Exception(reason);
}
if (secType != secTypeNone) {
- throw rfb::Exception("Wrong authentication type in the session file",
- "RfbPlayer Error");
+ throw rfb::Exception("Wrong authentication type in the session file");
}
state_ = RFBSTATE_INITIALISATION;