zlib/Error: add noexcept

This commit is contained in:
Max Kellermann 2021-02-08 16:56:22 +01:00 committed by Max Kellermann
parent 6cdb3ff21e
commit fe6abe1750
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
* 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
* modification, are permitted provided that the following conditions

View File

@ -1,5 +1,5 @@
/*
* 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
* 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;
}