diff options
author | Max Kellermann <max@musicpd.org> | 2019-04-24 14:50:02 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-04-24 14:50:02 +0200 |
commit | b985835d8b2cb0adccc8bbc5f18733730ff395c4 (patch) | |
tree | e62f92a177ce4755294a703deb9d44d7063dacc1 /src/android | |
parent | e413dcf8c6651f9eda5dc06753c8e8c1e5706762 (diff) |
android/Environment: add `noexcept`
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/Environment.cxx | 8 | ||||
-rw-r--r-- | src/android/Environment.hxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/android/Environment.cxx b/src/android/Environment.cxx index 817ab510e..b177144bc 100644 --- a/src/android/Environment.cxx +++ b/src/android/Environment.cxx @@ -31,7 +31,7 @@ namespace Environment { }; void -Environment::Initialise(JNIEnv *env) +Environment::Initialise(JNIEnv *env) noexcept { cls.Find(env, "android/os/Environment"); @@ -45,13 +45,13 @@ Environment::Initialise(JNIEnv *env) } void -Environment::Deinitialise(JNIEnv *env) +Environment::Deinitialise(JNIEnv *env) noexcept { cls.Clear(env); } AllocatedPath -Environment::getExternalStorageDirectory() +Environment::getExternalStorageDirectory() noexcept { JNIEnv *env = Java::GetEnv(); @@ -65,7 +65,7 @@ Environment::getExternalStorageDirectory() } AllocatedPath -Environment::getExternalStoragePublicDirectory(const char *type) +Environment::getExternalStoragePublicDirectory(const char *type) noexcept { if (getExternalStoragePublicDirectory_method == nullptr) /* needs API level 8 */ diff --git a/src/android/Environment.hxx b/src/android/Environment.hxx index b6f58357c..95d11a55e 100644 --- a/src/android/Environment.hxx +++ b/src/android/Environment.hxx @@ -27,17 +27,17 @@ class AllocatedPath; namespace Environment { - void Initialise(JNIEnv *env); - void Deinitialise(JNIEnv *env); + void Initialise(JNIEnv *env) noexcept; + void Deinitialise(JNIEnv *env) noexcept; /** * Determine the mount point of the external SD card. */ gcc_pure - AllocatedPath getExternalStorageDirectory(); + AllocatedPath getExternalStorageDirectory() noexcept; gcc_pure - AllocatedPath getExternalStoragePublicDirectory(const char *type); + AllocatedPath getExternalStoragePublicDirectory(const char *type) noexcept; }; #endif |