diff options
author | Lei Zhang <thestig@chromium.org> | 2015-06-19 14:58:28 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-06-19 14:58:28 -0700 |
commit | 568aff520b4ca33d851317a4ea88807b4fd2da40 (patch) | |
tree | 02c6409057908381d36efcd556dd8082044d5509 /xfa/src/fgas/include/fx_locale.h | |
parent | c49828916f5b0766f8d6f0fd5bf0a6cc5bd3c1ec (diff) | |
download | pdfium-568aff520b4ca33d851317a4ea88807b4fd2da40.tar.xz |
Fix -Wnon-virtual-dtor warnings on the XFA branch.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1183483003.
Diffstat (limited to 'xfa/src/fgas/include/fx_locale.h')
-rw-r--r-- | xfa/src/fgas/include/fx_locale.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xfa/src/fgas/include/fx_locale.h b/xfa/src/fgas/include/fx_locale.h index b377f981e4..025814c7c2 100644 --- a/xfa/src/fgas/include/fx_locale.h +++ b/xfa/src/fgas/include/fx_locale.h @@ -49,14 +49,15 @@ enum FX_DATETIMETYPE { FX_DATETIMETYPE_DateTime,
FX_DATETIMETYPE_TimeDate,
};
+
class IFX_Locale
{
public:
static IFX_Locale* Create(CXML_Element* pLocaleData);
+ virtual ~IFX_Locale() {}
virtual void Release() = 0;
-
virtual CFX_WideString GetName() = 0;
virtual void GetNumbericSymbol(FX_LOCALENUMSYMBOL eType, CFX_WideString& wsNumSymbol) const = 0;
@@ -70,9 +71,11 @@ public: virtual void GetTimePattern(FX_LOCALEDATETIMESUBCATEGORY eType, CFX_WideString& wsPattern) const = 0;
virtual void GetNumPattern(FX_LOCALENUMSUBCATEGORY eType, CFX_WideString& wsPattern) const = 0;
};
+
class IFX_LocaleMgr
{
public:
+ virtual ~IFX_LocaleMgr() {}
virtual void Release() = 0;
virtual FX_WORD GetDefLocaleID() = 0;
virtual IFX_Locale* GetDefLocale() = 0;
@@ -88,6 +91,7 @@ class IFX_FormatString public:
static IFX_FormatString* Create(IFX_LocaleMgr* pLocaleMgr, FX_BOOL bUseLCID);
+ virtual ~IFX_FormatString() {}
virtual void Release() = 0;
virtual void SplitFormatString(const CFX_WideString& wsFormatString, CFX_WideStringArray& wsPatterns) = 0;
virtual FX_LOCALECATEGORY GetCategory(const CFX_WideString& wsPattern) = 0;
|