diff options
author | Matt Ellis <matell@microsoft.com> | 2015-10-21 11:20:48 -0700 |
---|---|---|
committer | Matt Ellis <matell@microsoft.com> | 2015-10-21 13:49:01 -0700 |
commit | 806dea821e3f02f7e3da9f0d9a9f6aaf4929cef8 (patch) | |
tree | 1dde100cc495d18b240d9af36ed41d9dd15f1477 /src/corefx | |
parent | b3efdce6526c351589f2262d655d9739519aed8f (diff) | |
download | coreclr-806dea821e3f02f7e3da9f0d9a9f6aaf4929cef8.tar.gz coreclr-806dea821e3f02f7e3da9f0d9a9f6aaf4929cef8.tar.bz2 coreclr-806dea821e3f02f7e3da9f0d9a9f6aaf4929cef8.zip |
Hygine cleanups in holders.h
Use "= delete" syntax to make it clear the IcuHolder copy constructor
and assignment opperators are removed.
Remove superfluous "public" modifier on the struct closers used by the
IcuHolders.
Diffstat (limited to 'src/corefx')
-rw-r--r-- | src/corefx/System.Globalization.Native/holders.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/corefx/System.Globalization.Native/holders.h b/src/corefx/System.Globalization.Native/holders.h index 3e081893f4..9176de3b20 100644 --- a/src/corefx/System.Globalization.Native/holders.h +++ b/src/corefx/System.Globalization.Native/holders.h @@ -34,13 +34,12 @@ class IcuHolder private: T* m_p; - IcuHolder(const IcuHolder&); - IcuHolder operator=(const IcuHolder&); + IcuHolder(const IcuHolder&) = delete; + IcuHolder operator=(const IcuHolder&) = delete; }; struct UCalendarCloser { - public: void operator()(UCalendar* pCal) const { ucal_close(pCal); @@ -49,7 +48,6 @@ struct UCalendarCloser struct UEnumerationCloser { - public: void operator()(UEnumeration* pEnum) const { uenum_close(pEnum); @@ -58,7 +56,6 @@ struct UEnumerationCloser struct UDateTimePatternGeneratorCloser { - public: void operator()(UDateTimePatternGenerator* pGenerator) const { udatpg_close(pGenerator); @@ -67,7 +64,6 @@ struct UDateTimePatternGeneratorCloser struct UDateFormatCloser { - public: void operator()(UDateFormat* pDateFormat) const { udat_close(pDateFormat); |