1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

chore(codestyle): mark virtual methods as override

This commit is contained in:
Aleksei Antipovskii
2024-09-12 12:27:02 +02:00
committed by Leonid Fedorov
parent ad80ab40aa
commit 0ab03c7258
303 changed files with 4085 additions and 4886 deletions

View File

@ -24,6 +24,7 @@
#include <exception>
#include <string>
#include <utility>
#pragma once
@ -35,23 +36,21 @@ namespace messageqcpp
*/
class SocketClosed : public std::exception
{
std::string _M_msg;
std::string M_msg;
public:
/** Takes a character string describing the error. */
explicit SocketClosed(const std::string& __arg) : _M_msg(__arg)
explicit SocketClosed(std::string _arg) : M_msg(std::move(_arg))
{
}
virtual ~SocketClosed() throw()
{
}
~SocketClosed() noexcept override = default;
/** Returns a C-style character string describing the general cause of
* the current error (the same string passed to the ctor). */
virtual const char* what() const throw()
const char* what() const noexcept override
{
return _M_msg.c_str();
return M_msg.c_str();
}
};