Skip to content

Commit

Permalink
libcore: Converting to a de::StringList
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 3, 2017
1 parent 45a9899 commit 8365473
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doomsday/sdk/libcore/include/de/data/string.h
Expand Up @@ -410,6 +410,12 @@ size_t qchar_strlen(QChar const *str);

typedef QList<String> StringList;

inline StringList toStringList(QStringList const &qstr) {
StringList list;
foreach (QString const &s, qstr) list << s;
return list;
}

inline String operator / (char const *utf8CStr, String const &str) {
return String(utf8CStr) / str;
}
Expand Down

0 comments on commit 8365473

Please sign in to comment.