Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 21567a7

Browse files
committed
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.
1 parent 05a0a84 commit 21567a7

File tree

1 file changed

+2
-6
lines changed
  • src/corefx/System.Globalization.Native

1 file changed

+2
-6
lines changed

src/corefx/System.Globalization.Native/holders.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ class IcuHolder
3434

3535
private:
3636
T* m_p;
37-
IcuHolder(const IcuHolder&);
38-
IcuHolder operator=(const IcuHolder&);
37+
IcuHolder(const IcuHolder&) = delete;
38+
IcuHolder operator=(const IcuHolder&) = delete;
3939
};
4040

4141
struct UCalendarCloser
4242
{
43-
public:
4443
void operator()(UCalendar* pCal) const
4544
{
4645
ucal_close(pCal);
@@ -49,7 +48,6 @@ struct UCalendarCloser
4948

5049
struct UEnumerationCloser
5150
{
52-
public:
5351
void operator()(UEnumeration* pEnum) const
5452
{
5553
uenum_close(pEnum);
@@ -58,7 +56,6 @@ struct UEnumerationCloser
5856

5957
struct UDateTimePatternGeneratorCloser
6058
{
61-
public:
6259
void operator()(UDateTimePatternGenerator* pGenerator) const
6360
{
6461
udatpg_close(pGenerator);
@@ -67,7 +64,6 @@ struct UDateTimePatternGeneratorCloser
6764

6865
struct UDateFormatCloser
6966
{
70-
public:
7167
void operator()(UDateFormat* pDateFormat) const
7268
{
7369
udat_close(pDateFormat);

0 commit comments

Comments
 (0)