aboutsummaryrefslogtreecommitdiff
path: root/src/NetUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NetUtils.cpp')
-rw-r--r--src/NetUtils.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/NetUtils.cpp b/src/NetUtils.cpp
index e87c42c..4d5a940 100644
--- a/src/NetUtils.cpp
+++ b/src/NetUtils.cpp
@@ -105,9 +105,7 @@ namespace QuickMedia {
// Implementation follows URI standard: https://tools.ietf.org/html/rfc3986#section-2.2
// TODO: Maybe check if the TLD only contains valid characters (is_alpha)?
- std::vector<std::string> extract_urls(const std::string &str) {
- std::vector<std::string> urls;
-
+ void extract_urls(const std::string &str, std::vector<std::string> &urls) {
size_t url_start = std::string::npos;
size_t url_dot_index = std::string::npos;
// str.size() is fine, we want to include the NULL character so we can extract url at the end of the string
@@ -135,6 +133,5 @@ namespace QuickMedia {
}
}
}
- return urls;
}
} \ No newline at end of file