Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
5418bb49
Commit
5418bb49
authored
Apr 24, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android/Context: add `noexcept`
parent
3449c14f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Context.cxx
src/android/Context.cxx
+2
-2
Context.hxx
src/android/Context.hxx
+4
-3
No files found.
src/android/Context.cxx
View file @
5418bb49
/*
* Copyright 2003-201
8
The Music Player Daemon Project
* Copyright 2003-201
9
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -23,7 +23,7 @@
#include "fs/AllocatedPath.hxx"
AllocatedPath
Context
::
GetCacheDir
(
JNIEnv
*
env
)
const
Context
::
GetCacheDir
(
JNIEnv
*
env
)
const
noexcept
{
assert
(
env
!=
nullptr
);
...
...
src/android/Context.hxx
View file @
5418bb49
/*
* Copyright 2003-201
8
The Music Player Daemon Project
* Copyright 2003-201
9
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment