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

Unified Diff: xfa/fxfa/parser/cxfa_resolveprocessor.h

Issue 2227883002: Use smart pointers for class owned pointers in xfa/fxfa (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 4 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
« no previous file with comments | « xfa/fxfa/include/xfa_ffdocview.h ('k') | xfa/fxfa/parser/cxfa_resolveprocessor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxfa/parser/cxfa_resolveprocessor.h
diff --git a/xfa/fxfa/parser/cxfa_resolveprocessor.h b/xfa/fxfa/parser/cxfa_resolveprocessor.h
index 4db0ea2270ea345357f7068a966091263e3e85d1..630a54ea3cab28694ed00d66669b24b292b34d2f 100644
--- a/xfa/fxfa/parser/cxfa_resolveprocessor.h
+++ b/xfa/fxfa/parser/cxfa_resolveprocessor.h
@@ -7,6 +7,8 @@
#ifndef XFA_FXFA_PARSER_CXFA_RESOLVEPROCESSOR_H_
#define XFA_FXFA_PARSER_CXFA_RESOLVEPROCESSOR_H_
+#include <memory>
+
#include "xfa/fxfa/parser/xfa_object.h"
#include "xfa/fxfa/parser/xfa_resolvenode_rs.h"
@@ -46,7 +48,7 @@ class CXFA_ResolveProcessor {
int32_t iCount);
void SetCurStart(int32_t start) { m_iCurStart = start; }
- CXFA_NodeHelper* GetNodeHelper() { return m_pNodeHelper; }
+ CXFA_NodeHelper* GetNodeHelper() const { return m_pNodeHelper.get(); }
private:
int32_t ResolveForAttributeRs(CXFA_Object* curNode,
@@ -72,7 +74,7 @@ class CXFA_ResolveProcessor {
void FilterCondition(CXFA_ResolveNodesData& rnd, CFX_WideString wsCondition);
int32_t m_iCurStart;
- CXFA_NodeHelper* m_pNodeHelper;
+ std::unique_ptr<CXFA_NodeHelper> m_pNodeHelper;
};
#endif // XFA_FXFA_PARSER_CXFA_RESOLVEPROCESSOR_H_
« no previous file with comments | « xfa/fxfa/include/xfa_ffdocview.h ('k') | xfa/fxfa/parser/cxfa_resolveprocessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698