diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 17:36:47 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 17:36:47 +0000 |
commit | 5d1c2aa14ddacea07ca8dbf27c7d14055fdfb8e4 (patch) | |
tree | 51829c5fb146f1cc231028d219c80cf8af72fea2 /chrome/browser/safe_browsing | |
parent | 92120ca34326bb02dad597abcdcd7b3e1e76a1fa (diff) | |
download | chromium_src-5d1c2aa14ddacea07ca8dbf27c7d14055fdfb8e4.zip chromium_src-5d1c2aa14ddacea07ca8dbf27c7d14055fdfb8e4.tar.gz chromium_src-5d1c2aa14ddacea07ca8dbf27c7d14055fdfb8e4.tar.bz2 |
Fix errors detected by coverity.
Review URL: http://codereview.chromium.org/48136
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11981 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_database_unittest.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc b/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc index 03a372d..59dc5ba 100644 --- a/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc +++ b/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc @@ -1176,22 +1176,22 @@ void UpdateDatabase(const std::wstring& initial_db, namespace { -const wchar_t* GetOldSafeBrowsingPath() { +std::wstring GetOldSafeBrowsingPath() { std::wstring path = L"old"; file_util::AppendToPath(&path, L"SafeBrowsing"); - return path.c_str(); + return path; } -const wchar_t* GetOldResponsePath() { +std::wstring GetOldResponsePath() { std::wstring path = L"old"; file_util::AppendToPath(&path, L"response"); - return path.c_str(); + return path; } -const wchar_t* GetOldUpdatesPath() { +std::wstring GetOldUpdatesPath() { std::wstring path = L"old"; file_util::AppendToPath(&path, L"updates"); - return path.c_str(); + return path; } } // namespace |