Commit 5dd2d131 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

libdatrwxx [WP][FIX]: initial member data with empty strings

class Exception previously used character strings, which were initialized by a
NULL-pointer if empty. After using strings as member data properly initalize
by empty strings.
parent 5ca1a1f2
......@@ -49,12 +49,12 @@ namespace datrw {
//! construct from nothing
Exception::Exception():
Mmessage(0), Mfile(0), Mline(0), Mcondition(0)
Mmessage(""), Mfile(0), Mline(0), Mcondition("")
{ if (Mreport_on_construct) { report(); } }
//! construct with message
Exception::Exception(const std::string& message):
Mmessage(message), Mfile(0), Mline(0), Mcondition(0)
Mmessage(message), Mfile(0), Mline(0), Mcondition("")
{ if (Mreport_on_construct) { report(); } }
//! construct with message and file info
......@@ -67,7 +67,7 @@ namespace datrw {
Exception::Exception(const std::string& message,
const std::string& file,
const int& line):
Mmessage(message), Mfile(file), Mline(line), Mcondition(0)
Mmessage(message), Mfile(file), Mline(line), Mcondition("")
{ if (Mreport_on_construct) { report(); } }
//! construct with message and file info and condition
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment