[alohalytics] Indentation fixes.

This commit is contained in:
Alex Zolotarev 2015-06-18 13:02:28 +03:00
parent 56100edcee
commit 3f041ede57
3 changed files with 6 additions and 4 deletions

View file

@ -109,8 +109,9 @@ TStringMap FillMapHelper(JNIEnv * env, jobjectArray keyValuePairs) {
} // namespace
extern "C" {
JNIEXPORT void JNICALL
Java_org_alohalytics_Statistics_logEvent__Ljava_lang_String_2(JNIEnv * env, jclass, jstring eventName) {
JNIEXPORT void JNICALL Java_org_alohalytics_Statistics_logEvent__Ljava_lang_String_2(JNIEnv * env,
jclass,
jstring eventName) {
LogEvent(ToStdString(env, eventName));
}

View file

@ -224,7 +224,8 @@ bool Stats::UploadFileImpl(bool file_name_in_content, const std::string & conten
request.set_body_data(alohalytics::Gzip(content), kAlohalyticsHTTPContentType, "POST", "gzip");
}
const bool uploadSucceeded = request.RunHTTPRequest() && 200 == request.error_code() && !request.was_redirected();
LOG_IF_DEBUG("RunHTTPRequest has returned code", request.error_code(), request.was_redirected() ? "and request was redirected." : "");
LOG_IF_DEBUG("RunHTTPRequest has returned code", request.error_code(),
request.was_redirected() ? "and request was redirected." : "");
return uploadSucceeded;
} catch (const std::exception & ex) {
LOG_IF_DEBUG("Exception in UploadFileImpl:", ex.what());

View file

@ -266,7 +266,7 @@ class Location {
template <typename T>
static inline void AppendToStringAsBinary(std::string & str, const T & value, size_t bytes = sizeof(T)) {
// TODO(AlexZ): Uncomment when gcc and clang will correctly support is_trivially_copyable.
//static_assert(std::is_trivially_copyable<T>::value, "This type is not supported.");
// static_assert(std::is_trivially_copyable<T>::value, "This type is not supported.");
str.append(reinterpret_cast<const char *>(&value), bytes);
}
};