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
+4 -4
View File
@@ -142,9 +142,9 @@ void TaskBuildIndex::doExit(std::shared_ptr<Blackboard> blackboard)
for (const FilePath& path : crashedFiles)
{
is->addError(StorageErrorData(
"The translation unit threw an exception during indexing. Please check if the source file "
L"The translation unit threw an exception during indexing. Please check if the source file "
"conforms to the specified language standard and all necessary options are defined within your project "
"setup.", path, 1, 1, true, true
"setup.", path.wstr(), 1, 1, true, true
));
LOG_INFO_STREAM(<< "crashed translation unit: " << path.str());
}
@@ -290,7 +290,7 @@ void TaskBuildIndex::updateIndexingDialog(
blackboard->get("indexed_source_file_count", indexedSourceFileCount);
}
if (sourcePaths.size())
if (!sourcePaths.empty())
{
std::vector<std::wstring> stati;
for (const FilePath& path : sourcePaths)
@@ -302,6 +302,6 @@ void TaskBuildIndex::updateIndexingDialog(
}
Application::getInstance()->getDialogView()->updateIndexingDialog(
m_indexingFileCount, indexedSourceFileCount, sourceFileCount, (sourcePaths.size() ? sourcePaths.back().str() : "")
m_indexingFileCount, indexedSourceFileCount, sourceFileCount, (sourcePaths.empty() ? FilePath() : sourcePaths.back())
);
}