Changeset 9905e22 in git


Ignore:
Timestamp:
23/08/19 00:39:27 (2 months ago)
Author:
Olly Betts <olly@…>
Branches:
master
Children:
e83fa9fc
Parents:
9fcc81a
Message:

Fix GCC 9 warning

There's no need to declare an explicit assignment operator which
does the same as the default one does, and C++11 deprecated having
an explicit assignment operator and relying on the implicit copy
constructor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/vector3.h

    r9fcc81a r9905e22  
    6464    Vector3& operator+=(const Vector3&);
    6565    Vector3& operator-=(const Vector3&);
    66     Vector3& operator=(const Vector3& o) {
    67         x = o.x; y = o.y; z = o.z;
    68         return *this;
    69     }
    7066
    7167    friend Vector3 operator*(double, const Vector3&);
Note: See TracChangeset for help on using the changeset viewer.