From 4ceb3715a3a6b752009627b0dc6a1974664c03a1 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 6 Dec 2009 22:23:11 +0100 Subject: remove std::string usage from class CABRTException. Signed-off-by: Denys Vlasenko --- lib/Utils/ABRTException.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/Utils/ABRTException.cpp (limited to 'lib/Utils/ABRTException.cpp') diff --git a/lib/Utils/ABRTException.cpp b/lib/Utils/ABRTException.cpp new file mode 100644 index 0000000..aa6c99d --- /dev/null +++ b/lib/Utils/ABRTException.cpp @@ -0,0 +1,15 @@ +#include "ABRTException.h" + +CABRTException::CABRTException(abrt_exception_t type, const char* fmt, ...) +{ + m_type = type; + va_list ap; + va_start(ap, fmt); + m_what = xvasprintf(fmt, ap); + va_end(ap); +} + +CABRTException::CABRTException(const CABRTException& rhs): + m_type(rhs.m_type), + m_what(xstrdup(rhs.m_what)) +{} -- cgit