/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
platform/http_user_agent.cpp
28 строк
467 B
Maxim Pimenov
Got rid of the old style std/ includes for several files, mostly in map/ and platform/.
23 сен 2019, 13:25
23 сен 2019, 13:25
bfc0b02
Код
Авторство
О чём код?
#include "platform/http_user_agent.hpp" #include "std/target_os.hpp" #include <sstream> namespace platform { HttpUserAgent::HttpUserAgent() { m_appVersion = ExtractAppVersion(); } std::string HttpUserAgent::Get() const { std::stringstream ss; ss << "MAPS.ME/"; #if defined(OMIM_OS_IPHONE) ss << "iOS/"; #elif defined(OMIM_OS_ANDROID) ss << "Android/"; #else ss << "Unknown/"; #endif ss << m_appVersion; return ss.str(); } } // namespace platform