changeset 127:7517cbe58623

merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Oct 2012 17:45:13 +0200
parents 2d96cb181f45 (current diff) 52c7eb60bbc8 (diff)
children 2a24f43d9dca
files OrthancServer/OrthancRestApi.cpp
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi.cpp	Fri Oct 05 17:44:12 2012 +0200
+++ b/OrthancServer/OrthancRestApi.cpp	Fri Oct 05 17:45:13 2012 +0200
@@ -339,7 +339,7 @@
     else if (index_.GetSeries(found, postData))
     {
       // The UUID corresponds to a series
-      for (size_t i = 0; i < found["Instances"].size(); i++)
+      for (Json::Value::ArrayIndex i = 0; i < found["Instances"].size(); i++)
       {
         std::string uuid = found["Instances"][i].asString();
         Json::Value instance(Json::objectValue);
--- a/Resources/CMake/JsonCppConfiguration.cmake	Fri Oct 05 17:44:12 2012 +0200
+++ b/Resources/CMake/JsonCppConfiguration.cmake	Fri Oct 05 17:45:13 2012 +0200
@@ -4,6 +4,7 @@
     message(FATAL_ERROR "Please install the libjsoncpp-dev package")
   endif()
 
+  include_directories(/usr/include/jsoncpp)
   link_libraries(jsoncpp)
 
 else()