android/Context: add `noexcept`

This commit is contained in:
Max Kellermann 2019-04-24 14:49:24 +02:00
parent 3449c14ff5
commit 5418bb49fb
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2003-2018 The Music Player Daemon Project * Copyright 2003-2019 The Music Player Daemon Project
* http://www.musicpd.org * http://www.musicpd.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -23,7 +23,7 @@
#include "fs/AllocatedPath.hxx" #include "fs/AllocatedPath.hxx"
AllocatedPath AllocatedPath
Context::GetCacheDir(JNIEnv *env) const Context::GetCacheDir(JNIEnv *env) const noexcept
{ {
assert(env != nullptr); assert(env != nullptr);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2003-2018 The Music Player Daemon Project * Copyright 2003-2019 The Music Player Daemon Project
* http://www.musicpd.org * http://www.musicpd.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -26,10 +26,11 @@ class AllocatedPath;
class Context : public Java::GlobalObject { class Context : public Java::GlobalObject {
public: public:
Context(JNIEnv *env, jobject obj):Java::GlobalObject(env, obj) {} Context(JNIEnv *env, jobject obj) noexcept
:Java::GlobalObject(env, obj) {}
gcc_pure gcc_pure
AllocatedPath GetCacheDir(JNIEnv *env) const; AllocatedPath GetCacheDir(JNIEnv *env) const noexcept;
}; };
#endif #endif