diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
commit | c8e0e909b4a8d18319fc65434a10dc446434817c (patch) | |
tree | eee91e7d2ce229dd043811eae8f1e2bd78061916 /wx+/string_conv.h | |
parent | 5.2 (diff) | |
download | FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.gz FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.bz2 FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.zip |
5.3
Diffstat (limited to 'wx+/string_conv.h')
-rw-r--r-- | wx+/string_conv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wx+/string_conv.h b/wx+/string_conv.h index 65764b1f..b23f6947 100644 --- a/wx+/string_conv.h +++ b/wx+/string_conv.h @@ -16,6 +16,14 @@ namespace zen //conversion between Zstring and wxString inline wxString toWx(const Zstring& str) { return utf8CvrtTo<wxString>(str); } inline Zstring toZ(const wxString& str) { return utf8CvrtTo<Zstring>(str); } + +inline std::vector<Zstring> toZ(const std::vector<wxString>& strList) +{ + std::vector<Zstring> tmp; + std::transform(strList.begin(), strList.end(), std::back_inserter(tmp), [](const wxString& str) { return toZ(str); }); + return tmp; +} + } #endif // STRINGCONV_H_INCLUDED |