On 16/07/2019 00:10, Andrew Luo wrote:
Hi Everyone,

I'm making some const-correctness fixes to some downstream libraries that use 
JNU_* functions, and noticed that JNU_IsInstanceOfByName takes in the class 
name by char* instead of const char* when it does not need to modify the 
string.  It would be useful to change this so that we don't have to 
(unnecessarily) const-cast every time and can safely pass string literals to 
this function.  Patch is inline below - any comments/feedback welcome.
This looks okay to me.

-Alan.

Reply via email to