diff OrthancServer/OrthancFindRequestHandler.cpp @ 1893:d7f63122c7f3

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 15 Dec 2015 17:22:52 +0100
parents 512b6e76f531
children e018037d4d0e
line wrap: on
line diff
--- a/OrthancServer/OrthancFindRequestHandler.cpp	Mon Dec 14 10:10:50 2015 +0100
+++ b/OrthancServer/OrthancFindRequestHandler.cpp	Tue Dec 15 17:22:52 2015 +0100
@@ -166,12 +166,11 @@
                                                  const std::string& remoteAet,
                                                  const std::string& calledAet)
   {
-    static const char* NAME = "IncomingFindRequestFilter";
-
     Json::Value output;
 
     {
       LuaScripting::Locker locker(context_.GetLua());
+      static const char* NAME = "IncomingFindRequestFilter";
       
       if (!locker.GetLua().IsExistingFunction(NAME))
       {