android/Environment: add noexcept
				
					
				
			This commit is contained in:
		@@ -31,7 +31,7 @@ namespace Environment {
 | 
				
			|||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
Environment::Initialise(JNIEnv *env)
 | 
					Environment::Initialise(JNIEnv *env) noexcept
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	cls.Find(env, "android/os/Environment");
 | 
						cls.Find(env, "android/os/Environment");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -45,13 +45,13 @@ Environment::Initialise(JNIEnv *env)
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
Environment::Deinitialise(JNIEnv *env)
 | 
					Environment::Deinitialise(JNIEnv *env) noexcept
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	cls.Clear(env);
 | 
						cls.Clear(env);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
AllocatedPath
 | 
					AllocatedPath
 | 
				
			||||||
Environment::getExternalStorageDirectory()
 | 
					Environment::getExternalStorageDirectory() noexcept
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	JNIEnv *env = Java::GetEnv();
 | 
						JNIEnv *env = Java::GetEnv();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -65,7 +65,7 @@ Environment::getExternalStorageDirectory()
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
AllocatedPath
 | 
					AllocatedPath
 | 
				
			||||||
Environment::getExternalStoragePublicDirectory(const char *type)
 | 
					Environment::getExternalStoragePublicDirectory(const char *type) noexcept
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if (getExternalStoragePublicDirectory_method == nullptr)
 | 
						if (getExternalStoragePublicDirectory_method == nullptr)
 | 
				
			||||||
		/* needs API level 8 */
 | 
							/* needs API level 8 */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,17 +27,17 @@
 | 
				
			|||||||
class AllocatedPath;
 | 
					class AllocatedPath;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Environment {
 | 
					namespace Environment {
 | 
				
			||||||
	void Initialise(JNIEnv *env);
 | 
						void Initialise(JNIEnv *env) noexcept;
 | 
				
			||||||
	void Deinitialise(JNIEnv *env);
 | 
						void Deinitialise(JNIEnv *env) noexcept;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Determine the mount point of the external SD card.
 | 
						 * Determine the mount point of the external SD card.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	gcc_pure
 | 
						gcc_pure
 | 
				
			||||||
	AllocatedPath getExternalStorageDirectory();
 | 
						AllocatedPath getExternalStorageDirectory() noexcept;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	gcc_pure
 | 
						gcc_pure
 | 
				
			||||||
	AllocatedPath getExternalStoragePublicDirectory(const char *type);
 | 
						AllocatedPath getExternalStoragePublicDirectory(const char *type) noexcept;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user