Skip to content

Commit

Permalink
scheme: Fix missing includes and unused constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
shramov committed Dec 9, 2023
1 parent 30e418e commit 89ba239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/tll/scheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <stddef.h>

#ifdef __cplusplus
#include <string>
#include <string_view>
#include <memory>

Expand Down
2 changes: 1 addition & 1 deletion src/tll/util/cstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#ifndef _TLL_UTIL_CSTRING_H
#define _TLL_UTIL_CSTRING_H

#include <cstdlib>
#include <cstring>
#include <string_view>

Expand All @@ -18,7 +19,6 @@ class cstring
explicit cstring(const char * data) : _data(data, data ? std::strlen(data) : 0) {}
explicit cstring(const char * data, size_t size) : _data(data, size) {}
cstring() {}
cstring(const std::nullopt_t &) {}
cstring(cstring && rhs) { std::swap(_data, rhs._data); }

~cstring() { if (_data.data()) free((void *) _data.data()); _data = {}; }
Expand Down

0 comments on commit 89ba239

Please sign in to comment.