@@ -32,20 +32,20 @@ AllianceHistory::AllianceHistory(
3232 Country const * new_first,
3333 Country const * new_second,
3434 const Period new_period
35- ) : first { new_first }, second { new_second }, period {new_period} {}
35+ ) : first { new_first }, second { new_second }, period { new_period } {}
3636
3737ReparationsHistory::ReparationsHistory (
3838 Country const * new_receiver,
3939 Country const * new_sender,
4040 const Period new_period
41- ) : receiver { new_receiver }, sender { new_sender }, period {new_period} {}
41+ ) : receiver { new_receiver }, sender { new_sender }, period { new_period } {}
4242
4343SubjectHistory::SubjectHistory (
4444 Country const * new_overlord,
4545 Country const * new_subject,
4646 const type_t new_type,
4747 const Period new_period
48- ) : overlord { new_overlord }, subject { new_subject }, type { new_type }, period {new_period} {}
48+ ) : overlord { new_overlord }, subject { new_subject }, type { new_type }, period { new_period } {}
4949
5050void DiplomaticHistoryManager::reserve_more_wars (size_t size) {
5151 if (locked) {
@@ -115,10 +115,10 @@ bool DiplomaticHistoryManager::load_diplomacy_history_file(CountryManager const&
115115 std::optional<Date> end {};
116116
117117 bool ret = expect_dictionary_keys (
118- " first" , ONE_EXACTLY, expect_identifier_or_string ( country_manager.expect_country_str (assign_variable_callback_pointer (first) )),
119- " second" , ONE_EXACTLY, expect_identifier_or_string ( country_manager.expect_country_str (assign_variable_callback_pointer (second) )),
120- " start_date" , ONE_EXACTLY, expect_identifier_or_string ( expect_date_str ( assign_variable_callback (start) )),
121- " end_date" , ZERO_OR_ONE, expect_identifier_or_string ( expect_date_str ( assign_variable_callback (end) ))
118+ " first" , ONE_EXACTLY, country_manager.expect_country_identifier_or_string (assign_variable_callback_pointer (first)),
119+ " second" , ONE_EXACTLY, country_manager.expect_country_identifier_or_string (assign_variable_callback_pointer (second)),
120+ " start_date" , ONE_EXACTLY, expect_date_identifier_or_string ( assign_variable_callback (start)),
121+ " end_date" , ZERO_OR_ONE, expect_date_identifier_or_string ( assign_variable_callback (end))
122122 )(node);
123123
124124 alliances.push_back ({ first, second, { start, end } });
@@ -131,10 +131,10 @@ bool DiplomaticHistoryManager::load_diplomacy_history_file(CountryManager const&
131131 std::optional<Date> end {};
132132
133133 bool ret = expect_dictionary_keys (
134- " first" , ONE_EXACTLY, expect_identifier_or_string ( country_manager.expect_country_str (assign_variable_callback_pointer (overlord) )),
135- " second" , ONE_EXACTLY, expect_identifier_or_string ( country_manager.expect_country_str (assign_variable_callback_pointer (subject) )),
136- " start_date" , ONE_EXACTLY, expect_identifier_or_string ( expect_date_str ( assign_variable_callback (start) )),
137- " end_date" , ZERO_OR_ONE, expect_identifier_or_string ( expect_date_str ( assign_variable_callback (end) ))
134+ " first" , ONE_EXACTLY, country_manager.expect_country_identifier_or_string (assign_variable_callback_pointer (overlord)),
135+ " second" , ONE_EXACTLY, country_manager.expect_country_identifier_or_string (assign_variable_callback_pointer (subject)),
136+ " start_date" , ONE_EXACTLY, expect_date_identifier_or_string ( assign_variable_callback (start)),
137+ " end_date" , ZERO_OR_ONE, expect_date_identifier_or_string ( assign_variable_callback (end))
138138 )(node);
139139
140140 subjects.push_back ({ overlord, subject, SubjectHistory::type_t ::VASSAL, { start, end } });
@@ -147,10 +147,10 @@ bool DiplomaticHistoryManager::load_diplomacy_history_file(CountryManager const&
147147 std::optional<Date> end {};
148148
149149 bool ret = expect_dictionary_keys (
150- " first" , ONE_EXACTLY, country_manager.expect_country_identifier (assign_variable_callback_pointer (overlord)),
151- " second" , ONE_EXACTLY, country_manager.expect_country_identifier (assign_variable_callback_pointer (subject)),
152- " start_date" , ONE_EXACTLY, expect_date (assign_variable_callback (start)),
153- " end_date" , ZERO_OR_ONE, expect_date (assign_variable_callback (end))
150+ " first" , ONE_EXACTLY, country_manager.expect_country_identifier_or_string (assign_variable_callback_pointer (overlord)),
151+ " second" , ONE_EXACTLY, country_manager.expect_country_identifier_or_string (assign_variable_callback_pointer (subject)),
152+ " start_date" , ONE_EXACTLY, expect_date_identifier_or_string (assign_variable_callback (start)),
153+ " end_date" , ZERO_OR_ONE, expect_date_identifier_or_string (assign_variable_callback (end))
154154 )(node);
155155
156156 subjects.push_back ({ overlord, subject, SubjectHistory::type_t ::UNION, { start, end } });
@@ -163,10 +163,10 @@ bool DiplomaticHistoryManager::load_diplomacy_history_file(CountryManager const&
163163 std::optional<Date> end {};
164164
165165 bool ret = expect_dictionary_keys (
166- " first" , ONE_EXACTLY, country_manager.expect_country_identifier (assign_variable_callback_pointer (overlord)),
167- " second" , ONE_EXACTLY, country_manager.expect_country_identifier (assign_variable_callback_pointer (subject)),
168- " start_date" , ONE_EXACTLY, expect_date (assign_variable_callback (start)),
169- " end_date" , ZERO_OR_ONE, expect_date (assign_variable_callback (end))
166+ " first" , ONE_EXACTLY, country_manager.expect_country_identifier_or_string (assign_variable_callback_pointer (overlord)),
167+ " second" , ONE_EXACTLY, country_manager.expect_country_identifier_or_string (assign_variable_callback_pointer (subject)),
168+ " start_date" , ONE_EXACTLY, expect_date_identifier_or_string (assign_variable_callback (start)),
169+ " end_date" , ZERO_OR_ONE, expect_date_identifier_or_string (assign_variable_callback (end))
170170 )(node);
171171
172172 subjects.push_back ({ overlord, subject, SubjectHistory::type_t ::SUBSTATE, { start, end } });
@@ -179,10 +179,10 @@ bool DiplomaticHistoryManager::load_diplomacy_history_file(CountryManager const&
179179 std::optional<Date> end {};
180180
181181 bool ret = expect_dictionary_keys (
182- " first" , ONE_EXACTLY, country_manager.expect_country_identifier (assign_variable_callback_pointer (receiver)),
183- " second" , ONE_EXACTLY, country_manager.expect_country_identifier (assign_variable_callback_pointer (sender)),
184- " start_date" , ONE_EXACTLY, expect_date (assign_variable_callback (start)),
185- " end_date" , ZERO_OR_ONE, expect_date (assign_variable_callback (end))
182+ " first" , ONE_EXACTLY, country_manager.expect_country_identifier_or_string (assign_variable_callback_pointer (receiver)),
183+ " second" , ONE_EXACTLY, country_manager.expect_country_identifier_or_string (assign_variable_callback_pointer (sender)),
184+ " start_date" , ONE_EXACTLY, expect_date_identifier_or_string (assign_variable_callback (start)),
185+ " end_date" , ZERO_OR_ONE, expect_date_identifier_or_string (assign_variable_callback (end))
186186 )(node);
187187
188188 reparations.push_back ({ receiver, sender, { start, end } });
0 commit comments