Skip to content

Commit babd885

Browse files
committed
clang again
1 parent e9748ce commit babd885

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

code/missioneditor/sexp_tree_opf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class SexpTreeOPF {
6262
static sexp_list_item* get_listing_opf_adjust_audio_volume();
6363
static sexp_list_item* get_listing_opf_builtin_hud_gauge();
6464
static sexp_list_item* get_listing_opf_custom_hud_gauge();
65-
sexp_list_item* get_listing_opf_any_hud_gauge();
65+
static sexp_list_item* get_listing_opf_any_hud_gauge();
6666
static sexp_list_item* get_listing_opf_ship_effect();
6767
static sexp_list_item* get_listing_opf_explosion_option();
6868
static sexp_list_item* get_listing_opf_waypoint_path();

qtfred/src/ui/widgets/sexp_tree_view.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,8 @@ void sexp_tree_view::addReplaceTypedDataHandler(int data_idx, bool replace) {
17241724
Assertion(ptr, "Invalid SEXP list");
17251725
}
17261726

1727-
Assertion(SEXPT_TYPE(ptr->type) != SEXPT_OPERATOR && ptr->op < 0, "Invalid SEXP type or operator");
1727+
// NOLINTNEXTLINE(readability-simplify-boolean-expr) -- Assertion macro negates expr; keep readability here
1728+
Assertion((SEXPT_TYPE(ptr->type) != SEXPT_OPERATOR) && (ptr->op < 0), "Invalid SEXP type or operator");
17281729
_actions.expand_operator(item_index);
17291730
if (replace) {
17301731
_actions.replace_data(ptr->text.c_str(), ptr->type);
@@ -1758,7 +1759,8 @@ void sexp_tree_view::handleReplaceVariableAction(int id) {
17581759
Assertion(item_index >= 0, "Invalid item index");
17591760

17601761
// get index into list of type valid variables
1761-
Assertion(id >= 0 && id < MAX_SEXP_VARIABLES, "Invalid variable index");
1762+
// NOLINTNEXTLINE(readability-simplify-boolean-expr) -- Assertion macro negates expr; keep readability here
1763+
Assertion((id >= 0) && (id < MAX_SEXP_VARIABLES), "Invalid variable index");
17621764

17631765
int type = get_type(currentItem());
17641766
Assertion((type & SEXPT_NUMBER) || (type & SEXPT_STRING), "Invalid node type");

0 commit comments

Comments
 (0)