aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/Exception.h
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2008-11-14 14:48:21 +0000
committerAdam Tkac <atkac@redhat.com>2008-11-14 14:48:21 +0000
commit20e0d711fdc2cdb2df7f3d4447c27832e982a24b (patch)
tree6e42638de13bef6d310cd8606aeb5c76d3d69f8a /common/rdr/Exception.h
parent247b729032ac7add40daa29a0d981a55e09c4343 (diff)
downloadtigervnc-20e0d711fdc2cdb2df7f3d4447c27832e982a24b.tar.gz
tigervnc-20e0d711fdc2cdb2df7f3d4447c27832e982a24b.zip
[Refactoring] Improved rdr::Exception constructor. It now accepts variable
number of arguments. [Bugfix] Minor compilation fixes (missing #includes) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3168 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rdr/Exception.h')
-rw-r--r--common/rdr/Exception.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/common/rdr/Exception.h b/common/rdr/Exception.h
index 2fdc0a2b..ef6b3689 100644
--- a/common/rdr/Exception.h
+++ b/common/rdr/Exception.h
@@ -19,21 +19,12 @@
#ifndef __RDR_EXCEPTION_H__
#define __RDR_EXCEPTION_H__
-#include <stdio.h>
-#include <string.h>
-
namespace rdr {
struct Exception {
enum { len = 256 };
char str_[len];
- Exception(const char* s=0) {
- str_[0] = 0;
- if (s)
- strncat(str_, s, len-1);
- else
- strcat(str_, "Exception");
- }
+ Exception(const char *format = 0, ...);
virtual ~Exception() {}
virtual const char* str() const { return str_; }
};