Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
Kleopatra
Commits
65137e1f
Commit
65137e1f
authored
Sep 10, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modernize code
parent
5d51a75d
Pipeline
#33748
passed with stage
in 13 minutes and 32 seconds
Changes
29
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
87 additions
and
107 deletions
+87
-107
src/commands/dumpcrlcachecommand.cpp
src/commands/dumpcrlcachecommand.cpp
+1
-1
src/commands/exportcertificatecommand.cpp
src/commands/exportcertificatecommand.cpp
+2
-3
src/commands/exportpaperkeycommand.h
src/commands/exportpaperkeycommand.h
+1
-1
src/commands/importcrlcommand.cpp
src/commands/importcrlcommand.cpp
+1
-1
src/crypto/autodecryptverifyfilescontroller.cpp
src/crypto/autodecryptverifyfilescontroller.cpp
+5
-9
src/crypto/controller.cpp
src/crypto/controller.cpp
+2
-4
src/crypto/gui/certificatelineedit.cpp
src/crypto/gui/certificatelineedit.cpp
+0
-4
src/crypto/gui/certificatelineedit.h
src/crypto/gui/certificatelineedit.h
+4
-4
src/crypto/gui/certificateselectionline.cpp
src/crypto/gui/certificateselectionline.cpp
+2
-2
src/crypto/gui/decryptverifyfilesdialog.cpp
src/crypto/gui/decryptverifyfilesdialog.cpp
+1
-1
src/crypto/gui/decryptverifyfilesdialog.h
src/crypto/gui/decryptverifyfilesdialog.h
+2
-2
src/crypto/gui/encryptemailwizard.cpp
src/crypto/gui/encryptemailwizard.cpp
+1
-2
src/crypto/gui/resolverecipientspage.cpp
src/crypto/gui/resolverecipientspage.cpp
+2
-1
src/crypto/gui/resultitemwidget.cpp
src/crypto/gui/resultitemwidget.cpp
+5
-5
src/crypto/gui/resultlistwidget.cpp
src/crypto/gui/resultlistwidget.cpp
+7
-13
src/crypto/gui/resultpage.cpp
src/crypto/gui/resultpage.cpp
+2
-2
src/crypto/gui/signemailwizard.cpp
src/crypto/gui/signemailwizard.cpp
+2
-1
src/crypto/gui/signencryptfileswizard.cpp
src/crypto/gui/signencryptfileswizard.cpp
+0
-2
src/crypto/gui/signencryptfileswizard.h
src/crypto/gui/signencryptfileswizard.h
+5
-5
src/crypto/gui/signencryptwidget.h
src/crypto/gui/signencryptwidget.h
+10
-10
src/crypto/gui/signencryptwizard.cpp
src/crypto/gui/signencryptwizard.cpp
+4
-4
src/crypto/gui/signerresolvepage.cpp
src/crypto/gui/signerresolvepage.cpp
+2
-1
src/crypto/gui/signingcertificateselectiondialog.h
src/crypto/gui/signingcertificateselectiondialog.h
+3
-3
src/crypto/gui/wizard.cpp
src/crypto/gui/wizard.cpp
+12
-12
src/crypto/gui/wizardpage.cpp
src/crypto/gui/wizardpage.cpp
+3
-3
src/crypto/task.cpp
src/crypto/task.cpp
+2
-2
src/dialogs/addemaildialog.cpp
src/dialogs/addemaildialog.cpp
+4
-5
src/dialogs/adduseriddialog.cpp
src/dialogs/adduseriddialog.cpp
+1
-1
src/uiserver/echocommand.cpp
src/uiserver/echocommand.cpp
+1
-3
No files found.
src/commands/dumpcrlcachecommand.cpp
View file @
65137e1f
...
...
@@ -68,7 +68,7 @@ public:
mWithRevocations
=
value
;
}
bool
withRevocations
()
{
Q_REQUIRED_RESULT
bool
withRevocations
()
{
return
mWithRevocations
;
}
...
...
src/commands/exportcertificatecommand.cpp
View file @
65137e1f
...
...
@@ -60,7 +60,7 @@ public:
private:
QMap
<
GpgME
::
Protocol
,
QString
>
fileNames
;
uint
jobsPending
;
uint
jobsPending
=
0
;
QMap
<
QObject
*
,
QString
>
outFileForSender
;
QPointer
<
ExportJob
>
cmsJob
;
QPointer
<
ExportJob
>
pgpJob
;
...
...
@@ -79,8 +79,7 @@ const ExportCertificateCommand::Private *ExportCertificateCommand::d_func() cons
#define q q_func()
ExportCertificateCommand
::
Private
::
Private
(
ExportCertificateCommand
*
qq
,
KeyListController
*
c
)
:
Command
::
Private
(
qq
,
c
),
jobsPending
(
0
)
:
Command
::
Private
(
qq
,
c
)
{
}
...
...
src/commands/exportpaperkeycommand.h
View file @
65137e1f
...
...
@@ -49,7 +49,7 @@ private:
QString
errorExitMessage
(
const
QStringList
&
)
const
override
;
private:
QWidget
*
mParent
;
QWidget
*
const
mParent
;
QProcess
mPkProc
;
};
...
...
src/commands/importcrlcommand.cpp
View file @
65137e1f
...
...
@@ -39,7 +39,7 @@ public:
explicit
Private
(
ImportCrlCommand
*
qq
,
KeyListController
*
c
);
~
Private
();
QString
errorString
()
const
Q_REQUIRED_RESULT
QString
errorString
()
const
{
return
stringFromGpgOutput
(
errorBuffer
);
}
...
...
src/crypto/autodecryptverifyfilescontroller.cpp
View file @
65137e1f
...
...
@@ -87,17 +87,13 @@ public:
std
::
vector
<
std
::
shared_ptr
<
const
DecryptVerifyResult
>
>
m_results
;
std
::
vector
<
std
::
shared_ptr
<
Task
>
>
m_runnableTasks
,
m_completedTasks
;
std
::
shared_ptr
<
Task
>
m_runningTask
;
bool
m_errorDetected
;
DecryptVerifyOperation
m_operation
;
DecryptVerifyFilesDialog
*
m_dialog
;
QTemporaryDir
*
m_workDir
;
bool
m_errorDetected
=
false
;
DecryptVerifyOperation
m_operation
=
DecryptVerify
;
DecryptVerifyFilesDialog
*
m_dialog
=
nullptr
;
QTemporaryDir
*
m_workDir
=
nullptr
;
};
AutoDecryptVerifyFilesController
::
Private
::
Private
(
AutoDecryptVerifyFilesController
*
qq
)
:
q
(
qq
),
m_errorDetected
(
false
),
m_operation
(
DecryptVerify
),
m_dialog
(
nullptr
),
m_workDir
(
nullptr
)
AutoDecryptVerifyFilesController
::
Private
::
Private
(
AutoDecryptVerifyFilesController
*
qq
)
:
q
(
qq
)
{
qRegisterMetaType
<
VerificationResult
>
();
}
...
...
src/crypto/controller.cpp
View file @
65137e1f
...
...
@@ -21,15 +21,13 @@ class Controller::Private
Controller
*
const
q
;
public:
explicit
Private
(
Controller
*
qq
)
:
q
(
qq
),
lastError
(
0
),
lastErrorString
()
:
q
(
qq
)
{
}
private:
int
lastError
;
int
lastError
=
0
;
QString
lastErrorString
;
};
...
...
src/crypto/gui/certificatelineedit.cpp
View file @
65137e1f
...
...
@@ -84,16 +84,12 @@ CertificateLineEdit::CertificateLineEdit(AbstractKeyListModel *model,
:
QLineEdit
(
parent
),
mFilterModel
(
new
KeyListSortFilterProxyModel
(
this
)),
mFilter
(
std
::
shared_ptr
<
KeyFilter
>
(
filter
)),
mEditStarted
(
false
),
mEditFinished
(
false
),
mLineAction
(
new
QAction
(
this
))
{
setPlaceholderText
(
i18n
(
"Please enter a name or email address..."
));
setClearButtonEnabled
(
true
);
addAction
(
mLineAction
,
QLineEdit
::
LeadingPosition
);
QFontMetrics
fm
(
font
());
auto
*
completer
=
new
QCompleter
(
this
);
auto
*
completeFilterModel
=
new
ProxyModel
(
completer
);
completeFilterModel
->
setKeyFilter
(
mFilter
);
...
...
src/crypto/gui/certificatelineedit.h
View file @
65137e1f
...
...
@@ -82,15 +82,15 @@ private Q_SLOTS:
void
checkLocate
();
private:
KeyListSortFilterProxyModel
*
mFilterModel
;
KeyListSortFilterProxyModel
*
const
mFilterModel
;
QLabel
*
mStatusLabel
,
*
mStatusIcon
;
GpgME
::
Key
mKey
;
GpgME
::
Protocol
mCurrentProto
;
std
::
shared_ptr
<
KeyFilter
>
mFilter
;
bool
mEditStarted
,
mEditFinished
;
QAction
*
mLineAction
;
bool
mEditStarted
=
false
;
bool
mEditFinished
=
false
;
QAction
*
const
mLineAction
;
};
}
#endif
src/crypto/gui/certificateselectionline.cpp
View file @
65137e1f
...
...
@@ -77,11 +77,11 @@ public:
}
QString
initialText
()
const
Q_REQUIRED_RESULT
QString
initialText
()
const
{
return
m_initialText
;
}
QIcon
initialIcon
()
const
Q_REQUIRED_RESULT
QIcon
initialIcon
()
const
{
return
m_initialIcon
;
}
...
...
src/crypto/gui/decryptverifyfilesdialog.cpp
View file @
65137e1f
...
...
@@ -39,7 +39,7 @@ using namespace Kleo::Crypto;
using
namespace
Kleo
::
Crypto
::
Gui
;
DecryptVerifyFilesDialog
::
DecryptVerifyFilesDialog
(
const
std
::
shared_ptr
<
TaskCollection
>
&
coll
,
QWidget
*
parent
)
:
QDialog
(
parent
),
m_tasks
(
coll
),
m_saveButton
(
QDialogButtonBox
::
NoButton
),
m_buttonBox
(
new
QDialogButtonBox
)
:
QDialog
(
parent
),
m_tasks
(
coll
),
m_buttonBox
(
new
QDialogButtonBox
)
{
readConfig
();
auto
vLay
=
new
QVBoxLayout
(
this
);
...
...
src/crypto/gui/decryptverifyfilesdialog.h
View file @
65137e1f
...
...
@@ -65,8 +65,8 @@ private:
int
m_lastErrorItemIndex
;
ResultListWidget
*
m_resultList
;
FileNameRequester
*
m_outputLocationFNR
;
QDialogButtonBox
::
StandardButton
m_saveButton
;
QDialogButtonBox
*
m_buttonBox
;
QDialogButtonBox
::
StandardButton
m_saveButton
=
QDialogButtonBox
::
NoButton
;
QDialogButtonBox
*
const
m_buttonBox
;
};
}
// namespace Gui
...
...
src/crypto/gui/encryptemailwizard.cpp
View file @
65137e1f
...
...
@@ -21,8 +21,7 @@ using namespace Kleo::Crypto::Gui;
class
EncryptEMailWizard
::
Private
{
public:
Private
()
:
m_quickMode
(
false
)
{}
bool
m_quickMode
;
bool
m_quickMode
=
false
;
};
EncryptEMailWizard
::
EncryptEMailWizard
(
QWidget
*
parent
,
Qt
::
WindowFlags
flags
)
:
SignEncryptWizard
(
parent
,
flags
),
d
(
new
Private
)
...
...
src/crypto/gui/resolverecipientspage.cpp
View file @
65137e1f
...
...
@@ -59,7 +59,8 @@ ResolveRecipientsPage::ListWidget::~ListWidget()
void
ResolveRecipientsPage
::
ListWidget
::
onSelectionChange
()
{
Q_FOREACH
(
const
QString
&
i
,
widgets
.
keys
())
{
const
auto
widgetskeys
=
widgets
.
keys
();
for
(
const
QString
&
i
:
widgetskeys
)
{
Q_ASSERT
(
items
.
contains
(
i
));
widgets
[
i
]
->
setSelected
(
items
[
i
]
->
isSelected
());
}
...
...
src/crypto/gui/resultitemwidget.cpp
View file @
65137e1f
...
...
@@ -85,7 +85,7 @@ class ResultItemWidget::Private
{
ResultItemWidget
*
const
q
;
public:
explicit
Private
(
const
std
::
shared_ptr
<
const
Task
::
Result
>
&
result
,
ResultItemWidget
*
qq
)
:
q
(
qq
),
m_result
(
result
)
,
m_detailsLabel
(
nullptr
),
m_actionsLabel
(
nullptr
),
m_closeButton
(
nullptr
),
m_importCanceled
(
false
)
explicit
Private
(
const
std
::
shared_ptr
<
const
Task
::
Result
>
&
result
,
ResultItemWidget
*
qq
)
:
q
(
qq
),
m_result
(
result
)
{
Q_ASSERT
(
m_result
);
}
...
...
@@ -99,10 +99,10 @@ public:
void
oneImportFinished
();
const
std
::
shared_ptr
<
const
Task
::
Result
>
m_result
;
QLabel
*
m_detailsLabel
;
QLabel
*
m_actionsLabel
;
QPushButton
*
m_closeButton
;
bool
m_importCanceled
;
QLabel
*
m_detailsLabel
=
nullptr
;
QLabel
*
m_actionsLabel
=
nullptr
;
QPushButton
*
m_closeButton
=
nullptr
;
bool
m_importCanceled
=
false
;
};
void
ResultItemWidget
::
Private
::
oneImportFinished
()
...
...
src/crypto/gui/resultlistwidget.cpp
View file @
65137e1f
...
...
@@ -49,23 +49,17 @@ public:
void
resizeIfStandalone
();
std
::
vector
<
std
::
shared_ptr
<
TaskCollection
>
>
m_collections
;
bool
m_standaloneMode
;
int
m_lastErrorItemIndex
;
ScrollArea
*
m_scrollArea
;
QPushButton
*
m_closeButton
;
QVBoxLayout
*
m_layout
;
QLabel
*
m_progressLabel
;
bool
m_standaloneMode
=
false
;
int
m_lastErrorItemIndex
=
0
;
ScrollArea
*
m_scrollArea
=
nullptr
;
QPushButton
*
m_closeButton
=
nullptr
;
QVBoxLayout
*
m_layout
=
nullptr
;
QLabel
*
m_progressLabel
=
nullptr
;
};
ResultListWidget
::
Private
::
Private
(
ResultListWidget
*
qq
)
:
q
(
qq
),
m_collections
(),
m_standaloneMode
(
false
),
m_lastErrorItemIndex
(
0
),
m_scrollArea
(
nullptr
),
m_closeButton
(
nullptr
),
m_layout
(
nullptr
),
m_progressLabel
(
nullptr
)
m_collections
()
{
m_layout
=
new
QVBoxLayout
(
q
);
m_layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
...
...
src/crypto/gui/resultpage.cpp
View file @
65137e1f
...
...
@@ -47,12 +47,12 @@ public:
QProgressBar
*
m_progressBar
;
QHash
<
QString
,
QLabel
*>
m_progressLabelByTag
;
QVBoxLayout
*
m_progressLabelLayout
;
int
m_lastErrorItemIndex
;
int
m_lastErrorItemIndex
=
0
;
ResultListWidget
*
m_resultList
;
QCheckBox
*
m_keepOpenCB
;
};
ResultPage
::
Private
::
Private
(
ResultPage
*
qq
)
:
q
(
qq
)
,
m_lastErrorItemIndex
(
0
)
ResultPage
::
Private
::
Private
(
ResultPage
*
qq
)
:
q
(
qq
)
{
QBoxLayout
*
const
layout
=
new
QVBoxLayout
(
q
);
QWidget
*
const
labels
=
new
QWidget
;
...
...
src/crypto/gui/signemailwizard.cpp
View file @
65137e1f
...
...
@@ -46,7 +46,8 @@ private:
};
}
SignerResolveValidator
::
SignerResolveValidator
(
SignerResolvePage
*
page
)
:
SignerResolvePage
::
Validator
(),
m_page
(
page
),
complete
(
true
)
SignerResolveValidator
::
SignerResolveValidator
(
SignerResolvePage
*
page
)
:
SignerResolvePage
::
Validator
(),
m_page
(
page
),
complete
(
true
)
{
Q_ASSERT
(
m_page
);
}
...
...
src/crypto/gui/signencryptfileswizard.cpp
View file @
65137e1f
...
...
@@ -370,8 +370,6 @@ private:
SignEncryptFilesWizard
::
SignEncryptFilesWizard
(
QWidget
*
parent
,
Qt
::
WindowFlags
f
)
:
QWizard
(
parent
,
f
)
,
mSigningUserMutable
(
true
)
,
mEncryptionUserMutable
(
true
)
{
readConfig
();
...
...
src/crypto/gui/signencryptfileswizard.h
View file @
65137e1f
...
...
@@ -93,11 +93,11 @@ private Q_SLOTS:
void
slotCurrentIdChanged
(
int
);
private:
SigEncPage
*
mSigEncPage
;
ResultPage
*
mResultPage
;
QAbstractButton
*
mLabel
;
bool
mSigningUserMutable
,
mEncryptionUserMutable
;
SigEncPage
*
mSigEncPage
=
nullptr
;
ResultPage
*
mResultPage
=
nullptr
;
QAbstractButton
*
mLabel
=
nullptr
;
bool
mSigningUserMutable
=
true
;
bool
mEncryptionUserMutable
=
true
;
};
}
...
...
src/crypto/gui/signencryptwidget.h
View file @
65137e1f
...
...
@@ -102,21 +102,21 @@ Q_SIGNALS:
void
keysChanged
();
private:
KeySelectionCombo
*
mSigSelect
,
*
mSelfSelect
;
KeySelectionCombo
*
mSigSelect
=
nullptr
;
KeySelectionCombo
*
mSelfSelect
=
nullptr
;
QVector
<
CertificateLineEdit
*>
mRecpWidgets
;
QVector
<
UnknownRecipientWidget
*>
mUnknownWidgets
;
QVector
<
GpgME
::
Key
>
mAddedKeys
;
QGridLayout
*
mRecpLayout
;
QGridLayout
*
mRecpLayout
=
nullptr
;
QString
mOp
;
AbstractKeyListModel
*
mModel
;
QCheckBox
*
mSymmetric
,
*
mSigChk
,
*
mEncOtherChk
,
*
mEncSelfChk
;
int
mRecpRowCount
;
AbstractKeyListModel
*
mModel
=
nullptr
;
QCheckBox
*
mSymmetric
=
nullptr
;
QCheckBox
*
mSigChk
=
nullptr
;
QCheckBox
*
mEncOtherChk
=
nullptr
;
QCheckBox
*
mEncSelfChk
=
nullptr
;
int
mRecpRowCount
=
2
;
GpgME
::
Protocol
mCurrentProto
;
bool
mIsExclusive
;
const
bool
mIsExclusive
;
};
}
// namespace Kleo
#endif // CRYPTO_GUI_SIGNENCRYPTWIDGET_H
src/crypto/gui/signencryptwizard.cpp
View file @
65137e1f
...
...
@@ -49,10 +49,10 @@ public:
void
setCommitPage
(
Page
page
);
Gui
::
ResolveRecipientsPage
*
recipientResolvePage
;
// clashes with enum of same name
SignerResolvePage
*
signerResolvePage
;
Gui
::
ObjectsPage
*
objectsPage
;
// clashes with enum of same name
Gui
::
ResultPage
*
resultPage
;
// clashes with enum of same name
Gui
::
ResolveRecipientsPage
*
const
recipientResolvePage
;
// clashes with enum of same name
SignerResolvePage
*
const
signerResolvePage
;
Gui
::
ObjectsPage
*
const
objectsPage
;
// clashes with enum of same name
Gui
::
ResultPage
*
const
resultPage
;
// clashes with enum of same name
};
SignEncryptWizard
::
Private
::
Private
(
SignEncryptWizard
*
qq
)
...
...
src/crypto/gui/signerresolvepage.cpp
View file @
65137e1f
...
...
@@ -80,7 +80,8 @@ ReadOnlyProtocolSelectionWidget::ReadOnlyProtocolSelectionWidget(QWidget *p, Qt:
{
QVBoxLayout
*
const
layout
=
new
QVBoxLayout
(
this
);
layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
Q_FOREACH
(
const
Protocol
i
,
supportedProtocols
())
{
//krazy:exclude=foreach
const
auto
supportedProtocolsLst
=
supportedProtocols
();
for
(
const
Protocol
i
:
supportedProtocolsLst
)
{
QLabel
*
const
l
=
new
QLabel
;
l
->
setText
(
formatLabel
(
i
,
Key
()));
layout
->
addWidget
(
l
);
...
...
src/crypto/gui/signingcertificateselectiondialog.h
View file @
65137e1f
...
...
@@ -35,12 +35,12 @@ public:
void
setAllowedProtocols
(
const
QVector
<
GpgME
::
Protocol
>
&
allowedProtocols
);
void
setSelectedCertificates
(
const
QMap
<
GpgME
::
Protocol
,
GpgME
::
Key
>
&
certificates
);
QMap
<
GpgME
::
Protocol
,
GpgME
::
Key
>
selectedCertificates
()
const
;
Q_REQUIRED_RESULT
QMap
<
GpgME
::
Protocol
,
GpgME
::
Key
>
selectedCertificates
()
const
;
bool
rememberAsDefault
()
const
;
Q_REQUIRED_RESULT
bool
rememberAsDefault
()
const
;
private:
SigningCertificateSelectionWidget
*
widget
;
SigningCertificateSelectionWidget
*
const
widget
;
};
}
...
...
src/crypto/gui/wizard.cpp
View file @
65137e1f
...
...
@@ -50,23 +50,23 @@ private:
std
::
vector
<
int
>
pageOrder
;
std
::
set
<
int
>
hiddenPages
;
std
::
map
<
int
,
WizardPage
*>
idToPage
;
int
currentId
;
QStackedWidget
*
stack
;
QPushButton
*
nextButton
;
QPushButton
*
backButton
;
QPushButton
*
cancelButton
;
int
currentId
=
-
1
;
QStackedWidget
*
const
stack
;
QPushButton
*
nextButton
=
nullptr
;
QPushButton
*
backButton
=
nullptr
;
QPushButton
*
cancelButton
=
nullptr
;
KGuiItem
finishItem
;
KGuiItem
nextItem
;
QFrame
*
titleFrame
;
QLabel
*
titleLabel
;
QLabel
*
subTitleLabel
;
QFrame
*
explanationFrame
;
QLabel
*
explanationLabel
;
QTimer
*
nextPageTimer
;
QFrame
*
titleFrame
=
nullptr
;
QLabel
*
titleLabel
=
nullptr
;
QLabel
*
subTitleLabel
=
nullptr
;
QFrame
*
explanationFrame
=
nullptr
;
QLabel
*
explanationLabel
=
nullptr
;
QTimer
*
nextPageTimer
=
nullptr
;
};
Wizard
::
Private
::
Private
(
Wizard
*
qq
)
:
q
(
qq
),
currentId
(
-
1
),
stack
(
new
QStackedWidget
)
:
q
(
qq
),
stack
(
new
QStackedWidget
)
{
nextPageTimer
=
new
QTimer
(
q
);
nextPageTimer
->
setInterval
(
0
);
...
...
src/crypto/gui/wizardpage.cpp
View file @
65137e1f
...
...
@@ -24,8 +24,8 @@ public:
~
Private
();
private:
bool
commitPage
;
bool
autoAdvance
;
bool
commitPage
=
false
;
bool
autoAdvance
=
false
;
QString
title
;
QString
subTitle
;
QString
explanation
;
...
...
@@ -33,7 +33,7 @@ private:
};
WizardPage
::
Private
::
Private
(
WizardPage
*
qq
)
:
q
(
qq
)
,
commitPage
(
false
),
autoAdvance
(
false
)
:
q
(
qq
)
{
}
...
...
src/crypto/task.cpp
View file @
65137e1f
...
...
@@ -64,8 +64,8 @@ public:
return
AuditLog
();
}
private:
int
m_code
;
QString
m_details
;
const
int
m_code
;
const
QString
m_details
;
};
}
...
...
src/dialogs/addemaildialog.cpp
View file @
65137e1f
...
...
@@ -31,8 +31,7 @@ class AddEmailDialog::Private
{
public:
Private
(
AddEmailDialog
*
qq
)
:
q
(
qq
),
mAdvancedSelected
(
false
)
q
(
qq
)
{
auto
mainLay
=
new
QVBoxLayout
(
q
);
...
...
@@ -72,9 +71,9 @@ public:
}
AddEmailDialog
*
const
q
;
QPushButton
*
mOkButton
;
QLineEdit
*
mEmailEdit
;
bool
mAdvancedSelected
;
QPushButton
*
mOkButton
=
nullptr
;
QLineEdit
*
mEmailEdit
=
nullptr
;
bool
mAdvancedSelected
=
false
;
};
AddEmailDialog
::
AddEmailDialog
(
QWidget
*
parent
)
:
...
...
src/dialogs/adduseriddialog.cpp
View file @
65137e1f
...
...
@@ -37,7 +37,7 @@ struct Line {
QString
attr
;
QString
label
;
QString
regex
;
QLineEdit
*
edit
;
QLineEdit
*
edit
=
nullptr
;
};
}
...
...
src/uiserver/echocommand.cpp
View file @
65137e1f
...
...
@@ -34,9 +34,7 @@ static const char option_prefix[] = "prefix";
class
EchoCommand
::
Private
{
public:
Private
()
:
operationsInFlight
(
0
),
buffer
()
{}
int
operationsInFlight
;
int
operationsInFlight
=
0
;
QByteArray
buffer
;
};
...
...
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