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>
This commit is contained in:
Dirk Hohndel 2019-10-27 07:12:45 -04:00
parent 1c8c62ce20
commit e89a87a2e8

View file

@ -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)