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
K
KDE Libraries
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
Unmaintained
KDE Libraries
Commits
ca98e574
Commit
ca98e574
authored
Sep 28, 2015
by
David Faure
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove usage of undefined debug area 7012; turn noisy warning into a debug.
CCBUG: 173760
parent
74b99150
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
kdecore/services/kmimetyperepository.cpp
kdecore/services/kmimetyperepository.cpp
+1
-1
kded/kbuildservicefactory.cpp
kded/kbuildservicefactory.cpp
+1
-1
kded/kbuildservicetypefactory.cpp
kded/kbuildservicetypefactory.cpp
+3
-3
No files found.
kdecore/services/kmimetyperepository.cpp
View file @
ca98e574
...
...
@@ -317,7 +317,7 @@ QStringList KMimeTypeRepository::parents(const QString& mime)
const
QString
derivedTypeName
=
line
.
left
(
pos
);
KMimeType
::
Ptr
derivedType
=
findMimeTypeByName
(
derivedTypeName
,
KMimeType
::
ResolveAliases
);
if
(
!
derivedType
)
k
Warning
(
7012
)
<<
fileName
<<
" refers to unknown mimetype "
<<
derivedTypeName
;
k
Debug
(
)
<<
fileName
<<
" refers to unknown mimetype "
<<
derivedTypeName
;
else
{
const
QString
parentTypeName
=
line
.
mid
(
pos
+
1
);
Q_ASSERT
(
!
parentTypeName
.
isEmpty
());
...
...
kded/kbuildservicefactory.cpp
View file @
ca98e574
...
...
@@ -102,7 +102,7 @@ KSycocaEntry* KBuildServiceFactory::createEntry( const QString& file, const char
return
serv
;
}
else
{
if
(
!
serv
->
isDeleted
())
{
kWarning
(
7012
)
<<
"Invalid Service : "
<<
file
;
kWarning
()
<<
"Invalid Service : "
<<
file
;
}
delete
serv
;
return
0
;
...
...
kded/kbuildservicetypefactory.cpp
View file @
ca98e574
...
...
@@ -77,14 +77,14 @@ KSycocaEntry* KBuildServiceTypeFactory::createEntry(const QString &file, const c
const
QString
type
=
desktopGroup
.
readEntry
(
"Type"
);
if
(
type
!=
QLatin1String
(
"ServiceType"
)
)
{
kWarning
(
7012
)
<<
"The service type config file "
<<
desktopFile
.
fileName
()
<<
" has Type="
<<
type
<<
" instead of Type=ServiceType"
;
kWarning
()
<<
"The service type config file "
<<
desktopFile
.
fileName
()
<<
" has Type="
<<
type
<<
" instead of Type=ServiceType"
;
return
0
;
}
const
QString
serviceType
=
desktopGroup
.
readEntry
(
"X-KDE-ServiceType"
);
if
(
serviceType
.
isEmpty
()
)
{
kWarning
(
7012
)
<<
"The service type config file "
<<
desktopFile
.
fileName
()
<<
" does not contain a ServiceType=... entry"
;
kWarning
()
<<
"The service type config file "
<<
desktopFile
.
fileName
()
<<
" does not contain a ServiceType=... entry"
;
return
0
;
}
...
...
@@ -96,7 +96,7 @@ KSycocaEntry* KBuildServiceTypeFactory::createEntry(const QString &file, const c
}
if
(
!
(
e
->
isValid
())
)
{
kWarning
(
7012
)
<<
"Invalid ServiceType : "
<<
file
;
kWarning
()
<<
"Invalid ServiceType : "
<<
file
;
delete
e
;
return
0
;
}
...
...
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