1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-27 03:29:16 +02:00

Code cleanup

This commit is contained in:
2018-01-22 00:38:13 +01:00
parent d6de3acbd2
commit 77c4eda385
6 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
#include <cstring>
#include "str2int.h"
#include "common/str2int.h"
#include "igcparser.h"

View File

@ -1,5 +1,5 @@
#include <cstring>
#include "str2int.h"
#include "common/str2int.h"
#include "nmeaparser.h"

View File

@ -1,16 +0,0 @@
#include <cctype>
#include "str2int.h"
int str2int(const char *str, int len)
{
int res = 0;
for (const char *sp = str; sp < str + len; sp++) {
if (::isdigit(*sp))
res = res * 10 + *sp - '0';
else
return -1;
}
return res;
}

View File

@ -1,6 +0,0 @@
#ifndef MISC_H
#define MISC_H
int str2int(const char *str, int len);
#endif // MISC_H