aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-22 04:52:32 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-22 04:52:32 +0200
commit42ef59ef17cb0a56c6ac1d8f220db7ca461c5411 (patch)
tree26f875e7e81f2a5cd47afa59e49e7ada729dfa3b /include
parent0d8293a5647c2bb10228658f0910515b38ff0d64 (diff)
Matrix: temporary disable vim keys that interfer with room search, also include embedded item when pressing enter
Diffstat (limited to 'include')
-rw-r--r--include/NetUtils.hpp2
-rw-r--r--include/Path.hpp7
2 files changed, 2 insertions, 7 deletions
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 &param);
- std::vector<std::string> extract_urls(const std::string &str);
+ void extract_urls(const std::string &str, std::vector<std::string> &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 += "/";