Skip to content

Commit 227cab8

Browse files
equalsrafequalsraf
authored andcommitted
Fix clang tidy errors
1 parent 501b35d commit 227cab8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/gui/app.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int s_exitStatus{ 0 };
2424

2525
struct ConnectorInitArgs
2626
{
27-
enum class Type
27+
enum class Type : std::int8_t
2828
{
2929
Embed,
3030
Server,
@@ -43,6 +43,10 @@ struct ConnectorInitArgs
4343

4444
ConnectorInitArgs(
4545
Type _type, int _timeout, QString _server, QString _nvim, QStringList nvimArgs) noexcept;
46+
47+
// non copyable - we don't need it and it triggers lint warnings on const members
48+
ConnectorInitArgs(const ConnectorInitArgs&) = delete;
49+
ConnectorInitArgs& operator=(const ConnectorInitArgs&) = delete;
4650
};
4751

4852
ConnectorInitArgs::Type getConnectorType(const QCommandLineParser& parser) noexcept

src/gui/popupmenu.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ void PopupMenu::setGeometry(int64_t row, int64_t col)
6161
const int height = sizeHintContent.height();
6262

6363
qDebug() << "Fallback: PUM anchored to 0,0 without parent shell_widget!";
64-
return QListView::setGeometry(0, 0, width, height);
64+
QListView::setGeometry(0, 0, width, height);
65+
return;
6566
}
6667

6768
const int cell_width = m_parentShellWidget->cellSize().width();
@@ -124,7 +125,7 @@ void PopupMenu::setGeometry(int64_t row, int64_t col)
124125
anchor_y = (row + 1) * cell_height;
125126
}
126127

127-
return QListView::setGeometry(anchor_x, anchor_y, width, height);
128+
QListView::setGeometry(anchor_x, anchor_y, width, height);
128129
}
129130

130131
} // Namespace

0 commit comments

Comments
 (0)