-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reduce code analysis warnings * Remove NullData constants - Pass simulation records by value * Use struct instead of class for private data * Use qDebug() << "" instead of qDebug("") * Pre-allocate vector capacity - Return std::vector by value * Return vectors by value - Revert arguments back to "const &" - Also refer to: https://raw.githubusercontent.com/CppCon/CppCon2014/ master/Presentations/Back%20to%20the%20Basics! %20Essentials%20of%20Modern%20C%2B%2B%20Style/Back%20to%20the%20Basics! %20Essentials%20of%20Modern%20C%2B%2B%20Style%20-%20Herb%20Sutter%20- %20CppCon%202014.pdf - -> Slide 24 * Move data will invalidate data ("null" data) * Return aircraft vector by value * Return by value (copy ellision) * Return data by value (WIP) - Won't compile * Use const pimpl - Refer to "Lifetime Safety... By Default: Making Code Leak-Free by Construction", Herb Sutter, CppCon 2016 - WIP (won't compile) * Refactoring (WIP) * C++-14-ify type traits * Use return value optimisation (RVO) * Fix mutual shared pointer dependencies (graph edges) - In the (academic) case when the module graph should have cycles - Which would be possible if two (or seval) modules defined "after" dependencies for each other (which would be a "configuration bug") * Remove const from values returned by value * Value-based aircraft list - Drop QObject inheritance - WIP: Refactor signals (won't compile) * Move waypoint / aircraft info signals - Compiles again - TODO: Explictly emit signals (from services) * Move ctor: initialise private data * Thread-safe acccess to singletons - Not that we have multiple threads just yet... - ... but you never know :) * Rename LogbookManager to PersistenceManager - To avoid confusion with Logbook (the model) * Replace "other" with "rhs" * Refactoring (won't compile) * FIX: Update Flight information dialog when loading flight * Restore method names * Bump version to 0.13 * Rule of zero / five #1 * Rule of zero / five #2 * Rule of zero / five #3 * Rule of zero / five #4 * Update * Constant strings * Fix compilation (Windows)
- Loading branch information
Showing
345 changed files
with
3,336 additions
and
3,898 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
#ifndef CONST_H | ||
#define CONST_H | ||
|
||
#include <string_view> | ||
|
||
namespace Const { | ||
constexpr char LogbookExtension[] = ".sdlog"; | ||
|
||
constexpr char BackupNeverSymId[] = "NEVER"; | ||
constexpr char BackupNowSymId[] = "NOW"; | ||
constexpr char BackupMonthlySymId[] = "MONTH"; | ||
constexpr char BackupWeeklySymId[] = "WEEK"; | ||
constexpr char BackupDailySymId[] = "DAY"; | ||
constexpr char BackupAlwaysSymId[] = "ALWAYS"; | ||
|
||
/*! | ||
* An invalid ID indicates that the object has not yet been (successfully) persisted. | ||
*/ | ||
constexpr std::int64_t InvalidId {-1}; | ||
|
||
constexpr const char *LogbookExtension {".sdlog"}; | ||
|
||
constexpr const char *BackupNeverSymId = "NEVER"; | ||
constexpr const char *BackupNowSymId = "NOW"; | ||
constexpr const char *BackupMonthlySymId = "MONTH"; | ||
constexpr const char *BackupWeeklySymId = "WEEK"; | ||
constexpr const char *BackupDailySymId = "DAY"; | ||
constexpr const char *BackupAlwaysSymId = "ALWAYS"; | ||
} | ||
|
||
#endif // CONST_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.