comparison Plugin/JavaEnvironment.cpp @ 33:10406d66d1c6

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 14 Jun 2024 11:14:02 +0200
parents 4a750ca9461e
children
comparison
equal deleted inserted replaced
32:09f60b487512 33:10406d66d1c6
121 void JavaEnvironment::ThrowException(const std::string& fqn, 121 void JavaEnvironment::ThrowException(const std::string& fqn,
122 const std::string& message) 122 const std::string& message)
123 { 123 {
124 if (GetValue().ThrowNew(FindClass(fqn), message.c_str()) != 0) 124 if (GetValue().ThrowNew(FindClass(fqn), message.c_str()) != 0)
125 { 125 {
126 std::string message = "Cannot throw exception " + fqn; 126 std::string tmp = "Cannot throw exception " + fqn;
127 OrthancPluginLogError(context_, message.c_str()); 127 OrthancPluginLogError(context_, tmp.c_str());
128 } 128 }
129 } 129 }
130 130
131 131
132 void JavaEnvironment::ThrowOrthancException(const std::string& message) 132 void JavaEnvironment::ThrowOrthancException(const std::string& message)