Commit e967da36 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix cppcheck warning

parent bfc5c69f
......@@ -418,7 +418,6 @@ void Widget::viewDropEvent(QDropEvent *e)
if ((e->possibleActions() & Qt::MoveAction) == 0) { // We can't move anyway
action = DragCopy;
} else {
action = DragCancel;
const auto keybstate = QApplication::keyboardModifiers();
if (keybstate & Qt::CTRL) {
action = DragCopy;
......
......@@ -33,8 +33,8 @@
TestMailWebEngine::TestMailWebEngine(QWidget *parent)
: QWidget(parent)
, mZoom(1.0)
{
mZoom = 1.0;
QVBoxLayout *vbox = new QVBoxLayout(this);
mTestWebEngine = new MessageViewer::MailWebEngineView(new KActionCollection(this), this);
connect(mTestWebEngine, &MessageViewer::MailWebEngineView::openUrl, this,
......
......@@ -46,7 +46,7 @@ public:
Q_REQUIRED_RESULT PGPBlockType determineType() const;
QByteArray msg;
PGPBlockType mType;
PGPBlockType mType = UnknownBlock;
};
/** Parses the given message and splits it into OpenPGP blocks and
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment