[Android] medialibrary: convertMediaSearchAggregateObject can be static

Thomas Guillem git at videolan.org
Mon Nov 14 19:24:41 CET 2016


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Nov 14 19:24:26 2016 +0100| [2a793de9907acc7bfbf0aebbf7f760b95f09cc6d] | committer: Thomas Guillem

medialibrary: convertMediaSearchAggregateObject can be static

> https://code.videolan.org/videolan/vlc-android/commit/2a793de9907acc7bfbf0aebbf7f760b95f09cc6d
---

 medialibrary/jni/utils.cpp | 2 +-
 medialibrary/jni/utils.h   | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/medialibrary/jni/utils.cpp b/medialibrary/jni/utils.cpp
index 2d9a14a..6f01078 100644
--- a/medialibrary/jni/utils.cpp
+++ b/medialibrary/jni/utils.cpp
@@ -126,7 +126,7 @@ convertPlaylistObject(JNIEnv* env, fields *fields, medialibrary::PlaylistPtr con
     return item;
 }
 
-jobject
+static jobject
 convertMediaSearchAggregateObject(JNIEnv* env, fields *fields, medialibrary::MediaSearchAggregate const& mediaSearchAggregatePtr)
 {
     jobjectArray episodes = (jobjectArray) env->NewObjectArray(mediaSearchAggregatePtr.episodes.size(), fields->MediaWrapper.clazz, NULL);
diff --git a/medialibrary/jni/utils.h b/medialibrary/jni/utils.h
index f232bfd..78e5cc0 100644
--- a/medialibrary/jni/utils.h
+++ b/medialibrary/jni/utils.h
@@ -93,7 +93,6 @@ jobject convertAlbumObject(JNIEnv* env, fields *fields, medialibrary::AlbumPtr c
 jobject convertArtistObject(JNIEnv* env, fields *fields, medialibrary::ArtistPtr const& artistPtr);
 jobject convertGenreObject(JNIEnv* env, fields *fields, medialibrary::GenrePtr const& genrePtr);
 jobject convertPlaylistObject(JNIEnv* env, fields *fields, medialibrary::PlaylistPtr const& genrePtr);
-jobject convertMediaSearchAggregateObject(JNIEnv* env, fields *fields, medialibrary::MediaSearchAggregate const& mediaSearchAggregatePtr);
 jobject convertSearchAggregateObject(JNIEnv* env, fields *fields, medialibrary::SearchAggregate const& searchAggregatePtr);
 
 #endif //VLC_MEDIALIB_UTILS_H



More information about the Android mailing list