summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-08 09:20:04 -0700
committerPixel <pixel@nobis-crew.org>2008-10-08 09:20:04 -0700
commit2d57145f789c3e87cc950c3ceab76870cd98beff (patch)
tree49f38c12d45d0508f74fa365ad6ef7e536c32455 /include
parentf80b1b0eb1355de26b262ecef23d93d5ec0b9cba (diff)
Avoiding passing on strings by copy during exceptions.
Diffstat (limited to 'include')
-rw-r--r--include/Exceptions.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/Exceptions.h b/include/Exceptions.h
index d52d245..52f51c4 100644
--- a/include/Exceptions.h
+++ b/include/Exceptions.h
@@ -89,7 +89,7 @@ class Base {
class GeneralException : public Base {
public:
//! The constructor has to provide a string describing the exception.
- GeneralException(String);
+ GeneralException(const String &);
GeneralException(const GeneralException &);
~GeneralException();
//! This should only be used by the exception manager in order to display what went wrong.
@@ -129,14 +129,14 @@ enum op_t {
class IOGeneral : public GeneralException {
public:
- IOGeneral(String);
+ IOGeneral(const String &);
protected:
IOGeneral();
};
class IOException : public IOGeneral {
public:
- IOException(String, op_t, ssize_t);
+ IOException(const String &, op_t, ssize_t);
};
class IOAgain : public IOGeneral {