summaryrefslogtreecommitdiffstats
path: root/lib/Utils/DebugDump.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-09-09 16:07:07 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-09-09 16:07:07 +0200
commit320b7eae1821cb3f92a8e19d6ea6fa70be552d29 (patch)
treef75b34f244fed4fabff8636ecaddeeb86c06df76 /lib/Utils/DebugDump.cpp
parentf6481dd5fb52b85fbb8c74ad3b3c476e7eba84fb (diff)
parent741de5ede91b74bb7bd4e8e23db96178056f5613 (diff)
downloadabrt-320b7eae1821cb3f92a8e19d6ea6fa70be552d29.tar.gz
abrt-320b7eae1821cb3f92a8e19d6ea6fa70be552d29.tar.xz
abrt-320b7eae1821cb3f92a8e19d6ea6fa70be552d29.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/Utils/DebugDump.cpp')
-rw-r--r--lib/Utils/DebugDump.cpp10
1 files changed, 5 insertions, 5 deletions
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