Akaflieg-Freiburg / enroute

A free navigation app for VFR pilots
https://akaflieg-freiburg.github.io/enroute/
GNU General Public License v3.0
111 stars 28 forks source link

Removed warnings bugprone-unchecked-optional-access in Decoder.cpp #469

Closed Munzijoy closed 1 week ago

Munzijoy commented 1 week ago

Running clang-tidy on the Decoder class resulted in several warnings of type bugprone-unchecked-optional-access. Removed those warnings by adding appropriate checks for std::optional type variables, before their values are used. This refers to issue comment https://github.com/Akaflieg-Freiburg/enroute/issues/408#issuecomment-2461575037

kebekus commented 1 week ago

@Munzijoy Thank you so much. I merged your PR and will prepare the next release today.