diff --git a/src/lib/zlib/Error.cxx b/src/lib/zlib/Error.cxx index 64338a3ac..a8ae51c64 100644 --- a/src/lib/zlib/Error.cxx +++ b/src/lib/zlib/Error.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2018 Max Kellermann + * Copyright 2014-2021 Max Kellermann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/src/lib/zlib/Error.hxx b/src/lib/zlib/Error.hxx index 1e422125c..4b364a72e 100644 --- a/src/lib/zlib/Error.hxx +++ b/src/lib/zlib/Error.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014-2018 Max Kellermann + * Copyright 2014-2021 Max Kellermann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -36,9 +36,9 @@ class ZlibError final : public std::exception { int code; public: - explicit ZlibError(int _code):code(_code) {} + explicit ZlibError(int _code) noexcept:code(_code) {} - int GetCode() const { + int GetCode() const noexcept { return code; }