android/LogListener: add `noexcept`
This commit is contained in:
parent
ea61e6dde1
commit
e413dcf8c6
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue