Skip to content

Commit bbc7952

Browse files
committed
Revert "Fix some review comments"
This reverts commit 58e429f.
1 parent 58e429f commit bbc7952

File tree

3 files changed

+39
-28
lines changed

3 files changed

+39
-28
lines changed

src/libxrpl/beast/insight/Groups.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ class GroupImp : public std::enable_shared_from_this<GroupImp>, public Group
3232

3333
~GroupImp() = default;
3434

35-
GroupImp&
36-
operator=(GroupImp const&) = delete;
37-
3835
std::string const&
3936
name() const override
4037
{
@@ -76,6 +73,10 @@ class GroupImp : public std::enable_shared_from_this<GroupImp>, public Group
7673
{
7774
return m_collector->make_meter(make_name(name));
7875
}
76+
77+
private:
78+
GroupImp&
79+
operator=(GroupImp const&);
7980
};
8081

8182
//------------------------------------------------------------------------------
@@ -92,6 +93,8 @@ class GroupsImp : public Groups
9293
{
9394
}
9495

96+
~GroupsImp() = default;
97+
9598
Group::ptr const&
9699
get(std::string const& name) override
97100
{

src/libxrpl/beast/insight/NullCollector.cpp

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ class NullHookImpl : public HookImpl
2424
public:
2525
explicit NullHookImpl() = default;
2626

27+
private:
2728
NullHookImpl&
28-
operator=(NullHookImpl const&) = delete;
29+
operator=(NullHookImpl const&);
2930
};
3031

3132
//------------------------------------------------------------------------------
@@ -35,13 +36,14 @@ class NullCounterImpl : public CounterImpl
3536
public:
3637
explicit NullCounterImpl() = default;
3738

38-
NullCounterImpl&
39-
operator=(NullCounterImpl const&) = delete;
40-
4139
void
4240
increment(value_type) override
4341
{
4442
}
43+
44+
private:
45+
NullCounterImpl&
46+
operator=(NullCounterImpl const&);
4547
};
4648

4749
//------------------------------------------------------------------------------
@@ -51,13 +53,14 @@ class NullEventImpl : public EventImpl
5153
public:
5254
explicit NullEventImpl() = default;
5355

54-
NullEventImpl&
55-
operator=(NullEventImpl const&) = delete;
56-
5756
void
5857
notify(value_type const&) override
5958
{
6059
}
60+
61+
private:
62+
NullEventImpl&
63+
operator=(NullEventImpl const&);
6164
};
6265

6366
//------------------------------------------------------------------------------
@@ -67,9 +70,6 @@ class NullGaugeImpl : public GaugeImpl
6770
public:
6871
explicit NullGaugeImpl() = default;
6972

70-
NullGaugeImpl&
71-
operator=(NullGaugeImpl const&) = delete;
72-
7373
void
7474
set(value_type) override
7575
{
@@ -79,6 +79,10 @@ class NullGaugeImpl : public GaugeImpl
7979
increment(difference_type) override
8080
{
8181
}
82+
83+
private:
84+
NullGaugeImpl&
85+
operator=(NullGaugeImpl const&);
8286
};
8387

8488
//------------------------------------------------------------------------------
@@ -88,13 +92,14 @@ class NullMeterImpl : public MeterImpl
8892
public:
8993
explicit NullMeterImpl() = default;
9094

91-
NullMeterImpl&
92-
operator=(NullMeterImpl const&) = delete;
93-
9495
void
9596
increment(value_type) override
9697
{
9798
}
99+
100+
private:
101+
NullMeterImpl&
102+
operator=(NullMeterImpl const&);
98103
};
99104

100105
//------------------------------------------------------------------------------

src/libxrpl/beast/insight/StatsDCollector.cpp

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ class StatsDCounterImpl : public CounterImpl, public StatsDMetricBase
8585
{
8686
public:
8787
StatsDCounterImpl(std::string const& name, std::shared_ptr<StatsDCollectorImp> const& impl);
88-
~StatsDCounterImpl() override;
8988

90-
StatsDCounterImpl&
91-
operator=(StatsDCounterImpl const&) = delete;
89+
~StatsDCounterImpl() override;
9290

9391
void
9492
increment(CounterImpl::value_type amount) override;
@@ -101,6 +99,9 @@ class StatsDCounterImpl : public CounterImpl, public StatsDMetricBase
10199
do_process() override;
102100

103101
private:
102+
StatsDCounterImpl&
103+
operator=(StatsDCounterImpl const&);
104+
104105
std::shared_ptr<StatsDCollectorImp> m_impl;
105106
std::string m_name;
106107
CounterImpl::value_type m_value;
@@ -113,10 +114,8 @@ class StatsDEventImpl : public EventImpl
113114
{
114115
public:
115116
StatsDEventImpl(std::string const& name, std::shared_ptr<StatsDCollectorImp> const& impl);
116-
~StatsDEventImpl() = default;
117117

118-
StatsDEventImpl&
119-
operator=(StatsDEventImpl const&) = delete;
118+
~StatsDEventImpl() = default;
120119

121120
void
122121
notify(EventImpl::value_type const& value) override;
@@ -127,6 +126,9 @@ class StatsDEventImpl : public EventImpl
127126
do_process();
128127

129128
private:
129+
StatsDEventImpl&
130+
operator=(StatsDEventImpl const&);
131+
130132
std::shared_ptr<StatsDCollectorImp> m_impl;
131133
std::string m_name;
132134
};
@@ -137,10 +139,8 @@ class StatsDGaugeImpl : public GaugeImpl, public StatsDMetricBase
137139
{
138140
public:
139141
StatsDGaugeImpl(std::string const& name, std::shared_ptr<StatsDCollectorImp> const& impl);
140-
~StatsDGaugeImpl() override;
141142

142-
StatsDGaugeImpl&
143-
operator=(StatsDGaugeImpl const&) = delete;
143+
~StatsDGaugeImpl() override;
144144

145145
void
146146
set(GaugeImpl::value_type value) override;
@@ -157,6 +157,9 @@ class StatsDGaugeImpl : public GaugeImpl, public StatsDMetricBase
157157
do_process() override;
158158

159159
private:
160+
StatsDGaugeImpl&
161+
operator=(StatsDGaugeImpl const&);
162+
160163
std::shared_ptr<StatsDCollectorImp> m_impl;
161164
std::string m_name;
162165
GaugeImpl::value_type m_last_value;
@@ -175,9 +178,6 @@ class StatsDMeterImpl : public MeterImpl, public StatsDMetricBase
175178

176179
~StatsDMeterImpl() override;
177180

178-
StatsDMeterImpl&
179-
operator=(StatsDMeterImpl const&) = delete;
180-
181181
void
182182
increment(MeterImpl::value_type amount) override;
183183

@@ -189,6 +189,9 @@ class StatsDMeterImpl : public MeterImpl, public StatsDMetricBase
189189
do_process() override;
190190

191191
private:
192+
StatsDMeterImpl&
193+
operator=(StatsDMeterImpl const&);
194+
192195
std::shared_ptr<StatsDCollectorImp> m_impl;
193196
std::string m_name;
194197
MeterImpl::value_type m_value;

0 commit comments

Comments
 (0)