rename Version.h to StaticData.h

new temp file path for windows and linux
temp file now writeable on windows
compare string find method with SIZE_MAX instead of ULONG_MAX
This commit is contained in:
2020-05-26 16:51:29 +02:00
parent 3f75484f77
commit 81de98bf6c
8 changed files with 31 additions and 29 deletions

View File

@ -4,7 +4,6 @@
#include <FileLogger.h>
#include <api/IPAPI.h>
#include <climits>
#include "gtest/gtest.h"
/**
@ -21,7 +20,7 @@ TEST(ReadIp, testzeroIpIfNotExists) {
TEST(IPAPI, testIpAPIcheckIPSyntax) {
IPAPI ipapi;
std::string ip = ipapi.getGlobalIp();
if (ip.find('.') == ULONG_MAX) {
if (ip.find('.') == SIZE_MAX) {
// error when ip doesn't contain a .
ASSERT_TRUE(false);
} else {