android/LogListener: add `noexcept`

This commit is contained in:
Max Kellermann 2019-04-24 14:48:48 +02:00
parent ea61e6dde1
commit e413dcf8c6
2 changed files with 8 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
@ -24,7 +24,8 @@
#include "util/FormatString.hxx" #include "util/FormatString.hxx"
void void
LogListener::OnLog(JNIEnv *env, int priority, const char *fmt, ...) const LogListener::OnLog(JNIEnv *env, int priority,
const char *fmt, ...) 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
@ -24,9 +24,11 @@
class LogListener : public Java::GlobalObject { class LogListener : public Java::GlobalObject {
public: public:
LogListener(JNIEnv *env, jobject obj):Java::GlobalObject(env, obj) {} LogListener(JNIEnv *env, jobject obj) noexcept
:Java::GlobalObject(env, obj) {}
void OnLog(JNIEnv *env, int priority, const char *fmt, ...) const; void OnLog(JNIEnv *env, int priority,
const char *fmt, ...) const noexcept;
}; };
#endif #endif