mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: Unify qthelper.h and qthelperfromc.h
Since all qt-helpers are defined in qthelper.cpp, there seems to be no reason to have two include files. By unifying the two files, duplication and inconsistencies are removed. The C++-only part is simply compiled away with #ifdefs. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e2a6b96db8
commit
cd5e17cf79
19 changed files with 65 additions and 73 deletions
|
@ -24,7 +24,7 @@
|
|||
#include "device.h"
|
||||
#include "membuffer.h"
|
||||
#include "git-access.h"
|
||||
#include "qthelperfromc.h"
|
||||
#include "qthelper.h"
|
||||
|
||||
const char *saved_git_id = NULL;
|
||||
|
||||
|
@ -173,9 +173,6 @@ static int get_index(const char *line)
|
|||
static int get_hex(const char *line)
|
||||
{ return strtoul(line, NULL, 16); }
|
||||
|
||||
/* this is in qthelper.cpp, so including the .h file is a pain */
|
||||
extern const char *printGPSCoords(int lat, int lon);
|
||||
|
||||
static void parse_dive_gps(char *line, struct membuffer *str, void *_dive)
|
||||
{
|
||||
(void) str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue