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
b985835d
Commit
b985835d
authored
Apr 24, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android/Environment: add `noexcept`
parent
e413dcf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Environment.cxx
src/android/Environment.cxx
+4
-4
Environment.hxx
src/android/Environment.hxx
+4
-4
No files found.
src/android/Environment.cxx
View file @
b985835d
...
...
@@ -31,7 +31,7 @@ namespace Environment {
};
void
Environment
::
Initialise
(
JNIEnv
*
env
)
Environment
::
Initialise
(
JNIEnv
*
env
)
noexcept
{
cls
.
Find
(
env
,
"android/os/Environment"
);
...
...
@@ -45,13 +45,13 @@ Environment::Initialise(JNIEnv *env)
}
void
Environment
::
Deinitialise
(
JNIEnv
*
env
)
Environment
::
Deinitialise
(
JNIEnv
*
env
)
noexcept
{
cls
.
Clear
(
env
);
}
AllocatedPath
Environment
::
getExternalStorageDirectory
()
Environment
::
getExternalStorageDirectory
()
noexcept
{
JNIEnv
*
env
=
Java
::
GetEnv
();
...
...
@@ -65,7 +65,7 @@ Environment::getExternalStorageDirectory()
}
AllocatedPath
Environment
::
getExternalStoragePublicDirectory
(
const
char
*
type
)
Environment
::
getExternalStoragePublicDirectory
(
const
char
*
type
)
noexcept
{
if
(
getExternalStoragePublicDirectory_method
==
nullptr
)
/* needs API level 8 */
...
...
src/android/Environment.hxx
View file @
b985835d
...
...
@@ -27,17 +27,17 @@
class
AllocatedPath
;
namespace
Environment
{
void
Initialise
(
JNIEnv
*
env
);
void
Deinitialise
(
JNIEnv
*
env
);
void
Initialise
(
JNIEnv
*
env
)
noexcept
;
void
Deinitialise
(
JNIEnv
*
env
)
noexcept
;
/**
* Determine the mount point of the external SD card.
*/
gcc_pure
AllocatedPath
getExternalStorageDirectory
();
AllocatedPath
getExternalStorageDirectory
()
noexcept
;
gcc_pure
AllocatedPath
getExternalStoragePublicDirectory
(
const
char
*
type
);
AllocatedPath
getExternalStoragePublicDirectory
(
const
char
*
type
)
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