diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-09 15:23:53 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-09 15:23:53 +0200 |
commit | 316aea6fd30a7334e4494bb8b2d562fc39e45ae7 (patch) | |
tree | c206d5e27562319eb76bf2887f28dc12808131b5 /lib/Utils | |
parent | d600df86d51308bacdaa4fa383eea35355e0b4a9 (diff) | |
download | abrt-316aea6fd30a7334e4494bb8b2d562fc39e45ae7.tar.gz abrt-316aea6fd30a7334e4494bb8b2d562fc39e45ae7.tar.xz abrt-316aea6fd30a7334e4494bb8b2d562fc39e45ae7.zip |
replace one const string& parameter with const char*. almost -1k of code (!)
text data bss dec hex filename
189533 2776 2320 194629 2f845 abrt.t4/abrt-0.0.8.5/src/Daemon/.libs/abrtd
188660 2776 2320 193756 2f4dc abrt.t6/abrt-0.0.8.5/src/Daemon/.libs/abrtd
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils')
-rw-r--r-- | lib/Utils/DebugDump.cpp | 2 | ||||
-rw-r--r-- | lib/Utils/DebugDump.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp index 330e1cc9..345dbf02 100644 --- a/lib/Utils/DebugDump.cpp +++ b/lib/Utils/DebugDump.cpp @@ -68,7 +68,7 @@ void CDebugDump::Open(const std::string& pDir) m_bOpened = true; } -bool CDebugDump::Exist(const std::string& pPath) +bool CDebugDump::Exist(const char* pPath) { std::string fullPath = m_sDebugDumpDir + "/" + pPath; return ExistFileDir(fullPath); diff --git a/lib/Utils/DebugDump.h b/lib/Utils/DebugDump.h index 9a7427e8..573c6073 100644 --- a/lib/Utils/DebugDump.h +++ b/lib/Utils/DebugDump.h @@ -62,7 +62,7 @@ class CDebugDump void Delete(); void Close(); - bool Exist(const std::string& pFileName); + 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); |