Skip to content

Commit bc981c4

Browse files
committed
Remove redundant semicolons after constructor bodies
This was causing formatting issues as they were mistaken for braced initialisers, and it made the code harder to read for humans too.
1 parent 32ecd18 commit bc981c4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

include/adm/private/copy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace adm {
101101
class ParameterEqualTo {
102102
public:
103103
explicit ParameterEqualTo(const Element& element)
104-
: parameter_(element.template get<Parameter>()){};
104+
: parameter_(element.template get<Parameter>()) {}
105105

106106
inline bool operator()(const Element& other) const {
107107
return parameter_ == other.template get<Parameter>();

src/elements/audio_programme.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,5 @@ namespace adm {
196196
}
197197

198198
AudioProgramme::AudioProgramme(AudioProgrammeName name)
199-
: name_(std::move(name)){};
199+
: name_(std::move(name)) {}
200200
} // namespace adm

src/elements/position.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace adm {
66

77
// ---- Constructor ---- //
88
SphericalPosition::SphericalPosition(Azimuth azimuth, Elevation elevation)
9-
: azimuth_(azimuth), elevation_(elevation){};
9+
: azimuth_(azimuth), elevation_(elevation) {}
1010

1111
// ---- Defaults ---- //
1212
const Distance SphericalPosition::distanceDefault_ = Distance(1.f);
@@ -68,7 +68,7 @@ namespace adm {
6868
// ---- CARTESIAN POSITION ---- //
6969

7070
// ---- Constructor ---- //
71-
CartesianPosition::CartesianPosition(X x, Y y) : x_(x), y_(y){};
71+
CartesianPosition::CartesianPosition(X x, Y y) : x_(x), y_(y) {}
7272

7373
// ---- Defaults ---- //
7474
const Z CartesianPosition::zDefault_ = Z(0.f);

src/private/rapidxml_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace adm {
5151
// ---- XML NODE WRAPPER ---- //
5252

5353
XmlNode::XmlNode(NodePtr node, bool discardDefaults)
54-
: node_(node), discardDefaultValues_(discardDefaults){};
54+
: node_(node), discardDefaultValues_(discardDefaults) {}
5555

5656
void XmlNode::setValue(const std::string &value) {
5757
auto valueString = node_->document()->allocate_string(value.c_str());

0 commit comments

Comments
 (0)