Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: core/fpdfapi/fpdf_parser/cpdf_stream.cpp

Issue 2345063002: Use string pools in some dictionaries (Closed)
Patch Set: Remove default ctor Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/fpdfapi/fpdf_parser/cpdf_stream.cpp
diff --git a/core/fpdfapi/fpdf_parser/cpdf_stream.cpp b/core/fpdfapi/fpdf_parser/cpdf_stream.cpp
index e25180bedbfbf06e589f1e9f88e214e7e3b659e9..184ac8898f0203e1aa2ae693fc01e230226d5881 100644
--- a/core/fpdfapi/fpdf_parser/cpdf_stream.cpp
+++ b/core/fpdfapi/fpdf_parser/cpdf_stream.cpp
@@ -111,7 +111,7 @@ void CPDF_Stream::SetData(const uint8_t* pData,
}
m_dwSize = size;
if (!m_pDict)
- m_pDict = new CPDF_Dictionary;
+ m_pDict = new CPDF_Dictionary(nullptr);
m_pDict->SetIntegerFor("Length", size);
if (!bCompressed) {
m_pDict->RemoveFor("Filter");

Powered by Google App Engine
This is Rietveld 408576698