- reduce the scope of a variable
- Mark a constructor as explicit
- Blindly obey the given hints about javascript that I don't really master
/**
* Toggle logic
*/
- $('.hidden-content').hide()
- $('.toggle-header').click(function () {
+ $(".hidden-content").hide();
+ $(".toggle-header").click(function () {
$(this).toggleClass("open");
- $(this).next('.toggle-content').toggle('400');
- })
+ $(this).next(".toggle-content").toggle('400');
+ });
});
/** Destroys a node answer object. */
void answer_free(answer_t answer)
{
- unsigned int i;
if (answer) {
- for (i = 0; i < answer->size; i++) {
+ for (unsigned int i = 0; i < answer->size; i++)
node_contact_free(*(void**)xbt_dynar_get_ptr(answer->nodes, i));
- }
xbt_dynar_free(&answer->nodes);
}
xbt_free(answer);
static constexpr int cache_simix_processes = 4;
public:
- RemoteSimulation(pid_t pid);
+ explicit RemoteSimulation(pid_t pid);
~RemoteSimulation();
void init();