Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kdevelop
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Schöps
kdevelop
Commits
fcb90dcd
Commit
fcb90dcd
authored
Aug 26, 2019
by
Friedrich W. H. Kossebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QLatin1String overload for QString::operator ==/!=
GIT_SILENT
parent
fe0c4346
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
15 deletions
+15
-15
kdevplatform/shell/areadisplay.cpp
kdevplatform/shell/areadisplay.cpp
+1
-1
kdevplatform/shell/documentcontroller.cpp
kdevplatform/shell/documentcontroller.cpp
+1
-1
plugins/clang/duchain/parsesession.cpp
plugins/clang/duchain/parsesession.cpp
+1
-1
plugins/clazy/config/checkswidget.cpp
plugins/clazy/config/checkswidget.cpp
+2
-2
plugins/cppcheck/parameters.cpp
plugins/cppcheck/parameters.cpp
+1
-1
plugins/custom-definesandincludes/compilerprovider/settingsmanager.cpp
...m-definesandincludes/compilerprovider/settingsmanager.cpp
+7
-7
plugins/ghprovider/ghresource.cpp
plugins/ghprovider/ghresource.cpp
+1
-1
plugins/qthelp/qthelpnetwork.cpp
plugins/qthelp/qthelpnetwork.cpp
+1
-1
No files found.
kdevplatform/shell/areadisplay.cpp
View file @
fcb90dcd
...
...
@@ -75,7 +75,7 @@ void AreaDisplay::newArea(Sublime::Area* area)
auto
*
m
=
new
QMenu
(
m_button
);
m
->
addActions
(
area
->
actions
());
if
(
currentArea
->
objectName
()
!=
QStringLiteral
(
"code"
))
{
if
(
currentArea
->
objectName
()
!=
QLatin1String
(
"code"
))
{
if
(
!
m
->
actions
().
isEmpty
())
m
->
addSeparator
();
m
->
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"document-edit"
)),
i18n
(
"Back to code"
),
this
,
SLOT
(
backToCode
()),
QKeySequence
(
Qt
::
AltModifier
|
Qt
::
Key_Backspace
));
...
...
kdevplatform/shell/documentcontroller.cpp
View file @
fcb90dcd
...
...
@@ -996,7 +996,7 @@ QString DocumentController::activeDocumentPath( const QString& target ) const
}
}
IDocument
*
doc
=
activeDocument
();
if
(
!
doc
||
target
==
Q
StringLiteral
(
"[selection]"
))
if
(
!
doc
||
target
==
Q
Latin1String
(
"[selection]"
))
{
Context
*
selection
=
ICore
::
self
()
->
selectionController
()
->
currentSelection
();
if
(
selection
&&
selection
->
type
()
==
Context
::
ProjectItemContext
&&
!
static_cast
<
ProjectItemContext
*>
(
selection
)
->
items
().
isEmpty
())
...
...
plugins/clang/duchain/parsesession.cpp
View file @
fcb90dcd
...
...
@@ -91,7 +91,7 @@ void sanitizeArguments(QVector<QByteArray>& arguments)
QVector
<
QByteArray
>
argsForSession
(
const
QString
&
path
,
ParseSessionData
::
Options
options
,
const
ParserSettings
&
parserSettings
)
{
QMimeDatabase
db
;
if
(
db
.
mimeTypeForFile
(
path
).
name
()
==
QStringLiteral
(
"text/x-objcsrc"
))
{
if
(
db
.
mimeTypeForFile
(
path
).
name
()
==
QLatin1String
(
"text/x-objcsrc"
))
{
return
{
QByteArrayLiteral
(
"-xobjective-c++"
)};
}
...
...
plugins/clazy/config/checkswidget.cpp
View file @
fcb90dcd
...
...
@@ -121,7 +121,7 @@ void ChecksWidget::setChecks(const QString& checks)
const
QStringList
checksList
=
checks
.
split
(
QLatin1Char
(
','
),
QString
::
SkipEmptyParts
);
for
(
auto
checkName
:
checksList
)
{
checkName
=
checkName
.
trimmed
();
if
(
checkName
==
Q
StringLiteral
(
"manual"
))
{
if
(
checkName
==
Q
Latin1String
(
"manual"
))
{
continue
;
}
...
...
@@ -184,7 +184,7 @@ void ChecksWidget::updateChecks()
auto
levelItem
=
m_ui
->
checksTree
->
topLevelItem
(
i
);
auto
levelName
=
levelItem
->
data
(
0
,
CheckRole
).
toString
();
if
(
levelName
==
Q
StringLiteral
(
"manual"
))
{
if
(
levelName
==
Q
Latin1String
(
"manual"
))
{
// Manual level is "fake level" so we clear the name and will store only
// selected checks.
levelItems
.
clear
();
...
...
plugins/cppcheck/parameters.cpp
View file @
fcb90dcd
...
...
@@ -242,7 +242,7 @@ QStringList Parameters::commandLine(QString& infoMessage) const
}
if
(
m_project
&&
m_project
->
managerPlugin
())
{
if
(
m_project
->
managerPlugin
()
->
componentName
()
==
Q
StringLiteral
(
"kdevcmakemanager"
))
{
if
(
m_project
->
managerPlugin
()
->
componentName
()
==
Q
Latin1String
(
"kdevcmakemanager"
))
{
result
<<
QStringLiteral
(
"-i"
)
<<
m_projectBuildPath
.
toLocalFile
()
+
QStringLiteral
(
"/CMakeFiles"
);
}
...
...
plugins/custom-definesandincludes/compilerprovider/settingsmanager.cpp
View file @
fcb90dcd
...
...
@@ -421,8 +421,8 @@ LanguageType languageType(const QString& path, bool treatAmbiguousAsCPP)
{
QMimeDatabase
db
;
const
auto
mimeType
=
db
.
mimeTypeForFile
(
path
).
name
();
if
(
mimeType
==
Q
StringLiteral
(
"text/x-csrc"
)
||
mimeType
==
Q
StringLiteral
(
"text/x-chdr"
)
)
{
if
(
mimeType
==
Q
Latin1String
(
"text/x-csrc"
)
||
mimeType
==
Q
Latin1String
(
"text/x-chdr"
)
)
{
if
(
treatAmbiguousAsCPP
)
{
if
(
path
.
endsWith
(
QLatin1String
(
".h"
),
Qt
::
CaseInsensitive
))
{
return
Cpp
;
...
...
@@ -444,20 +444,20 @@ LanguageType languageType(const QString& path, bool treatAmbiguousAsCPP)
return
C
;
}
if
(
mimeType
==
Q
StringLiteral
(
"text/x-c++src"
)
||
mimeType
==
Q
StringLiteral
(
"text/x-c++hdr"
)
)
{
if
(
mimeType
==
Q
Latin1String
(
"text/x-c++src"
)
||
mimeType
==
Q
Latin1String
(
"text/x-c++hdr"
)
)
{
return
Cpp
;
}
if
(
mimeType
==
Q
StringLiteral
(
"text/x-objc++src"
))
{
if
(
mimeType
==
Q
Latin1String
(
"text/x-objc++src"
))
{
return
ObjCpp
;
}
if
(
mimeType
==
Q
StringLiteral
(
"text/x-objcsrc"
))
{
if
(
mimeType
==
Q
Latin1String
(
"text/x-objcsrc"
))
{
return
ObjC
;
}
if
(
mimeType
==
Q
StringLiteral
(
"text/x-opencl-src"
))
{
if
(
mimeType
==
Q
Latin1String
(
"text/x-opencl-src"
))
{
return
OpenCl
;
}
...
...
plugins/ghprovider/ghresource.cpp
View file @
fcb90dcd
...
...
@@ -168,7 +168,7 @@ void Resource::slotAuthenticate(KJob *job)
}
const
auto
metaData
=
qobject_cast
<
KIO
::
StoredTransferJob
*>
(
job
)
->
metaData
();
if
(
metaData
[
QStringLiteral
(
"responsecode"
)]
==
Q
StringLiteral
(
"401"
))
{
if
(
metaData
[
QStringLiteral
(
"responsecode"
)]
==
Q
Latin1String
(
"401"
))
{
const
auto
&
header
=
metaData
[
QStringLiteral
(
"HTTP-Headers"
)];
if
(
header
.
contains
(
QStringLiteral
(
"X-GitHub-OTP: required;"
),
Qt
::
CaseInsensitive
))
{
emit
twoFactorAuthRequested
(
qobject_cast
<
KIO
::
StoredTransferJob
*>
(
job
)
->
outgoingMetaData
()[
QStringLiteral
(
"customHTTPHeader"
)]);
...
...
plugins/qthelp/qthelpnetwork.cpp
View file @
fcb90dcd
...
...
@@ -41,7 +41,7 @@ HelpNetworkReply::HelpNetworkReply(const QNetworkRequest &request, const QByteAr
}
// Fix broken CSS images (tested on Qt 5.5.1 and 5.7.0)
if
(
request
.
url
().
fileName
()
==
QStringLiteral
(
"offline.css"
))
{
if
(
request
.
url
().
fileName
()
==
QLatin1String
(
"offline.css"
))
{
data
.
replace
(
"../images"
,
"images"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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