diff options
author | Alexander Kutsan <AKutsan@luxoft.com> | 2014-09-17 16:53:49 +0300 |
---|---|---|
committer | Alexander Kutsan <AKutsan@luxoft.com> | 2014-09-17 16:53:49 +0300 |
commit | 6b261da47dc594b0c083c85fdcb52ee0a05aa1ea (patch) | |
tree | 725d365f0dc67dc0ff31954055a6e071866eafec | |
parent | 35dc860c9b6dacc8aa326f65b13ba561298d475a (diff) | |
download | sdl_core-SNAPSHOT_PASA18092014.tar.gz |
Not a subject for reviewSNAPSHOT_PASA18092014
Reason: Fix RTC build
-rw-r--r-- | src/3rd_party-static/MessageBroker/include/mb_controller.hpp | 2 | ||||
-rw-r--r-- | src/components/policy/src/policy/src/cache_manager.cc | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/3rd_party-static/MessageBroker/include/mb_controller.hpp b/src/3rd_party-static/MessageBroker/include/mb_controller.hpp index 7af679c7fe..52f7743a84 100644 --- a/src/3rd_party-static/MessageBroker/include/mb_controller.hpp +++ b/src/3rd_party-static/MessageBroker/include/mb_controller.hpp @@ -199,7 +199,7 @@ namespace NsMessageBroker void* MethodForReceiverThread(void * arg); virtual void exitReceivingThread() { -#ifdef CUSTOMER_PASA +#ifndef CUSTOMER_PASA Close(); #endif stop = true; diff --git a/src/components/policy/src/policy/src/cache_manager.cc b/src/components/policy/src/policy/src/cache_manager.cc index d944a1ce8b..725eb48ec2 100644 --- a/src/components/policy/src/policy/src/cache_manager.cc +++ b/src/components/policy/src/policy/src/cache_manager.cc @@ -36,7 +36,6 @@ #include <cstdlib> #include <functional> #include <ctime> -#include <math.h> #include "utils/file_system.h" #include "json/reader.h" @@ -1130,7 +1129,7 @@ void CacheManager::CopyInternalParams(const std::string &from, long CacheManager::ConvertSecondsToMinute(int seconds) { const float seconds_in_minute = 60.0; - return std::round(seconds / seconds_in_minute); + return static_cast<long>(seconds / seconds_in_minute); } bool CacheManager::SetDefaultPolicy(const std::string &app_id) { |