diff options
author | Max Kellermann <max@musicpd.org> | 2019-04-24 14:49:24 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-04-24 14:49:42 +0200 |
commit | ea61e6dde1db8cad5533abf8ae8181b045907947 (patch) | |
tree | 1244ed8faa1ec5847c8147095fa94995f639692b | |
parent | f7f858cb076fd950ed5cd99204fd4e76fe91420d (diff) |
android/Context: add `noexcept`
-rw-r--r-- | src/android/Context.cxx | 4 | ||||
-rw-r--r-- | src/android/Context.hxx | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/android/Context.cxx b/src/android/Context.cxx index f997706e1..3de6ca926 100644 --- a/src/android/Context.cxx +++ b/src/android/Context.cxx @@ -1,5 +1,5 @@ /* - * Copyright 2003-2018 The Music Player Daemon Project + * Copyright 2003-2019 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -24,7 +24,7 @@ #include "fs/AllocatedPath.hxx" AllocatedPath -Context::GetCacheDir(JNIEnv *env) const +Context::GetCacheDir(JNIEnv *env) const noexcept { assert(env != nullptr); diff --git a/src/android/Context.hxx b/src/android/Context.hxx index 6cd75f062..8d65ae6e2 100644 --- a/src/android/Context.hxx +++ b/src/android/Context.hxx @@ -1,5 +1,5 @@ /* - * Copyright 2003-2018 The Music Player Daemon Project + * Copyright 2003-2019 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -26,10 +26,11 @@ class AllocatedPath; class Context : public Java::GlobalObject { public: - Context(JNIEnv *env, jobject obj):Java::GlobalObject(env, obj) {} + Context(JNIEnv *env, jobject obj) noexcept + :Java::GlobalObject(env, obj) {} gcc_pure - AllocatedPath GetCacheDir(JNIEnv *env) const; + AllocatedPath GetCacheDir(JNIEnv *env) const noexcept; }; #endif |