From fe6abe1750cf76648ba1b695d3d02d5ec100299e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Feb 2021 16:56:22 +0100 Subject: [PATCH] zlib/Error: add `noexcept` --- src/lib/zlib/Error.cxx | 2 +- src/lib/zlib/Error.hxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }