From 316aea6fd30a7334e4494bb8b2d562fc39e45ae7 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 9 Sep 2009 15:23:53 +0200 Subject: 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 --- lib/Utils/DebugDump.cpp | 2 +- lib/Utils/DebugDump.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp index 330e1cc..345dbf0 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 9a7427e..573c607 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); -- cgit