Skip to content

Comments

tmp#5

Open
AndrewShkrob wants to merge 2 commits intomasterfrom
tmp/cpp-ex
Open

tmp#5
AndrewShkrob wants to merge 2 commits intomasterfrom
tmp/cpp-ex

Conversation

@AndrewShkrob
Copy link
Owner

No description provided.

g_onBookmarksChangedMethod =
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksChanged", "()V");
jobject bookmarkManagerInstance = env->GetStaticObjectField(g_bookmarkManagerClass, g_bookmarkManagerInstanceField);
g_onBookmarksChangedMethod = jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksChanged", "()V");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
g_onBookmarksChangedMethod = jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksChanged", "()V");
g_onBookmarksChangedMethod = jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksChanged", "()V");

g_onBookmarksChangedMethod = jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksChanged", "()V");
g_onBookmarksLoadingStartedMethod =
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksLoadingStarted", "()V");
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksLoadingStarted", "()V");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksLoadingStarted", "()V");
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksLoadingStarted", "()V");

jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksLoadingStarted", "()V");
g_onBookmarksLoadingFinishedMethod =
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksLoadingFinished", "()V");
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksLoadingFinished", "()V");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksLoadingFinished", "()V");
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksLoadingFinished", "()V");

g_onPreparedFileForSharingMethod =
jni::GetMethodID(env, bookmarkManagerInstance, "onPreparedFileForSharing",
"(Lapp/organicmaps/bookmarks/data/BookmarkSharingResult;)V");
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksFileLoaded", "(ZLjava/lang/String;Z)V");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksFileLoaded", "(ZLjava/lang/String;Z)V");
jni::GetMethodID(env, bookmarkManagerInstance, "onBookmarksFileLoaded", "(ZLjava/lang/String;Z)V");

Comment on lines +18 to +19
const size_t & tmp = prevSize;
// Comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
const size_t & tmp = prevSize;
// Comment
size_t const & tmp = prevSize;
// Comment

// Comment
for (size_t i = prevSize; i < currSize; ++i)
m_productInfo.push_back(m_delegate.GetProductInfo(results[i]));
m_productInfo.push_back(m_delegate.GetProductInfo(results[i]));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
m_productInfo.push_back(m_delegate.GetProductInfo(results[i]));
m_productInfo.push_back(m_delegate.GetProductInfo(results[i]));

Comment on lines +23 to 26
m_delegate.RunUITask([onResults = m_onResults, results, productInfo = m_productInfo]() mutable
{
onResults(std::move(results), std::move(productInfo));
});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
m_delegate.RunUITask([onResults = m_onResults, results, productInfo = m_productInfo]() mutable
{
onResults(std::move(results), std::move(productInfo));
});
m_delegate.RunUITask([onResults = m_onResults, results, productInfo = m_productInfo]() mutable
{ onResults(std::move(results), std::move(productInfo)); });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant