diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-06 22:23:11 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-06 22:23:11 +0100 |
| commit | 4ceb3715a3a6b752009627b0dc6a1974664c03a1 (patch) | |
| tree | 8c96d097e7e63f905925419a8a65c814d407605f /lib/Utils/ABRTException.cpp | |
| parent | f66aa07338bbc8a8a80264ec5be3ae25b677d94a (diff) | |
| download | abrt-4ceb3715a3a6b752009627b0dc6a1974664c03a1.tar.gz abrt-4ceb3715a3a6b752009627b0dc6a1974664c03a1.tar.xz abrt-4ceb3715a3a6b752009627b0dc6a1974664c03a1.zip | |
remove std::string usage from class CABRTException.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils/ABRTException.cpp')
| -rw-r--r-- | lib/Utils/ABRTException.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Utils/ABRTException.cpp b/lib/Utils/ABRTException.cpp new file mode 100644 index 00000000..aa6c99d9 --- /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)) +{} |
