logic: use wstring in symbol and bookmark names

* use wstring in symbol and bookmark names
* fixed setting apppath in windows includes
* regard utf8 encoding in shared indexer commands
* regard utf8 encoding in shared indexer status
This commit is contained in:
mlangkabel
2018-02-05 17:17:33 +01:00
parent c99e79364f
commit 9e041c1f0a
155 changed files with 1955 additions and 1864 deletions
+3 -3
View File
@@ -329,7 +329,7 @@ void QtCodeNavigator::setFocusedTokenIds(const std::vector<Id>& focusedTokenIds)
m_focusedTokenIds = std::set<Id>(focusedTokenIds.begin(), focusedTokenIds.end());
}
std::string QtCodeNavigator::getErrorMessageForId(Id errorId) const
std::wstring QtCodeNavigator::getErrorMessageForId(Id errorId) const
{
std::map<Id, ErrorInfo>::const_iterator it = m_errorInfos.find(errorId);
@@ -338,7 +338,7 @@ std::string QtCodeNavigator::getErrorMessageForId(Id errorId) const
return it->second.message;
}
return "";
return L"";
}
void QtCodeNavigator::setErrorInfos(const std::vector<ErrorInfo>& errorInfos)
@@ -362,7 +362,7 @@ size_t QtCodeNavigator::getFatalErrorCountForFile(const FilePath& filePath) cons
for (const std::pair<Id, ErrorInfo>& p : m_errorInfos)
{
const ErrorInfo& error = p.second;
if (error.filePath == filePath && error.fatal)
if (error.filePath == filePath.wstr() && error.fatal)
{
fatalErrorCount++;
}