summaryrefslogtreecommitdiff
path: root/lib/Exceptions.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-10-27 11:15:57 +0000
committerPixel <Pixel>2001-10-27 11:15:57 +0000
commit54e62a566c003363078aa5273a728c0a0657b3a0 (patch)
tree542f106033e7f702feaaba8672873e6244c8baf1 /lib/Exceptions.cc
parentec2ecbd35bea64c88ab783b06100edc65c418048 (diff)
Reworking on it...
Diffstat (limited to 'lib/Exceptions.cc')
-rw-r--r--lib/Exceptions.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc
index 734e5e9..0376fee 100644
--- a/lib/Exceptions.cc
+++ b/lib/Exceptions.cc
@@ -27,7 +27,7 @@ void * Base::operator new(size_t s, void * p) {
return p;
}
-GeneralException::GeneralException(String emsg) : msg(strdup(emsg.to_charp())) { }
+GeneralException::GeneralException(String emsg) : msg(emsg.strdup()) { }
GeneralException::GeneralException() : msg(0) { }
GeneralException::GeneralException(const GeneralException & e) : msg(strdup(e.msg)) { }