From 42ef59ef17cb0a56c6ac1d8f220db7ca461c5411 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 22 Oct 2020 04:52:32 +0200 Subject: Matrix: temporary disable vim keys that interfer with room search, also include embedded item when pressing enter --- include/NetUtils.hpp | 2 +- include/Path.hpp | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/NetUtils.hpp b/include/NetUtils.hpp index 84b9d18..4770fb4 100644 --- a/include/NetUtils.hpp +++ b/include/NetUtils.hpp @@ -7,5 +7,5 @@ namespace QuickMedia { void html_escape_sequences(std::string &str); void html_unescape_sequences(std::string &str); std::string url_param_encode(const std::string ¶m); - std::vector extract_urls(const std::string &str); + void extract_urls(const std::string &str, std::vector &urls); } \ No newline at end of file diff --git a/include/Path.hpp b/include/Path.hpp index 95a5d23..d26f605 100644 --- a/include/Path.hpp +++ b/include/Path.hpp @@ -6,14 +6,9 @@ namespace QuickMedia { class Path { public: Path() = default; - ~Path() = default; - Path(const Path &other) = default; - Path& operator=(const Path &other) = default; + Path(const char *path) : data(path) {} Path(const std::string &path) : data(path) {} - Path(Path &&other) { - data = std::move(other.data); - } Path& join(const Path &other) { data += "/"; -- cgit v1.2.3