summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRALOVICH, Kristóf <tade60@freemail.hu>2013-07-09 16:41:52 +0200
committerRALOVICH, Kristóf <tade60@freemail.hu>2013-07-09 16:41:52 +0200
commit5b1680bf90010f264477279bf9774f1bfa2daa95 (patch)
tree0f974448ed22f6122bb3685cdcb3d78eec48884d /src
parent8c6b9774988863c730aa20444acba8c10f6b2d5f (diff)
fix types
Diffstat (limited to 'src')
-rw-r--r--src/DeviceSettings.cpp4
-rw-r--r--src/DeviceSettings.hpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/DeviceSettings.cpp b/src/DeviceSettings.cpp
index 1b0139d..b30ae6f 100644
--- a/src/DeviceSettings.cpp
+++ b/src/DeviceSettings.cpp
@@ -119,10 +119,10 @@ bool DeviceSettings::loadFromFile(const char *fname)
return false;
}
- LOG_VAR(pt.get<uint>("antpm.MaxFileDownloads"));
+ LOG_VAR(pt.get<unsigned int>("antpm.MaxFileDownloads"));
LOG_VAR(pt.get<std::string>("antpm.LastUserProfileTime"));
LOG_VAR(pt.get<std::string>("antpm.LastTransferredTime"));
- MaxFileDownloads = pt.get<uint>("antpm.MaxFileDownloads");
+ MaxFileDownloads = pt.get<unsigned int>("antpm.MaxFileDownloads");
LastUserProfileTime = str2time(pt.get<std::string>("antpm.LastUserProfileTime").c_str());
LastTransferredTime = str2time(pt.get<std::string>("antpm.LastTransferredTime").c_str());
return true;
diff --git a/src/DeviceSettings.hpp b/src/DeviceSettings.hpp
index d514a38..1f19570 100644
--- a/src/DeviceSettings.hpp
+++ b/src/DeviceSettings.hpp
@@ -33,9 +33,9 @@ public:
static std::time_t str2time(const char* from);
static const std::string time2str(const std::time_t t);
- uint MaxFileDownloads;
- std::time_t LastUserProfileTime; // date of the latest activity successfully downloaded fromt the device, represented as GMT/UTC
- std::time_t LastTransferredTime; // last timepoint, communication happened with the device, represented as GMT/UTC
+ unsigned int MaxFileDownloads;
+ std::time_t LastUserProfileTime; // date of the latest activity successfully downloaded fromt the device, represented as GMT/UTC
+ std::time_t LastTransferredTime; // last timepoint, communication happened with the device, represented as GMT/UTC
private:
std::string mDevId;
};