mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 07:15:34 +08:00
Ref T265, Ref T430, Ref T473 functions renamed
This commit is contained in:
committed by
Mat Sutcliffe
parent
6bd3a50ed8
commit
2d3e2e2d99
@@ -794,7 +794,7 @@ namespace BlackMisc
|
||||
model, modelIata, modelSwift, wtc,
|
||||
real, legacy, military, rank
|
||||
);
|
||||
code.setKeyAndTimestampFromDatabaseJson(json, prefix);
|
||||
code.setKeyVersionTimestampFromDatabaseJson(json, prefix);
|
||||
return code;
|
||||
}
|
||||
|
||||
|
||||
@@ -455,7 +455,7 @@ namespace BlackMisc
|
||||
code.setGroupDesignator(groupDesignator);
|
||||
code.setGroupId(groupId);
|
||||
code.setGroupName(groupName);
|
||||
code.setKeyAndTimestampFromDatabaseJson(json, prefix);
|
||||
code.setKeyVersionTimestampFromDatabaseJson(json, prefix);
|
||||
return code;
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace BlackMisc
|
||||
const CCountry country = CCountry::fromDatabaseJson(json, "ctry_");
|
||||
airport.setCountry(country);
|
||||
|
||||
airport.setKeyAndTimestampFromDatabaseJson(json, prefix);
|
||||
airport.setKeyVersionTimestampFromDatabaseJson(json, prefix);
|
||||
return airport;
|
||||
}
|
||||
|
||||
|
||||
@@ -243,7 +243,7 @@ namespace BlackMisc
|
||||
if (combinedCode.isEmpty())
|
||||
{
|
||||
CLivery liveryStub; // only consists of id, maybe key and timestamp
|
||||
liveryStub.setKeyAndTimestampFromDatabaseJson(json, prefix);
|
||||
liveryStub.setKeyVersionTimestampFromDatabaseJson(json, prefix);
|
||||
return liveryStub;
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ namespace BlackMisc
|
||||
CAirlineIcaoCode airline;
|
||||
if (!isColorLivery) { airline = CAirlineIcaoCode::fromDatabaseJson(json, "al_"); }
|
||||
CLivery livery(combinedCode, airline, description, colorFuselage, colorTail, military);
|
||||
livery.setKeyAndTimestampFromDatabaseJson(json, prefix);
|
||||
livery.setKeyVersionTimestampFromDatabaseJson(json, prefix);
|
||||
|
||||
// color liveries must have default ICAO, but airline liveries must have DB airline
|
||||
BLACK_VERIFY_X((livery.isColorLivery() && !livery.getAirlineIcaoCode().hasValidDbKey()) || (livery.isAirlineLivery() && livery.getAirlineIcaoCode().hasValidDbKey()), Q_FUNC_INFO, "inconsistent data");
|
||||
@@ -275,7 +275,7 @@ namespace BlackMisc
|
||||
if (combinedCode.isEmpty())
|
||||
{
|
||||
CLivery liveryStub; // only consists of id, maybe key and timestamp
|
||||
liveryStub.setKeyAndTimestampFromDatabaseJson(json, prefix);
|
||||
liveryStub.setKeyVersionTimestampFromDatabaseJson(json, prefix);
|
||||
return liveryStub;
|
||||
}
|
||||
|
||||
@@ -303,7 +303,7 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
CLivery livery(combinedCode, airline, description, colorFuselage, colorTail, military);
|
||||
livery.setKeyAndTimestampFromDatabaseJson(json, prefix);
|
||||
livery.setKeyVersionTimestampFromDatabaseJson(json, prefix);
|
||||
|
||||
// color liveries must have default ICAO, but airline liveries must have DB airline
|
||||
BLACK_VERIFY_X((livery.isColorLivery() && !livery.getAirlineIcaoCode().hasValidDbKey()) || (livery.isAirlineLivery() && livery.getAirlineIcaoCode().hasValidDbKey()), Q_FUNC_INFO, "inconsistent data");
|
||||
|
||||
Reference in New Issue
Block a user