Skip to content

Commit 06129d1

Browse files
committed
Minor conformancy changes
1 parent 0a844d8 commit 06129d1

File tree

7 files changed

+14
-18
lines changed

7 files changed

+14
-18
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ project(FIL
1313

1414
# Get helper scripts
1515
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/FetchOBCMake.cmake)
16-
fetch_ob_cmake("d64498ec2654e7f3145d7efa36bfaa73ac30cc74")
16+
fetch_ob_cmake("3010a962688a63689cdc365722423f5de40c3c59")
1717

1818
# Initialize project according to standard rules
1919
include(OB/Project)
@@ -74,20 +74,20 @@ endif()
7474

7575
include(OB/FetchQx)
7676
ob_fetch_qx(
77-
REF "1bfe8bdb6047c1d6c3246e431652869e63cbe797"
77+
REF "d12b1a3dd8445ba3bae1271e4a6fc6fcb0420dfd"
7878
COMPONENTS
7979
${FIL_QX_COMPONENTS}
8080
)
8181

8282
# Fetch libfp (build and import from source)
8383
include(OB/Fetchlibfp)
84-
ob_fetch_libfp("d2b1960b76c10537f2beb933206d42a31576ab07")
84+
ob_fetch_libfp("34ff2c06224a4b97b1f3d1bcdc514a537c8116a8")
8585

8686
# Fetch CLIFp (build and import from source)
8787
include(OB/Utility)
8888
ob_cache_project_version(CLIFp)
8989
include(OB/FetchCLIFp)
90-
ob_fetch_clifp("f56246bad2504af08762d91ea1cc1361135c58ad")
90+
ob_fetch_clifp("1fa81edb32119d0f0cdf7f9aa2180078361ca62b")
9191

9292
# TODO: The shared build of this is essentially useless as only the CLIFp executable
9393
# is deployed, which only works if it's statically linked. There isn't a simple way

app/src/kernel/clifp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ Qx::VersionNumber CLIFp::installedVersion(const Fp::Install& fpInstall)
3232
{
3333
#ifdef _WIN32
3434
return Qx::FileDetails::readFileDetails(standardCLIFpPath(fpInstall)).fileVersion().normalized();
35-
#endif
35+
#else
3636
/* TODO: For now on Linux we just return a null version so that deployment always
3737
* occurs. Eventually, find a good way to grab version info from the installed ELF.
3838
*
3939
* Currently, we can't run it since it doesn't output to console, and there is no
4040
* standardized way to embed the info as part of the ELF structure.
4141
*/
4242
return Qx::VersionNumber();
43+
#endif
4344
}
4445
}
4546

app/src/launcher/implementation/attractmode/am-settings-data.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ Lr::DocHandlingError CrudeSettingsReader::readTargetDoc()
247247
{
248248
if(!mCurrentSubSettingParser->parse(key, value, depth))
249249
{
250-
QString setting = mCurrentSubSettingParser->settingName();
251-
errorStatus = Lr::DocHandlingError(*target(), Lr::DocHandlingError::DocReadFailed, UNKNOWN_KEY_ERROR.arg(key, setting));
250+
QString subSetting = mCurrentSubSettingParser->settingName();
251+
errorStatus = Lr::DocHandlingError(*target(), Lr::DocHandlingError::DocReadFailed, UNKNOWN_KEY_ERROR.arg(key, subSetting));
252252
break;
253253
}
254254
}

app/src/launcher/implementation/launchbox/lb-install.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ Qx::Error Install::postPlatformsImport()
368368
const QList<QString> affectedPlatforms = modifiedPlatforms();
369369
for(const QString& pn :affectedPlatforms)
370370
{
371-
Lb::Platform::Builder pb;
372-
pb.wName(pn);
373-
mPlatformsConfig->addPlatform(pb.build());
371+
Lb::Platform::Builder plb;
372+
plb.wName(pn);
373+
mPlatformsConfig->addPlatform(plb.build());
374374

375375
if(!mParents->containsPlatform(pn, PLATFORMS_PLATFORM_CATEGORY))
376376
{

app/src/launcher/interface/lr-data-interface.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,9 @@ bool operator== (const IDataDoc::Identifier& lhs, const IDataDoc::Identifier& rh
6161
}
6262

6363
//-Hashing------------------------------------------------------------------------------------------------------
64-
uint qHash(const IDataDoc::Identifier& key, uint seed) noexcept
64+
size_t qHash(const IDataDoc::Identifier& key, size_t seed) noexcept
6565
{
66-
seed = qHash(key.mDocType, seed);
67-
seed = qHash(key.mDocName, seed);
68-
69-
return seed;
66+
return qHashMulti(seed, key.mDocType, key.mDocName);
7067
}
7168

7269
//-Constructor--------------------------------------------------------------------------------------------------------

app/src/launcher/interface/lr-data-interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class IDataDoc
118118
class Identifier
119119
{
120120
friend bool operator== (const Identifier& lhs, const Identifier& rhs) noexcept;
121-
friend uint qHash(const Identifier& key, uint seed) noexcept;
121+
friend size_t qHash(const Identifier& key, size_t seed) noexcept;
122122

123123
private:
124124
Type mDocType;

app/src/ui/mainwindow.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,6 @@ Fp::Db::InclusionOptions MainWindow::getSelectedInclusionOptions() const
367367

368368
Import::UpdateOptions MainWindow::getSelectedUpdateOptions() const
369369
{
370-
return {ui->radioButton_onlyAdd->isChecked() ? Import::UpdateMode::OnlyNew : Import::UpdateMode::NewAndExisting, ui->checkBox_removeMissing->isChecked() };
371-
372370
QRadioButton* sel = static_cast<QRadioButton*>(ui->buttonGroup_updateMode->checkedButton());
373371
Q_ASSERT(sel);
374372
return mUpdateModeMap[sel];

0 commit comments

Comments
 (0)