src: wstring fixes for clang
This commit is contained in:
@@ -37,9 +37,9 @@ namespace utility
|
||||
widget->setSizePolicy(pol);
|
||||
}
|
||||
|
||||
void loadFontsFromDirectory(const FilePath& path, const std::string& extension)
|
||||
void loadFontsFromDirectory(const FilePath& path, const std::wstring& extension)
|
||||
{
|
||||
std::vector<std::string> extensions;
|
||||
std::vector<std::wstring> extensions;
|
||||
extensions.push_back(extension);
|
||||
std::vector<FilePath> fontFilePaths = FileSystem::getFilePathsFromDirectory(path, extensions);
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace utility
|
||||
void setWidgetBackgroundColor(QWidget* widget, const std::string& color);
|
||||
void setWidgetRetainsSpaceWhenHidden(QWidget* widget);
|
||||
|
||||
void loadFontsFromDirectory(const FilePath& path, const std::string& extension = ".otf");
|
||||
void loadFontsFromDirectory(const FilePath& path, const std::wstring& extension = L".otf");
|
||||
|
||||
std::string getStyleSheet(const FilePath& path);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ QtProjectWizzardContentPreferences::QtProjectWizzardContentPreferences(
|
||||
, m_screenScaleFactor(nullptr)
|
||||
{
|
||||
m_colorSchemePaths =
|
||||
FileSystem::getFilePathsFromDirectory(ResourcePaths::getColorSchemesPath(), std::vector<std::string>(1, ".xml"));
|
||||
FileSystem::getFilePathsFromDirectory(ResourcePaths::getColorSchemesPath(), { L".xml" });
|
||||
}
|
||||
|
||||
QtProjectWizzardContentPreferences::~QtProjectWizzardContentPreferences()
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ std::vector<FilePath> JreSystemLibraryPathDetector::getPaths() const
|
||||
for (const FilePath& jrePath: m_javaPathDetector->getPaths())
|
||||
{
|
||||
const FilePath javaRoot = jrePath.getParentDirectory().getParentDirectory().getParentDirectory();
|
||||
for (const FilePath& jarPath : FileSystem::getFilePathsFromDirectory(javaRoot.getConcatenated(L"lib"), {".jar"}))
|
||||
for (const FilePath& jarPath : FileSystem::getFilePathsFromDirectory(javaRoot.getConcatenated(L"lib"), { L".jar" }))
|
||||
{
|
||||
paths.push_back(jarPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user