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/Plugins/FileTransfer.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/Plugins/FileTransfer.cpp')
-rw-r--r-- | lib/Plugins/FileTransfer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Plugins/FileTransfer.cpp b/lib/Plugins/FileTransfer.cpp index 868f54d..8fff3a9 100644 --- a/lib/Plugins/FileTransfer.cpp +++ b/lib/Plugins/FileTransfer.cpp @@ -79,12 +79,12 @@ void CFileTransfer::SendFile(const char *pURL, const char *pFilename) f = fopen(pFilename, "r"); if (!f) { - throw CABRTException(EXCEP_PLUGIN, ssprintf("Can't open archive file '%s'", pFilename)); + throw CABRTException(EXCEP_PLUGIN, "Can't open archive file '%s'", pFilename); } if (fstat(fileno(f), &buf) == -1) { fclose(f); - throw CABRTException(EXCEP_PLUGIN, ssprintf("Can't stat archive file '%s'", pFilename)); + throw CABRTException(EXCEP_PLUGIN, "Can't stat archive file '%s'", pFilename); } curl = curl_easy_init(); if (!curl) @@ -282,7 +282,7 @@ void CFileTransfer::CreateArchive(const char *pArchiveName, const char *pDir) } else { - throw CABRTException(EXCEP_PLUGIN, "Unknown/unsupported archive type " + m_sArchiveType); + throw CABRTException(EXCEP_PLUGIN, "Unknown/unsupported archive type %s", m_sArchiveType.c_str()); } } |