diff --git a/blankie/escape.h b/blankie/escape.h index ee80d0c..4045588 100644 --- a/blankie/escape.h +++ b/blankie/escape.h @@ -7,5 +7,5 @@ namespace html { std::string escape(const std::string& in); -}; // namespace html -}; // namespace blankie +} // namespace html +} // namespace blankie diff --git a/blankie/murl.h b/blankie/murl.h index 902c3b6..4d819c7 100644 --- a/blankie/murl.h +++ b/blankie/murl.h @@ -19,7 +19,7 @@ struct Url { Url(const std::string& str); - constexpr std::string get_origin() const { + inline std::string get_origin() const { std::string res; if (!this->scheme.empty()) { res = this->scheme + "://"; @@ -40,5 +40,5 @@ struct Url { std::string normalize_path(const std::string& str); -}; // namespace murl -}; // namespace blankie +} // namespace murl +} // namespace blankie diff --git a/blankie/serializer.h b/blankie/serializer.h index f2874ae..e23bbe6 100644 --- a/blankie/serializer.h +++ b/blankie/serializer.h @@ -26,5 +26,5 @@ struct Element { std::string serialize() const; }; -}; // namespace html -}; // namespace blankie +} // namespace html +} // namespace blankie diff --git a/file.h b/file.h index db7fdfd..4abf9a5 100644 --- a/file.h +++ b/file.h @@ -13,12 +13,12 @@ public: File(const File&) = delete; File& operator=(const File&) = delete; - inline constexpr File(File&& other) { + inline File(File&& other) { try_close(this->_file); this->_file = other._file; other._file = nullptr; } - inline constexpr File& operator=(File&& other) { + inline File& operator=(File&& other) { if (this == &other) { return *this; } @@ -47,7 +47,7 @@ public: throw_system_error("fwrite()"); } } - inline constexpr void write(const std::string& str) { + inline void write(const std::string& str) { this->write(str.data(), str.size()); } inline constexpr FILE* get() const noexcept {