Pārlūkot izejas kodu

copy ctors should have noexcept

opengl-renderer-broken
Martin Dørum pirms 4 gadiem
vecāks
revīzija
8781e63dfe
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1
    1
      libswan/include/swan/OS.h
  2. 1
    1
      libswan/src/OS.cc

+ 1
- 1
libswan/include/swan/OS.h Parādīt failu

@@ -13,7 +13,7 @@ class Dynlib {
public:
Dynlib(const std::string &path);
Dynlib(const Dynlib &) = delete;
Dynlib(Dynlib &&dl);
Dynlib(Dynlib &&dl) noexcept;
~Dynlib();

template<typename T> T get(const std::string &name) { return (T)getVoid(name); }

+ 1
- 1
libswan/src/OS.cc Parādīt failu

@@ -21,7 +21,7 @@ Dynlib::Dynlib(const std::string &path) {
}
}

Dynlib::Dynlib(Dynlib &&dl) {
Dynlib::Dynlib(Dynlib &&dl) noexcept {
handle_ = dl.handle_;
dl.handle_ = nullptr;
}

Notiek ielāde…
Atcelt
Saglabāt