Fix GCC 4.9 compilation errors.

This commit is contained in:
levlam 2021-10-24 02:09:36 +03:00
parent d06aa6535d
commit c0fb888c42
3 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ Result<string> get_suggested_file_name(CSlice directory, Slice file_name) {
file_name = cleaned_name; file_name = cleaned_name;
if (directory.empty()) { if (directory.empty()) {
directory = "./"; directory = CSlice("./");
} }
auto dir_stat = stat(directory); auto dir_stat = stat(directory);

View File

@ -130,7 +130,7 @@ ConnectionCreator::ConnectionCreator(ActorShared<> parent) : parent_(std::move(p
ConnectionCreator::ConnectionCreator(ConnectionCreator &&other) = default; ConnectionCreator::ConnectionCreator(ConnectionCreator &&other) = default;
ConnectionCreator &ConnectionCreator::operator=(ConnectionCreator &&other) noexcept = default; ConnectionCreator &ConnectionCreator::operator=(ConnectionCreator &&other) = default;
ConnectionCreator::~ConnectionCreator() = default; ConnectionCreator::~ConnectionCreator() = default;

View File

@ -55,7 +55,7 @@ class ConnectionCreator final : public NetQueryCallback {
public: public:
explicit ConnectionCreator(ActorShared<> parent); explicit ConnectionCreator(ActorShared<> parent);
ConnectionCreator(ConnectionCreator &&other); ConnectionCreator(ConnectionCreator &&other);
ConnectionCreator &operator=(ConnectionCreator &&other) noexcept; ConnectionCreator &operator=(ConnectionCreator &&other);
~ConnectionCreator() final; ~ConnectionCreator() final;
void on_dc_options(DcOptions new_dc_options); void on_dc_options(DcOptions new_dc_options);