summaryrefslogtreecommitdiff
path: root/core/src/fpdfdoc/doc_action.cpp
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2016-02-18 14:04:57 -0800
committerWei Li <weili@chromium.org>2016-02-18 14:04:57 -0800
commit65b3655fc3f858180122399654bf29dc5d11a4ba (patch)
tree6716bbab3ac319ae7677c0c52e6a8839decd6316 /core/src/fpdfdoc/doc_action.cpp
parent4422dbd49b949a7019294e91edac96c761430e71 (diff)
downloadpdfium-65b3655fc3f858180122399654bf29dc5d11a4ba.tar.xz
Clean up CPDF_FileSpec and add unit tests
Change implicit conversion to accessor function, remove unused function and unused parameter, add a couple checks for null pointers, and some cleanup. BUG=pdfium:247 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1703183002 .
Diffstat (limited to 'core/src/fpdfdoc/doc_action.cpp')
-rw-r--r--core/src/fpdfdoc/doc_action.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfdoc/doc_action.cpp b/core/src/fpdfdoc/doc_action.cpp
index 97ca046bb9..94235d2aee 100644
--- a/core/src/fpdfdoc/doc_action.cpp
+++ b/core/src/fpdfdoc/doc_action.cpp
@@ -66,7 +66,7 @@ CFX_WideString CPDF_Action::GetFilePath() const {
return path;
}
CPDF_FileSpec filespec(pFile);
- filespec.GetFileName(path);
+ filespec.GetFileName(&path);
return path;
}
CFX_ByteString CPDF_Action::GetURI(CPDF_Document* pDoc) const {