logic: used wstring in FilePath constructor

* used wstring in FilePath constructor where easily possible
* added FilePath concatenate method that accepts string parameter
* implemented using only wstring in MessageStatus
* used wstring in config
This commit is contained in:
mlangkabel
2018-01-30 11:00:23 +01:00
parent 143cf6a02d
commit 0dda63f7ae
157 changed files with 1230 additions and 945 deletions
+3 -6
View File
@@ -114,11 +114,8 @@ void Settings::setFilePath(const FilePath& filePath)
std::vector<FilePath> Settings::getPathValues(const std::string& key) const
{
std::vector<std::string> values;
values = getValues(key, values);
std::vector<FilePath> paths;
for (const std::string& value : values)
for (const std::wstring& value : getValues<std::wstring>(key, {}))
{
paths.push_back(FilePath(value));
}
@@ -127,10 +124,10 @@ std::vector<FilePath> Settings::getPathValues(const std::string& key) const
bool Settings::setPathValues(const std::string& key, const std::vector<FilePath>& paths)
{
std::vector<std::string> values;
std::vector<std::wstring> values;
for (const FilePath& path : paths)
{
values.push_back(path.str());
values.push_back(path.wstr());
}
return setValues(key, values);