Commit fe6abe17 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

zlib/Error: add `noexcept`

parent 6cdb3ff2
/* /*
* Copyright (C) 2014-2018 Max Kellermann <max.kellermann@gmail.com> * Copyright 2014-2021 Max Kellermann <max.kellermann@gmail.com>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
......
/* /*
* Copyright (C) 2014-2018 Max Kellermann <max.kellermann@gmail.com> * Copyright 2014-2021 Max Kellermann <max.kellermann@gmail.com>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -36,9 +36,9 @@ class ZlibError final : public std::exception { ...@@ -36,9 +36,9 @@ class ZlibError final : public std::exception {
int code; int code;
public: public:
explicit ZlibError(int _code):code(_code) {} explicit ZlibError(int _code) noexcept:code(_code) {}
int GetCode() const { int GetCode() const noexcept {
return code; return code;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment