summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-27 07:12:45 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-27 07:35:46 -0700
commite89a87a2e8d763fa7eecb923746a972de735a606 (patch)
tree34cdaa5945bf92aadc3377002878092ba0987c8d /tests
parent1c8c62ce20e50b84a72228970a8761d5c4e8302d (diff)
downloadsubsurface-e89a87a2e8d763fa7eecb923746a972de735a606.tar.gz
Cleanup: remove pointless call to get_units
This simply returns the address of prefs.units. Found by Coverity. Fixes CID 60237 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testunitconversion.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/testunitconversion.cpp b/tests/testunitconversion.cpp
index f85afa7f3..acba2a5f2 100644
--- a/tests/testunitconversion.cpp
+++ b/tests/testunitconversion.cpp
@@ -22,7 +22,6 @@ void TestUnitConversion::testUnitConversions()
QCOMPARE(IS_FP_SAME(bar_to_atm(1.013), 1.0), true);
QCOMPARE(IS_FP_SAME(mbar_to_atm(1013), 1.0), true);
QCOMPARE(mbar_to_PSI(1013), (int)15);
- get_units();
}
QTEST_GUILESS_MAIN(TestUnitConversion)