Code Cleanup: common: removing default constructors

As C++11 is the adopted standard, trivial constructors are not needed,
compiler can generate it for us.
This commit is contained in:
lightyear15
2019-10-26 21:39:34 +02:00
parent 52f4c59bec
commit 2453b1d10c
5 changed files with 2 additions and 14 deletions
+1 -4
View File
@@ -51,10 +51,7 @@ public:
numer = intType(0);
}
rational(const rational &rhs)
:numer(rhs.numer), denom(rhs.denom)
{
}
rational(const rational &rhs) = default;
rational(const AVRational& r);
-4
View File
@@ -1,9 +1,5 @@
#include "threadedobject.h"
ThreadedObject::ThreadedObject()
{
}
void ThreadedObject::LockDeletes()
{
threadobj_delete_lock_++;
-1
View File
@@ -6,7 +6,6 @@
class ThreadedObject
{
public:
ThreadedObject();
void LockMutex();
void UnlockMutex();
-4
View File
@@ -1,9 +1,5 @@
#include "timerange.h"
TimeRange::TimeRange()
{
}
TimeRange::TimeRange(const rational &in, const rational &out) :
in_(in),
out_(out)
+1 -1
View File
@@ -5,7 +5,7 @@
class TimeRange {
public:
TimeRange();
TimeRange() = default;
TimeRange(const rational& in, const rational& out);
const rational& in() const;