diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-09 15:34:23 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-09 15:34:23 +0200 |
commit | f3ef697fb307a053b5010145e59a34c8e0f0bf3d (patch) | |
tree | edb9728ad31c0383cfaa769099a6c71ae2460a86 /lib | |
parent | 6753bbb11fc2017972e372851b00af10f40f01a7 (diff) | |
download | abrt-f3ef697fb307a053b5010145e59a34c8e0f0bf3d.tar.gz abrt-f3ef697fb307a053b5010145e59a34c8e0f0bf3d.tar.xz abrt-f3ef697fb307a053b5010145e59a34c8e0f0bf3d.zip |
four more more string& -> char* conversions. -2k
text data bss dec hex filename
188660 2776 2320 193756 2f4dc abrt.t5/abrt-0.0.8.5/src/Daemon/.libs/abrtd
186751 2776 2320 191847 2ed67 abrt.t6/abrt-0.0.8.5/src/Daemon/.libs/abrtd
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Plugins/RunApp.cpp | 2 | ||||
-rw-r--r-- | lib/Utils/DebugDump.cpp | 10 | ||||
-rw-r--r-- | lib/Utils/DebugDump.h | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/lib/Plugins/RunApp.cpp b/lib/Plugins/RunApp.cpp index 4bc53181..fdbc3a75 100644 --- a/lib/Plugins/RunApp.cpp +++ b/lib/Plugins/RunApp.cpp @@ -83,7 +83,7 @@ void CActionRunApp::Run(const std::string& pActionDir, { CDebugDump dd; dd.Open(pActionDir); - dd.SaveText(args[FILENAME], output); + dd.SaveText(args[FILENAME].c_str(), output); dd.Close(); } } diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp index 345dbf02..e607d940 100644 --- a/lib/Utils/DebugDump.cpp +++ b/lib/Utils/DebugDump.cpp @@ -410,7 +410,7 @@ static void SaveBinaryFile(const std::string& pPath, const char* pData, const un } } -void CDebugDump::LoadText(const std::string& pName, std::string& pData) +void CDebugDump::LoadText(const char* pName, std::string& pData) { if (!m_bOpened) { @@ -419,7 +419,7 @@ void CDebugDump::LoadText(const std::string& pName, std::string& pData) std::string fullPath = m_sDebugDumpDir + "/" + pName; LoadTextFile(fullPath, pData); } -void CDebugDump::LoadBinary(const std::string& pName, char** pData, unsigned int* pSize) +void CDebugDump::LoadBinary(const char* pName, char** pData, unsigned int* pSize) { if (!m_bOpened) { @@ -429,7 +429,7 @@ void CDebugDump::LoadBinary(const std::string& pName, char** pData, unsigned int LoadBinaryFile(fullPath, pData, pSize); } -void CDebugDump::SaveText(const std::string& pName, const std::string& pData) +void CDebugDump::SaveText(const char* pName, const std::string& pData) { if (!m_bOpened) { @@ -438,7 +438,7 @@ void CDebugDump::SaveText(const std::string& pName, const std::string& pData) std::string fullPath = m_sDebugDumpDir + "/" + pName; SaveTextFile(fullPath, pData); } -void CDebugDump::SaveBinary(const std::string& pName, const char* pData, const unsigned int pSize) +void CDebugDump::SaveBinary(const char* pName, const char* pData, const unsigned int pSize) { if (!m_bOpened) { @@ -489,7 +489,7 @@ bool CDebugDump::GetNextFile(std::string& pFileName, std::string& pContent, bool pFileName = dent->d_name; if (IsTextFile(fullname)) { - LoadText(pFileName, pContent); + LoadText(dent->d_name, pContent); pIsTextFile = true; } else diff --git a/lib/Utils/DebugDump.h b/lib/Utils/DebugDump.h index 573c6073..c5ee060d 100644 --- a/lib/Utils/DebugDump.h +++ b/lib/Utils/DebugDump.h @@ -64,11 +64,11 @@ class CDebugDump bool Exist(const char* pFileName); - void LoadText(const std::string& pName, std::string& pData); - void LoadBinary(const std::string& pName, char** pData, unsigned int* pSize); + void LoadText(const char* pName, std::string& pData); + void LoadBinary(const char* pName, char** pData, unsigned int* pSize); - void SaveText(const std::string& pName, const std::string& pData); - void SaveBinary(const std::string& pName, const char* pData, const unsigned int pSize); + void SaveText(const char* pName, const std::string& pData); + void SaveBinary(const char* pName, const char* pData, const unsigned int pSize); void InitGetNextFile(); bool GetNextFile(std::string& pFileName, std::string& pContent, bool& pIsTextFile); |