mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-23 06:50:58 -04:00
Improve readability and type-safety
Use nullptr instead of 0 or NULL to initialize a null pointer. In some cases, readability was enhanced by replacing 0 with more meaningful values according to the type of the pointer being initialized.
This commit is contained in:
parent
7208635502
commit
896a66e6d8
22 changed files with 47 additions and 47 deletions
|
@ -411,7 +411,7 @@ void KMessageWidget::removeAction(QAction *action)
|
|||
|
||||
void KMessageWidget::animatedShow()
|
||||
{
|
||||
if (!style()->styleHint(QStyle::SH_Widget_Animate, 0, this)) {
|
||||
if (!style()->styleHint(QStyle::SH_Widget_Animate, nullptr, this)) {
|
||||
show();
|
||||
emit showAnimationFinished();
|
||||
return;
|
||||
|
@ -436,7 +436,7 @@ void KMessageWidget::animatedShow()
|
|||
|
||||
void KMessageWidget::animatedHide()
|
||||
{
|
||||
if (!style()->styleHint(QStyle::SH_Widget_Animate, 0, this)) {
|
||||
if (!style()->styleHint(QStyle::SH_Widget_Animate, nullptr, this)) {
|
||||
hide();
|
||||
emit hideAnimationFinished();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue