mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: move definition of get_units() to core/unit.c
The function is declared in core/unit.h, therefore it seems logical to define it in the corresponding source file. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
966cd873c5
commit
91ffa5a59a
2 changed files with 6 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include "units.h"
|
||||
#include "gettext.h"
|
||||
#include "pref.h"
|
||||
|
||||
int get_pressure_units(int mb, const char **units)
|
||||
{
|
||||
|
|
@ -168,3 +169,8 @@ double get_weight_units(unsigned int grams, int *frac, const char **units)
|
|||
*units = unit;
|
||||
return value;
|
||||
}
|
||||
|
||||
const struct units *get_units()
|
||||
{
|
||||
return &prefs.units;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue