summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 01:24:06 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 01:24:06 +0000
commit7feb8500ebed1895f08d9716afc092a10a2f7b07 (patch)
treeee94765b323327e3fd8dfc661335ea0ee065e009 /sandbox
parent79c266203684643750a573e431cdb0fc0af5d850 (diff)
downloadchromium_src-7feb8500ebed1895f08d9716afc092a10a2f7b07.zip
chromium_src-7feb8500ebed1895f08d9716afc092a10a2f7b07.tar.gz
chromium_src-7feb8500ebed1895f08d9716afc092a10a2f7b07.tar.bz2
Coverity: Fix several pass-by-values.
CID_COUNT=8 CID=7757,8647,11476,16931,16932,100206,100577,102872 BUG=none TEST=none R=tbreisacher@chromium.org TBR=brettw@chromium.org,kalman@chromium.org Review URL: https://chromiumcodereview.appspot.com/10824033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148687 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/win/src/process_thread_dispatcher.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/win/src/process_thread_dispatcher.cc b/sandbox/win/src/process_thread_dispatcher.cc
index 2df203a..b2331b7 100644
--- a/sandbox/win/src/process_thread_dispatcher.cc
+++ b/sandbox/win/src/process_thread_dispatcher.cc
@@ -64,7 +64,7 @@ bool IsPathRelative(const std::wstring &path) {
}
// Converts a relative path to an absolute path.
-bool ConvertToAbsolutePath(const std::wstring child_current_directory,
+bool ConvertToAbsolutePath(const std::wstring& child_current_directory,
bool use_env_path, std::wstring *path) {
wchar_t file_buffer[MAX_PATH];
wchar_t *file_part = NULL;