summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_localemgr.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-07-16 17:41:46 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-16 17:41:46 +0000
commit98bae9c95d916f528ed1a394e68e02e39ad709fa (patch)
tree1de349187bfbd456c9a848a943e4c4b966ce5334 /xfa/fxfa/parser/cxfa_localemgr.h
parentf4caece8726313041eb20ffbfc695bffae8ebd0a (diff)
downloadpdfium-98bae9c95d916f528ed1a394e68e02e39ad709fa.tar.xz
Use UnownedPtr in CXFA_LocaleMgr
Change-Id: I74b1828570e54a3868a77231a8ac13bc412c6c43 Reviewed-on: https://pdfium-review.googlesource.com/37051 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_localemgr.h')
-rw-r--r--xfa/fxfa/parser/cxfa_localemgr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_localemgr.h b/xfa/fxfa/parser/cxfa_localemgr.h
index c72e23ab5a..a59fdcdda6 100644
--- a/xfa/fxfa/parser/cxfa_localemgr.h
+++ b/xfa/fxfa/parser/cxfa_localemgr.h
@@ -10,6 +10,7 @@
#include <memory>
#include <vector>
+#include "core/fxcrt/unowned_ptr.h"
#include "core/fxcrt/widestring.h"
class CXFA_Node;
@@ -31,7 +32,10 @@ class CXFA_LocaleMgr {
std::vector<std::unique_ptr<LocaleIface>> m_LocaleArray;
std::vector<std::unique_ptr<LocaleIface>> m_XMLLocaleArray;
- LocaleIface* m_pDefLocale; // owned by m_LocaleArray or m_XMLLocaleArray.
+
+ // Owned by m_LocaleArray or m_XMLLocaleArray.
+ UnownedPtr<LocaleIface> m_pDefLocale;
+
WideString m_wsConfigLocale;
uint16_t m_dwDeflcid;
bool m_hasSetLocaleName = false;