diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-06-06 15:47:59 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-06 19:59:48 +0000 |
commit | 7dee685df0309401ad37c30c49a56d8523d1f8bb (patch) | |
tree | 4d565976050e1414edaddb8ec13ac5f44b62c255 /xfa/fgas/crt/cfgas_formatstring.h | |
parent | db124cff7ebb0b751fe86ca447dbee31363a64be (diff) | |
download | pdfium-7dee685df0309401ad37c30c49a56d8523d1f8bb.tar.xz |
Convert CFGAS_FormatString to pointer out parameterschromium/3123
This CL changes all CFGAS_FormatString methods to use pointer out
paramters instead of reference out parameters.
Change-Id: Ic5b57f30e4be09233898b8f4e06f908a96afedc8
Reviewed-on: https://pdfium-review.googlesource.com/6272
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'xfa/fgas/crt/cfgas_formatstring.h')
-rw-r--r-- | xfa/fgas/crt/cfgas_formatstring.h | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/xfa/fgas/crt/cfgas_formatstring.h b/xfa/fgas/crt/cfgas_formatstring.h index a8cb917697..87252f472e 100644 --- a/xfa/fgas/crt/cfgas_formatstring.h +++ b/xfa/fgas/crt/cfgas_formatstring.h @@ -23,14 +23,14 @@ class CFGAS_FormatString { ~CFGAS_FormatString(); void SplitFormatString(const CFX_WideString& wsFormatString, - std::vector<CFX_WideString>& wsPatterns); + std::vector<CFX_WideString>* wsPatterns); FX_LOCALECATEGORY GetCategory(const CFX_WideString& wsPattern); bool ParseText(const CFX_WideString& wsSrcText, const CFX_WideString& wsPattern, - CFX_WideString& wsValue); + CFX_WideString* wsValue); bool ParseNum(const CFX_WideString& wsSrcNum, const CFX_WideString& wsPattern, - CFX_WideString& wsValue); + CFX_WideString* wsValue); bool ParseDateTime(const CFX_WideString& wsSrcDateTime, const CFX_WideString& wsPattern, FX_DATETIMETYPE eDateTimeType, @@ -41,32 +41,31 @@ class CFGAS_FormatString { const CFX_WideString& wsPattern); bool FormatText(const CFX_WideString& wsSrcText, const CFX_WideString& wsPattern, - CFX_WideString& wsOutput); + CFX_WideString* wsOutput); bool FormatNum(const CFX_WideString& wsSrcNum, const CFX_WideString& wsPattern, - CFX_WideString& wsOutput); + CFX_WideString* wsOutput); bool FormatDateTime(const CFX_WideString& wsSrcDateTime, const CFX_WideString& wsPattern, - CFX_WideString& wsOutput, - FX_DATETIMETYPE eDateTimeType); - bool FormatZero(const CFX_WideString& wsPattern, CFX_WideString& wsOutput); - bool FormatNull(const CFX_WideString& wsPattern, CFX_WideString& wsOutput); + FX_DATETIMETYPE eDateTimeType, + CFX_WideString* wsOutput); + bool FormatZero(const CFX_WideString& wsPattern, CFX_WideString* wsOutput); + bool FormatNull(const CFX_WideString& wsPattern, CFX_WideString* wsOutput); private: - void GetTextFormat(const CFX_WideString& wsPattern, - const CFX_WideStringC& wsCategory, - CFX_WideString& wsPurgePattern); + CFX_WideString GetTextFormat(const CFX_WideString& wsPattern, + const CFX_WideStringC& wsCategory); IFX_Locale* GetNumericFormat(const CFX_WideString& wsPattern, - int32_t& iDotIndex, - uint32_t& dwStyle, - CFX_WideString& wsPurgePattern); + int32_t* iDotIndex, + uint32_t* dwStyle, + CFX_WideString* wsPurgePattern); bool FormatStrNum(const CFX_WideStringC& wsInputNum, const CFX_WideString& wsPattern, - CFX_WideString& wsOutput); + CFX_WideString* wsOutput); FX_DATETIMETYPE GetDateTimeFormat(const CFX_WideString& wsPattern, - IFX_Locale*& pLocale, - CFX_WideString& wsDatePattern, - CFX_WideString& wsTimePattern); + IFX_Locale** pLocale, + CFX_WideString* wsDatePattern, + CFX_WideString* wsTimePattern); CXFA_LocaleMgr* m_pLocaleMgr; }; |