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

Unified Diff: core/fpdfapi/parser/cpdf_string.h

Issue 2510223002: Make CPDF_Dictionary use unique pointers. (Closed)
Patch Set: Plug leaks Created 4 years, 1 month 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/parser/cpdf_string.h
diff --git a/core/fpdfapi/parser/cpdf_string.h b/core/fpdfapi/parser/cpdf_string.h
index 616e3b593de6a5948b680ad376922e73945088e8..98b878132070b926dc881178fd40fc284e2a3320 100644
--- a/core/fpdfapi/parser/cpdf_string.h
+++ b/core/fpdfapi/parser/cpdf_string.h
@@ -19,7 +19,7 @@ class CPDF_String : public CPDF_Object {
CPDF_String(CFX_WeakPtr<CFX_ByteStringPool> pPool,
const CFX_ByteString& str,
bool bHex);
- explicit CPDF_String(const CFX_WideString& str);
+ CPDF_String(CFX_WeakPtr<CFX_ByteStringPool> pPool, const CFX_WideString& str);
Lei Zhang 2016/11/18 23:28:35 If we have this new ctor, then can we change a bun
Lei Zhang 2016/11/18 23:58:59 Oh, I missed ByteString vs WideString, n/m.
~CPDF_String() override;
// CPDF_Object:

Powered by Google App Engine
This is Rietveld 408576698