diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-24 01:36:40 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-24 01:36:40 +0000 |
commit | dbf13f6562a902df17f6e543d3be844ca82956e2 (patch) | |
tree | 7ba195555b7534e51708fd8d26000db0700b7cfe /core/fxcrt/cfx_seekablemultistream_unittest.cpp | |
parent | 7e33dbeec78dfa051df52619672133da6a799240 (diff) | |
download | pdfium-dbf13f6562a902df17f6e543d3be844ca82956e2.tar.xz |
Improve constness for more CPDF_Objects pointers.
Most of them can be marked const. A couple are marked non-const because
eventually something inside gets modified.
Change-Id: I5415ca8d1efdac451cde340272436cd1e6ec433f
Reviewed-on: https://pdfium-review.googlesource.com/32184
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_seekablemultistream_unittest.cpp')
-rw-r--r-- | core/fxcrt/cfx_seekablemultistream_unittest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxcrt/cfx_seekablemultistream_unittest.cpp b/core/fxcrt/cfx_seekablemultistream_unittest.cpp index 89213b13af..89be1bd180 100644 --- a/core/fxcrt/cfx_seekablemultistream_unittest.cpp +++ b/core/fxcrt/cfx_seekablemultistream_unittest.cpp @@ -15,7 +15,7 @@ #include "third_party/base/ptr_util.h" TEST(CFX_SeekableMultiStreamTest, NoStreams) { - std::vector<CPDF_Stream*> streams; + std::vector<const CPDF_Stream*> streams; auto fileread = pdfium::MakeRetain<CFX_SeekableMultiStream>(streams); uint8_t output_buffer[16]; @@ -25,7 +25,7 @@ TEST(CFX_SeekableMultiStreamTest, NoStreams) { } TEST(CXFAFileReadTest, EmptyStreams) { - std::vector<CPDF_Stream*> streams; + std::vector<const CPDF_Stream*> streams; auto stream1 = pdfium::MakeUnique<CPDF_Stream>(); streams.push_back(stream1.get()); auto fileread = pdfium::MakeRetain<CFX_SeekableMultiStream>(streams); @@ -37,7 +37,7 @@ TEST(CXFAFileReadTest, EmptyStreams) { } TEST(CXFAFileReadTest, NormalStreams) { - std::vector<CPDF_Stream*> streams; + std::vector<const CPDF_Stream*> streams; auto stream1 = pdfium::MakeUnique<CPDF_Stream>(); auto stream2 = pdfium::MakeUnique<CPDF_Stream>(); auto stream3 = pdfium::MakeUnique<CPDF_Stream>(); |