citra-emu
/
citra-canary
Archived
1
0
Fork 0

Fix clang format

This commit is contained in:
Hamish Milne 2020-04-18 15:14:01 +01:00
parent 1fb3c9f08c
commit c5a3bf9728
2 changed files with 6 additions and 5 deletions

View File

@ -93,9 +93,10 @@ private:
void serialize(Archive& ar, const unsigned int file_version) { void serialize(Archive& ar, const unsigned int file_version) {
ar& boost::serialization::base_object<Object>(*this); ar& boost::serialization::base_object<Object>(*this);
if (file_version == 1) { if (file_version == 1) {
// This rigmarole is needed because in past versions, AddressArbiter inherited WakeupCallback // This rigmarole is needed because in past versions, AddressArbiter inherited
// But it turns out this breaks shared_from_this, so we split it out. // WakeupCallback But it turns out this breaks shared_from_this, so we split it out.
// Using a dummy class to deserialize a base_object allows compatibility to be maintained. // Using a dummy class to deserialize a base_object allows compatibility to be
// maintained.
DummyCallback x; DummyCallback x;
ar& boost::serialization::base_object<WakeupCallback>(x); ar& boost::serialization::base_object<WakeupCallback>(x);
} }