mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 10:12:50 +00:00
Enhancements
Add loading external custom configuration from URL. Optimize codes.
This commit is contained in:
2 files changed
+79
-30
No files matched your search
@@ -67,6 +67,12 @@ static inline bool strFind(std::string str, std::string target)
|
||||
return str.find(target) != str.npos;
|
||||
}
|
||||
|
||||
template <typename T> static inline void eraseElements(std::vector<T> &target)
|
||||
{
|
||||
target.clear();
|
||||
target.shrink_to_fit();
|
||||
}
|
||||
|
||||
template <typename T> static inline void eraseElements(T &target)
|
||||
{
|
||||
T().swap(target);
|
||||
|
||||
Reference in new issue
Block a user