Remove some pointless GCC-isms.

This commit is contained in:
Jared Boone 2015-12-17 10:12:03 -08:00
parent 3151100e50
commit b65cd72a68

View File

@ -27,15 +27,15 @@
class volume_t {
public:
constexpr volume_t operator-() const {
return { .cb = -cb };
return { -cb };
}
constexpr volume_t operator+(const volume_t& other) const {
return { .cb = cb + other.cb };
return { cb + other.cb };
}
constexpr volume_t operator-(const volume_t& other) const {
return { .cb = cb - other.cb };
return { cb - other.cb };
}
volume_t& operator+=(const volume_t& other) {
@ -52,11 +52,11 @@ public:
}
static constexpr volume_t centibel(const int cb) {
return { .cb = cb };
return { cb };
}
static constexpr volume_t decibel(const int db) {
return { .cb = db * 10 };
return { db * 10 };
}
int32_t centibel() const {