1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-29 18:04:24 +02:00

Compare commits

..

7 Commits

Author SHA1 Message Date
38cd871178 Cleanup 2023-01-05 22:13:26 +01:00
5594bf74b6 Run the CodeQL action manually only 2023-01-05 22:02:25 +01:00
65515143eb Added missing include guard prefix 2023-01-05 21:44:03 +01:00
29895420b6 Fixed broken temperature units translations 2023-01-01 16:54:44 +01:00
88f7e13500 Added alignment check 2022-12-23 08:35:59 +01:00
51335a0f84 Added missing build dependencies 2022-12-16 16:34:32 +01:00
077cc20934 Create codeql.yml 2022-12-16 16:23:59 +01:00
4 changed files with 53 additions and 7 deletions

45
.github/workflows/codeql.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: "CodeQL"
on: [workflow_dispatch]
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install qtbase5-dev qtbase5-private-dev qtbase5-dev-tools qt5-qmake qttools5-dev-tools libqt5opengl5-dev qtpositioning5-dev libqt5svg5-dev
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

View File

@ -2397,12 +2397,12 @@
<message>
<location filename="../src/GUI/temperaturegraph.cpp" line="111"/>
<source>C</source>
<translation>°C</translation>
<translation>C</translation>
</message>
<message>
<location filename="../src/GUI/temperaturegraph.cpp" line="115"/>
<source>F</source>
<translation>°F</translation>
<translation>F</translation>
</message>
</context>
<context>
@ -2410,12 +2410,12 @@
<message>
<location filename="../src/GUI/temperaturegraphitem.cpp" line="21"/>
<source>C</source>
<translation>°C</translation>
<translation>C</translation>
</message>
<message>
<location filename="../src/GUI/temperaturegraphitem.cpp" line="21"/>
<source>F</source>
<translation>°F</translation>
<translation>F</translation>
</message>
<message>
<location filename="../src/GUI/temperaturegraphitem.cpp" line="24"/>

View File

@ -97,6 +97,7 @@ int ISO8211::readDR(QFile &file, QVector<FieldDefinition> &fields) const
QByteArray fieldLen, fieldPos;
int len, lenSize, posSize, tagSize, offset;
static_assert(sizeof(ddr) == 24, "Invalid DR alignment");
if (file.read((char*)&ddr, sizeof(ddr)) != sizeof(ddr))
return -1;

View File

@ -1,5 +1,5 @@
#ifndef SECTION_H
#define SECTION_H
#ifndef IMG_SECTION_H
#define IMG_SECTION_H
#include <QtGlobal>
@ -14,4 +14,4 @@ struct Section {
}
#endif // SECTION_H
#endif // IMG_SECTION_H