Skip to content

Commit df3f7f5

Browse files
committed
clang
1 parent 4a7e4af commit df3f7f5

File tree

3 files changed

+113
-115
lines changed

3 files changed

+113
-115
lines changed

code/missioneditor/campaignsave.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ int Fred_campaign_save::save_campaign_file(const char* pathname, const SCP_vecto
134134
fout(" %s", cm.main_hall.c_str());
135135
} else {
136136
// save Bastion flag properly
137-
fout(" %d", flags_to_save | ((cm.main_hall != "") ? CMISSION_FLAG_BASTION : 0));
137+
fout(" %d", flags_to_save | ((!cm.main_hall.empty()) ? CMISSION_FLAG_BASTION : 0));
138138
}
139139

140140
if (!cm.substitute_main_hall.empty()) {
@@ -280,7 +280,7 @@ int Fred_campaign_save::save_campaign_file(const char* pathname, const SCP_vecto
280280

281281
required_string_fred("#End");
282282
parse_comments(2);
283-
token_found = NULL;
283+
token_found = nullptr;
284284
parse_comments();
285285
fout("\n");
286286

0 commit comments

Comments
 (0)