Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarmCal
Commits
27377ca2
Commit
27377ca2
authored
Oct 24, 2021
by
David Jarvie
Browse files
Fix clazy warnings
parent
a2da000b
Pipeline
#91005
passed with stage
in 6 minutes and 18 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
27377ca2
...
...
@@ -23,7 +23,7 @@ build_clazy_clang_tidy:
-
export CC=clang
-
export CXXFLAGS="-Wno-deprecated-declarations"
-
export CLAZY_HEADER_FILTER='^(?!ui_)\w+.h\$'
-
export CLAZY_CHECKS="level0,level1,detaching-member,ifndef-define-typo,isempty-vs-count,qrequiredresult-candidates,reserve-candidates,signal-with-return-value,unneeded-cast,function-args-by-ref,
function-args-by-value,
returning-void-expression,no-ctor-missing-parent-argument,isempty-vs-count,qhash-with-char-pointer-key,raw-environment-function,qproperty-type-mismatch,old-style-connect,qstring-allocations,container-inside-loop,heap-allocated-small-trivial-type,inefficient-qlist,qstring-varargs"
-
export CLAZY_CHECKS="level0,level1,detaching-member,ifndef-define-typo,isempty-vs-count,qrequiredresult-candidates,reserve-candidates,signal-with-return-value,unneeded-cast,function-args-by-ref,returning-void-expression,no-ctor-missing-parent-argument,isempty-vs-count,qhash-with-char-pointer-key,raw-environment-function,qproperty-type-mismatch,old-style-connect,qstring-allocations,container-inside-loop,heap-allocated-small-trivial-type,inefficient-qlist,qstring-varargs"
-
python3 -u $CI_TOOLING/helpers/prepare-dependencies.py --product $PRODUCT --project $PROJECT --branchGroup $BRANCH_GROUP --environment production --platform $PLATFORM --installTo $INSTALL_PREFIX
-
python3 -u $CI_TOOLING/helpers/configure-build.py --product $PRODUCT --project $PROJECT --branchGroup $BRANCH_GROUP --platform $PLATFORM --installTo $INSTALL_PREFIX
-
python3 -u $CI_TOOLING/helpers/compile-build.py --product $PRODUCT --project $PROJECT --branchGroup $BRANCH_GROUP --platform $PLATFORM --usingInstall $INSTALL_PREFIX
...
...
src/kadatetime.cpp
View file @
27377ca2
...
...
@@ -3016,9 +3016,6 @@ QDateTime fromStr(const QString &string, const QString &format, int &utcOffset,
}
}
}
if
(
day
==
NO_NUMBER
)
{
day
=
1
;
}
dateOnly
=
(
hour
==
NO_NUMBER
&&
minute
==
NO_NUMBER
&&
second
==
NO_NUMBER
&&
millisec
==
NO_NUMBER
);
if
(
hour
==
NO_NUMBER
)
{
hour
=
0
;
...
...
Write
Preview
Supports
Markdown
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