Gui: Wrap strings with QStringLiteral
This commit is contained in:
committed by
Chris Hennes
parent
b1e6730da8
commit
4e2221a913
@@ -20,6 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include <FCConfig.h>
|
||||
|
||||
#include <boost/interprocess/sync/file_lock.hpp>
|
||||
#include <Inventor/errors/SoDebugError.h>
|
||||
#include <Inventor/errors/SoError.h>
|
||||
@@ -46,8 +48,6 @@
|
||||
#include <list>
|
||||
#include <ranges>
|
||||
|
||||
#include <FCConfig.h>
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <App/DocumentObjectPy.h>
|
||||
#include <Base/Console.h>
|
||||
@@ -2773,11 +2773,11 @@ QString Application::replaceVariablesInQss(const QString& qssText)
|
||||
void Application::setStyle(const QString& name)
|
||||
{
|
||||
const auto createStyleFromName = [](const QString& name) -> QStyle* {
|
||||
if (name == "FreeCAD") {
|
||||
if (name == QStringLiteral("FreeCAD")) {
|
||||
return new FreeCADStyle();
|
||||
}
|
||||
|
||||
if (name.compare("System", Qt::CaseInsensitive) == 0) {
|
||||
if (name.compare(QStringLiteral("System"), Qt::CaseInsensitive) == 0) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user