|
Clean up CPDF_Stream.
Replace the CPDF_Stream(nullptr, 0, nullptr) pattern with
a default ctor.
Remove unused parameters from CPDF_Stream::SetData(). Both
are always passed as FALSE.
CPDF_Stream declared its own m_GenNum, which shadowed the one
in CPDF_Object. It was used only to distinguish file/memory
streams, so add a bool explicitly for this purpose.
Remove the union, it would be sad if we confused user data
with a C++ object with virtual function calls.
Use unique_ptrs with appropriate deleters to manage memory.
Committed: https://pdfium.googlesource.com/pdfium/+/e6db16e7e6cdc3dd213c16de0d792b77656ac7a6
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+77 lines, -113 lines) |
Patch |
|
M |
core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp
|
View
|
1
2
|
3 chunks |
+11 lines, -7 lines |
0 comments
|
Download
|
|
M |
core/fpdfapi/fpdf_page/cpdf_image.cpp
|
View
|
1
2
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
core/fpdfapi/fpdf_parser/cpdf_stream.cpp
|
View
|
1
2
|
3 chunks |
+32 lines, -61 lines |
0 comments
|
Download
|
|
M |
core/fpdfapi/fpdf_parser/include/cpdf_stream.h
|
View
|
1
2
|
3 chunks |
+14 lines, -19 lines |
1 comment
|
Download
|
|
M |
core/fpdfdoc/cpvt_generateap.cpp
|
View
|
1
2
|
4 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
|
M |
fpdfsdk/cpdfsdk_baannot.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
fpdfsdk/formfiller/cba_fontmap.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
fpdfsdk/fpdf_flatten.cpp
|
View
|
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
fpdfsdk/fpdf_transformpage.cpp
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
fpdfsdk/fpdfsave.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 23 (18 generated)
|