Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
8539d2dd
Verified
Commit
8539d2dd
authored
Apr 22, 2022
by
Fushan Wen
Browse files
libtaskmanager: Use QByteArrayLiteral in Q_ASSERT
It's much faster to compare char* with QByteArrayLiteral.
parent
9fe7326a
Pipeline
#166636
passed with stage
in 6 minutes and 48 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
libtaskmanager/declarative/taskmanagerplugin.cpp
View file @
8539d2dd
...
...
@@ -21,7 +21,7 @@ namespace TaskManager
{
void
TaskManagerPlugin
::
registerTypes
(
const
char
*
uri
)
{
Q_ASSERT
(
uri
==
Q
Latin1String
(
"org.kde.taskmanager"
));
Q_ASSERT
(
uri
==
Q
ByteArrayLiteral
(
"org.kde.taskmanager"
));
// Expose the AbstractTasksModel::AdditionalRoles enum to Qt Quick
// for use with the TasksModel::data invokable. TasksModel inherits
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment