ui: use wstring in gui relates places
* loading icons * loading fonts * context menu action for copy path to clipboard * context menu action for open containing folder
This commit is contained in:
@@ -20,7 +20,7 @@ CxxVerboseAstVisitor::CxxVerboseAstVisitor(
|
||||
std::shared_ptr<CanonicalFilePathCache> canonicalFilePathCache
|
||||
)
|
||||
: base(context, preprocessor, client, fileRegister, canonicalFilePathCache)
|
||||
, m_currentFilePath("")
|
||||
, m_currentFilePath(L"")
|
||||
, m_indentation(0)
|
||||
{
|
||||
}
|
||||
@@ -43,10 +43,10 @@ bool CxxVerboseAstVisitor::TraverseDecl(clang::Decl *d)
|
||||
ParseLocation loc = getParseLocation(d->getSourceRange());
|
||||
stream << " <" << loc.startLineNumber << ":" << loc.startColumnNumber << ", " << loc.endLineNumber << ":" << loc.endColumnNumber << ">";
|
||||
|
||||
if (m_currentFilePath != loc.filePath.str())
|
||||
if (m_currentFilePath != loc.filePath.wstr())
|
||||
{
|
||||
m_currentFilePath = loc.filePath.str();
|
||||
LOG_INFO_STREAM_BARE(<< "Indexer - Traversing \"" + m_currentFilePath + "\"" );
|
||||
m_currentFilePath = loc.filePath.wstr();
|
||||
LOG_INFO_BARE(L"Indexer - Traversing \"" + m_currentFilePath + L"\"" );
|
||||
}
|
||||
|
||||
LOG_INFO_STREAM_BARE(<< "Indexer - " << stream.str());
|
||||
|
||||
@@ -48,7 +48,7 @@ private:
|
||||
return "";
|
||||
}
|
||||
|
||||
std::string m_currentFilePath;
|
||||
std::wstring m_currentFilePath;
|
||||
unsigned int m_indentation;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user