From 02cb72fd8b5558cf78c56f656cecab6833b44f8b Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Thu, 15 Sep 2016 13:32:33 +0300 Subject: [PATCH] Clang-format. --- iphone/Maps/main.mm | 4 ++-- platform/platform.hpp | 10 +++++----- platform/platform_android.cpp | 10 +++++----- platform/platform_mac.mm | 5 +---- platform/platform_qt.cpp | 6 +----- 5 files changed, 14 insertions(+), 21 deletions(-) diff --git a/iphone/Maps/main.mm b/iphone/Maps/main.mm index 3a7407c695..52343944e9 100644 --- a/iphone/Maps/main.mm +++ b/iphone/Maps/main.mm @@ -1,7 +1,7 @@ +#import #import #import "Common.h" #import "MapsAppDelegate.h" -#import #ifdef OMIM_PRODUCTION # include "fabric_logging.hpp" @@ -37,7 +37,7 @@ void setMarketingSender() if (tag.empty()) return; NSMutableDictionary * eventParams = [@{} mutableCopy]; - for(auto const & param : params) + for (auto const & param : params) eventParams[@(param.first.c_str())] = @(param.second.c_str()); [MRMyTracker trackEvent:@(tag.c_str()) eventParams:eventParams]; }); diff --git a/platform/platform.hpp b/platform/platform.hpp index dbd7bf341f..47ffba2525 100644 --- a/platform/platform.hpp +++ b/platform/platform.hpp @@ -6,12 +6,12 @@ #include "base/exception.hpp" -#include "std/string.hpp" -#include "std/vector.hpp" -#include "std/map.hpp" -#include "std/utility.hpp" -#include "std/function.hpp" #include "std/bitset.hpp" +#include "std/function.hpp" +#include "std/map.hpp" +#include "std/string.hpp" +#include "std/utility.hpp" +#include "std/vector.hpp" #include "defines.hpp" diff --git a/platform/platform_android.cpp b/platform/platform_android.cpp index cb228962e1..e8dacd3f8f 100644 --- a/platform/platform_android.cpp +++ b/platform/platform_android.cpp @@ -261,11 +261,11 @@ void Platform::SetupMeasurementSystem() const } /// @see implementation of methods below in android/jni/com/.../Platform.cpp -//void Platform::RunOnGuiThread(TFunctor const & fn){} -//void Platform::SendPushWooshTag(string const & tag){} -//void Platform::SendPushWooshTag(string const & tag, string const & value){} -//void Platform::SendPushWooshTag(string const & tag, vector const & values){} -//void Platform::SendMarketingEvent(string const & tag, map const & params){} +// void Platform::RunOnGuiThread(TFunctor const & fn){} +// void Platform::SendPushWooshTag(string const & tag){} +// void Platform::SendPushWooshTag(string const & tag, string const & value){} +// void Platform::SendPushWooshTag(string const & tag, vector const & values){} +// void Platform::SendMarketingEvent(string const & tag, map const & params){} namespace { diff --git a/platform/platform_mac.mm b/platform/platform_mac.mm index a8fc30ec80..85025bd62f 100644 --- a/platform/platform_mac.mm +++ b/platform/platform_mac.mm @@ -151,7 +151,4 @@ void Platform::SendPushWooshTag(string const & tag, string const & value) void Platform::SendPushWooshTag(string const & tag, vector const & values) { } - -void Platform::SendMarketingEvent(string const & tag, map const & params) -{ -} +void Platform::SendMarketingEvent(string const & tag, map const & params) {} diff --git a/platform/platform_qt.cpp b/platform/platform_qt.cpp index 3f3889d91b..4a7069f00a 100644 --- a/platform/platform_qt.cpp +++ b/platform/platform_qt.cpp @@ -107,11 +107,7 @@ void Platform::SendPushWooshTag(string const & tag, string const & value) void Platform::SendPushWooshTag(string const & tag, vector const & values) { } - -void Platform::SendMarketingEvent(string const & tag, map const & params) -{ -} - +void Platform::SendMarketingEvent(string const & tag, map const & params) {} #endif // defined(OMIM_OS_LINUX) extern Platform & GetPlatform()