Commit e413dcf8 authored by Max Kellermann's avatar Max Kellermann

android/LogListener: add `noexcept`

parent ea61e6dd
/* /*
* 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 @@ ...@@ -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);
......
/* /*
* 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 @@ ...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment