diff --git a/src/publictransport/datatypes/datatypes.h b/src/publictransport/datatypes/datatypes.h index dba5df9..4e4b00c 100644 --- a/src/publictransport/datatypes/datatypes.h +++ b/src/publictransport/datatypes/datatypes.h @@ -1,36 +1,36 @@ /* Copyright (C) 2018 Volker Krause This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef KPUBLICTRANSPORT_DATATYPES_H #define KPUBLICTRANSPORT_DATATYPES_H #include #include #define KPUBLICTRANSPORT_GADGET(Class) \ Q_GADGET \ public: \ Class(); \ - Class(Class&&); \ + Class(Class&&) noexcept; \ Class(const Class&); \ ~Class(); \ - Class& operator=(Class&&); \ + Class& operator=(Class&&) noexcept; \ Class& operator=(const Class&); \ private: \ QExplicitlySharedDataPointer d; #endif diff --git a/src/publictransport/datatypes/datatypes_p.h b/src/publictransport/datatypes/datatypes_p.h index b1c8f72..0c4f12f 100644 --- a/src/publictransport/datatypes/datatypes_p.h +++ b/src/publictransport/datatypes/datatypes_p.h @@ -1,31 +1,31 @@ /* Copyright (C) 2018 Volker Krause This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef KPUBLICTRANSPORT_DATATYPES_P_H #define KPUBLICTRANSPORT_DATATYPES_P_H #include #define KPUBLICTRANSPORT_MAKE_GADGET(Class) \ Class::Class() : d(new Class ## Private) {} \ Class::Class(const Class&) = default; \ -Class::Class(Class&&) = default; \ +Class::Class(Class&&) noexcept = default; \ Class::~Class() = default; \ Class& Class::operator=(const Class&) = default; \ -Class& Class::operator=(Class&&) = default; +Class& Class::operator=(Class&&) noexcept = default; #endif