summaryrefslogtreecommitdiff
path: root/includes/Exceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Exceptions.h')
-rw-r--r--includes/Exceptions.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/Exceptions.h b/includes/Exceptions.h
index 962a869..2d452cc 100644
--- a/includes/Exceptions.h
+++ b/includes/Exceptions.h
@@ -34,13 +34,13 @@ class GeneralException {
const std::vector<String> getTrace() const { return m_trace; }
protected:
- GeneralException() : m_msg(NULL), m_details(NULL) { }
+ GeneralException() { }
void setMsg(char * msg) { if (m_msg) free(m_msg); m_msg = msg; }
void genTrace();
private:
- mutable char * m_msg;
- char * m_details;
+ mutable char * m_msg = NULL;
+ char * m_details = NULL;
std::vector<String> m_trace;
void setDetails(const char * details) {